Welcome to Esix
Working with MongoDB in TypeScript usually means choosing between simplicity and type safety. Native drivers require verbose, untyped queries, while most ORMs demand extensive configuration and boilerplate. Esix brings the elegance of ActiveRecord and Eloquent to MongoDB with full TypeScript support. Define your models as simple TypeScript classes, and Esix automatically handles database operations and type inference through sensible conventions. No configuration files, no setup overhead—just MongoDB development that feels as natural as working with any TypeScript object while maintaining the flexibility that makes MongoDB powerful.Key features
Zero configuration
No decorators, no config files, just TypeScript classes. Start building immediately without setup overhead.
Full type safety
Leverages TypeScript’s type system for compile-time safety. Your IDE knows exactly what fields exist on your models.
Eloquent-style API
Familiar, intuitive syntax inspired by Laravel and ActiveRecord. If you’ve used modern ORMs, you’ll feel right at home.
Rich query builder
Fluent API with comparison operators, sorting, pagination, and more. Build complex queries with ease.
Automatic connection
Connects to MongoDB automatically when needed. No connection management code required.
Aggregation support
Built-in methods for common aggregations like count, sum, average, percentiles, and custom pipelines.
Type-safe relationships
Simple relationship definitions with full type inference. Query related models without losing type safety.
NoSQL injection protection
Automatic input sanitization prevents injection attacks. Your data is safe by default.
Simple example
Here’s everything you need to get started with Esix:Why Esix?
No decorators or configuration
Unlike other TypeScript ORMs, Esix doesn’t require decorators on every property or extensive configuration files. Just define your class properties with default values, and Esix handles the rest through intelligent conventions.Type safety without sacrifices
Esix leverages TypeScript’s advanced type system to provide full type inference. Your IDE will autocomplete field names, catch typos at compile time, and ensure you’re querying the right fields with the right types.Familiar if you know Eloquent or ActiveRecord
If you’ve worked with Laravel’s Eloquent or Ruby on Rails’ ActiveRecord, Esix will feel immediately familiar. The same intuitive patterns, adapted for TypeScript and MongoDB.Production-ready
With automatic NoSQL injection protection, connection management, and battle-tested query building, Esix is ready for production use from day one.Next steps
Installation
Install Esix and set up your MongoDB connection
Quickstart
Build your first Esix application in minutes
API Reference
Explore the complete API documentation
GitHub
View the source code and contribute