
JavaScript Jabber Mongoose 9, AI-Powered Database Tools & the Future of Server-Side JavaScript with Val Karpov - JSJ 703
Feb 25, 2026
Val Karpov, maintainer of Mongoose and creator of Mongoose Studio, talks about Mongoose 9’s stricter TypeScript types and the shift away from callback middleware. He describes async stack trace improvements, AI-assisted refactors, and an AI-enhanced MongoDB GUI with schema-aware document generation and map features. The conversation also touches on Cassandra integration, Bun vs Deno, and future internals like proxy-based change tracking.
AI Snips
Chapters
Transcript
Episode notes
Mongoose 9 Prioritized Stricter TypeScript DX
- Mongoose 9 focused on long-term TypeScript friction reduction rather than flashy features.
- Val tightened query types (e.g., find filters) to enable autocomplete and catch typos, improving DX for TypeScript and JS users.
Dropping Callbacks Unlocks Async Stack Traces
- Removing callback-based APIs enabled full async stack traces so errors show the real async call chain.
- Val eliminated user-facing callbacks in Mongoose 9 and warns plugins/middleware using next must be rewritten to keep async traces.
Using AI To Refactor Thousands Of Tests
- Val used OpenAI to refactor Mongoose's callback-heavy tests into async/await, turning a multi-week task into one day.
- He fed individual tests to the API and achieved ~90% automated refactor coverage, then reviewed the rest manually.
