PACKAGE · BACKEND FRAMEWORK

@adonisjs/core

Core of AdonisJS

WEEKLY DOWNLOADS 57.0K
STARS 19.0K
FORKS 671
OPEN ISSUES 11
GZIP SIZE 232.6 kB
UNPACKED SIZE 457.1 kB
LAST UPDATED 3mo ago
DOWNLOAD TRENDS

@adonisjs/core downloads — last 12 months

Download trends for @adonisjs/core1 download series from Jun 2025 to May 2026. Use left and right arrow keys to inspect monthly values.097.9K195.8K293.7K391.6KJun 2025SepDecMarMay 2026
@adonisjs/core
ABOUT @ADONISJS/CORE

AdonisJS Core is the foundational layer of the AdonisJS framework, providing a robust and opinionated structure for building server-side applications with Node.js and TypeScript. It aims to solve the complexities of enterprise-level web development by offering a cohesive set of tools and conventions for routing, dependency injection, database interaction, authentication, and more. The framework is heavily inspired by architectural patterns found in frameworks like Laravel, offering a familiar yet modern development experience for developers transitioning to or starting with Node.js.

AdonisJS Core prioritizes developer productivity, code maintainability, and application scalability. Its design goals include providing a clear project structure, enforcing best practices, and offering a powerful yet intuitive developer tooling experience. The primary audience consists of developers building full-stack applications, APIs, and microservices who appreciate a framework that guides architectural decisions and reduces boilerplate code. Its strong emphasis on TypeScript ensures type safety and enhances the developer experience through better autocompletion and refactoring capabilities.

A core architectural pattern in AdonisJS is its Dependency Injection container, which facilitates managing application-wide dependencies and promotes modularity. The framework features a powerful routing system with support for route groups, parameter binding, and middleware. It also employs a sophisticated Event Emitter for decoupling application components and a well-defined lifecycle for handling requests and responses, including hooks for pre- and post-processing logic. This structured approach ensures predictable application flow and simplifies testing.

AdonisJS Core integrates seamlessly with its accompanying modules, such as Lucid ORM for database operations, Edge for templating, and Bull for queue management. It is designed to work harmoniously with the broader Node.js ecosystem, including popular tools for testing, logging, and deployment. The framework's TypeScript-first approach means it fits well into workflows that prioritize static typing, making it an excellent choice for projects where type safety and long-term maintainability are paramount.

With a weekly download count of 107.8K and 19.0K GitHub stars, AdonisJS has demonstrated significant community adoption and a degree of maturity. The unpacked size of 457.1 kB and gzipped bundle size of 232.6 kB indicate a comprehensive but not excessively large core package. This balance allows for extensive features without a prohibitive performance overhead for most web applications, underscoring its suitability for production environments.

While AdonisJS Core provides a comprehensive solution, its opinionated nature means it might impose more conventions than a developer desires for very simple projects or microservices that require extreme minimalism. Developers accustomed to more unopinionated or micro-framework approaches might find the initial learning curve steeper due to the number of integrated concepts. However, for applications demanding structure and consistency, the framework's conventions are a significant advantage.

WHEN TO USE
  • When building complex, full-stack web applications requiring a structured MVC pattern and a strong emphasis on TypeScript.
  • When leveraging the integrated Dependency Injection container to manage complex application states and services.
  • When designing RESTful APIs that benefit from AdonisJS's powerful routing system, including middleware and parameter binding features.
  • When adopting conventions for authentication, session management, and file uploads provided by the framework's core modules.
  • When working with the Lucid ORM for database interactions and requiring a predictable and type-safe data layer.
  • When developing applications that require a robust event system for inter-component communication via the Event Emitter.
  • When you need a consistent project structure and development workflow, reducing boilerplate for common web development tasks.
WHEN NOT TO USE
  • If you are building a microservice that requires minimal dependencies and a highly unopinionated foundation.
  • If your project's primary goal is to serve static files with minimal server-side logic, a lighter alternative might be more appropriate.
  • When your team is only familiar with minimalist JavaScript frameworks and prefers to assemble their stack from disparate libraries.
  • If you require an extremely low-level interface to Node.js without any framework abstractions or conventions.
  • When building a simple command-line interface tool where web-specific features like routing and middleware are not needed.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 4
@adonisjs/core vs fastify ★ 36.4K · 3.9M/wk @adonisjs/core vs koa ★ 35.7K · 3.7M/wk @adonisjs/core vs express ★ 69.1K · 53.5M/wk @adonisjs/core vs hono ★ 30.8K · 20.4M/wk