@adonisjs/core
AdonisJS is a fully-featured TypeScript web framework for Node.js that provides an elegant and expressive API inspired by Laravel and Rails. AdonisJS takes an o…
Installation
npm install @adonisjs/core
yarn add @adonisjs/core
pnpm add @adonisjs/core
Import
import router from '@adonisjs/core/services/router';
Quick Example
import router from '@adonisjs/core/services/router';
router.get('/', async () => {
return 'Hello AdonisJS';
});About @adonisjs/core
AdonisJS is a fully-featured TypeScript web framework for Node.js that provides an elegant and expressive API inspired by Laravel and Rails. AdonisJS takes an opinionated approach with a cohesive ecosystem of first-party packages for authentication, authorization, database ORM (Lucid), validation, mailing, file uploads, and testing. The framework's Lucid ORM provides Active Record pattern implementation with migrations, seeders, factories, and a powerful query builder supporting PostgreSQL, MySQL, SQLite, and MSSQL. AdonisJS includes a robust IoC container for dependency injection, service providers for bootstrapping application services, and middleware for HTTP request pipeline management. The framework's Edge template engine provides clean, component-based server-side HTML rendering. AdonisJS features built-in CSRF protection, encrypted cookies and sessions, rate limiting, and health checks. The CLI tool Ace provides commands for generating controllers, models, migrations, and custom commands. AdonisJS is particularly well-suited for developers who appreciate Laravel's developer experience but want to work in the TypeScript/Node.js ecosystem.
Quick Facts
| Package | @adonisjs/core |
| Category | Framework |
| Weekly Downloads | 30K+ |
| License | MIT |
| Install | npm install @adonisjs/core |
Related Packages
NestJS is a progressive Node.js framework for building efficient, reliable, and scalable server-side…
Express is the most widely used web application framework for Node.js, providing a minimal and flexi…
Sails.js is an MVC web application framework for Node.js inspired by Ruby on Rails, designed to make…
Fastify is a high-performance web framework for Node.js designed to be the fastest HTTP framework av…
TypeORM is a full-featured ORM for TypeScript and JavaScript that supports both Active Record and Da…
Browse npm Packages by Category
Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.