Quickstart
This guide will walk you through creating your first Resolid application. You’ll learn how to set up a basic app with dependency injection, extensions, and services.Install Resolid
First, create a new project directory and install the core package:Install
@resolid/core:Make sure you’re using Node.js version 22.13.0 or 24+.
Create your first service
Create a simple logging service. In a new file This service will be managed by Resolid’s dependency injection container.
src/services/log.ts:Create an extension
Extensions are reusable modules that add functionality to your app. Create Extensions can register services (providers) and run initialization code (bootstrap).
src/extensions/log.ts:What you built
You just created a Resolid application with:- Dependency injection: Services are registered and resolved automatically
- Extensions: Modular code organization with the
logExtension - Lifecycle management: Bootstrap functions run on startup
- Type safety: Full TypeScript support with exposed services on
app.$ - Event system: Communication between extensions via events
Add more functionality
Let’s extend the app with a user service that depends on the log service.Create a user service
Create a user extension
Update your app
Next steps
Core concepts
Learn about the application lifecycle and architecture
Dependency injection
Master the DI container and advanced patterns
Extensions
Build reusable extensions for your apps
Modules
Explore caching, logging, and database modules
Full example
Here’s the complete working example:Complete code
Complete code
src/services/log.tssrc/services/user.tssrc/extensions/log.tssrc/extensions/user.tssrc/index.ts