Installation
Get started with Resolid by installing the required packages for your use case.System requirements
Resolid requires the following to be installed:- Node.js: Version
22.13.0or24+ - Package manager: pnpm (recommended), npm, yarn, or bun
Resolid is built with modern Node.js features. Make sure you’re running a compatible version.
Core package
The@resolid/core package provides the application container, extension system, and core APIs:
createApp()- Application factory functionAppclass - Application container with lifecycle management- Extension system
- Re-exports from
@resolid/diand@resolid/event
Available packages
Resolid is split into focused packages. Install only what you need:Dependency injection
Type-safe dependency injection container with singleton/transient scopes:- Fully typed container
- Singleton and transient scopes
- Lazy resolution
- Optional dependencies
- Circular dependency detection
- Disposable resources
The
@resolid/di package is automatically included when you install @resolid/core.Event emitter
Lightweight, typed event system:- Type-safe events
- Synchronous and asynchronous emission
- Once listeners
- Zero dependencies
The
@resolid/event package is automatically included when you install @resolid/core.Cache
Type-safe async cache with pluggable storage backends:- Get/set/delete/clear operations
- Batch operations
- Optional TTL
- Custom store backends
- In-memory and file-based stores included
Development tools
Vite integration, React Router support, and HTTP server:defineDevConfig()for Vite and React Router configuration- HTTP server with Hono
- Request utilities (client IP, request ID, origin)
- Platform adapters (Node.js, Vercel, Netlify)
- File-based routing with flex routes
Logging
Structured logging with LogTape integration:- Integration with LogTape
- Category-based logging
- Multiple log levels (debug, info, warn, error, fatal)
- Configurable sinks and filters
- Structured logging support
Database
Database integration with Drizzle ORM:- Drizzle ORM integration
- Database service providers
- Repository pattern support
- MySQL support (more databases coming soon)
File-based cache
File system cache backend:File-based logging
File system logging target:Installation by use case
Choose the right packages for your project:- Basic app
- Full-stack app
- With caching
- With database
- With logging
- Everything
For a basic Resolid application with DI and events:This includes
@resolid/di and @resolid/event.Verify installation
After installation, verify that Resolid is working:Next steps
Quickstart
Build your first Resolid application
Core concepts
Learn about the application architecture