Framework30K+/wkMIT

@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
npm install @adonisjs/core
yarn
yarn add @adonisjs/core
pnpm
pnpm add @adonisjs/core

Import

ESM
import router from '@adonisjs/core/services/router';

Quick Example

usage
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
CategoryFramework
Weekly Downloads30K+
LicenseMIT
Installnpm install @adonisjs/core

Related Packages

Browse npm Packages by Category

Explore our reference of 200 popular npm packages with install commands, examples, and quick-start guides.