npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

arikajs

v0.0.4

Published

The ArikaJS Framework.

Downloads

765

Readme

ArikaJS

ArikaJS Logo

A Modern, Elegant Web Framework for Node.js

npm version npm downloads License: MIT TypeScript Node.js GitHub stars GitHub issues PRs Welcome

Quick Start | Examples | Community


🚀 What is ArikaJS?

ArikaJS is a modern, elegant, and powerful Node.js framework that brings enterprise-grade features and developer-friendly patterns to the TypeScript/JavaScript ecosystem. Built from the ground up with TypeScript, ArikaJS provides a robust foundation for building scalable web applications and APIs with an intuitive, expressive syntax.

✨ Key Features

  • 🎯 Elegant Syntax - Clean, expressive code that's a joy to write
  • 🔥 TypeScript First - Full TypeScript support with excellent type inference
  • 🛣️ Powerful Routing - Intuitive routing with implicit model binding
  • 💉 Dependency Injection - Built-in IoC container for clean architecture
  • 🗄️ Active Record ORM - Eloquent-inspired database layer
  • 🔐 Authentication & Authorization - Built-in auth system with guards and policies
  • Validation - Comprehensive request validation
  • 📧 Mail & Notifications - Easy email and notification system
  • 🔄 Queue System - Background job processing
  • 📦 Service Providers - Modular application architecture
  • 🎨 Template Engine - Flexible view rendering
  • 🧪 Testing Ready - Built with testing in mind

📦 Installation

Option 1: Quick Start (Using npx)

The fastest way to create a new ArikaJS project is using npx. No installation required!

# Create a new project
npx @arikajs/cli new my-app

# Navigate to your project
cd my-app

# Start developing
npm run dev

Option 2: Global Installation

If you prefer to have the arika command available everywhere, you can install the CLI globally:

# Install the CLI globally
npm install -g @arikajs/cli

# Create a new project
arika new my-app

Install dependencies

npm install

Start the development server

npm run dev


Your application will be running at `http://localhost:8000` 🎉

### Manual Installation

```bash
# Create a new project directory
mkdir my-app && cd my-app

# Initialize npm
npm init -y

# Install ArikaJS
npm install arikajs

# Install dev dependencies
npm install -D @arikajs/cli typescript tsx @types/node

🏗️ Project Structure

my-app/
├── app/
│   ├── Controllers/       # HTTP controllers
│   ├── Models/           # Database models
│   ├── Middleware/       # Custom middleware
│   └── Http/
│       └── Kernel.ts     # HTTP kernel configuration
├── bootstrap/
│   └── app.ts           # Application bootstrap
├── config/              # Configuration files
│   ├── app.ts
│   ├── database.ts
│   └── logging.ts
├── database/
│   └── migrations/      # Database migrations
├── routes/
│   └── web.ts          # Route definitions
├── server.ts           # Application entry point
├── .env                # Environment variables
└── package.json

📚 Basic Usage

Routing

Define routes with an elegant, expressive syntax:

import { Route } from 'arikajs';

// Simple route
Route.get('/', () => {
    return { message: 'Welcome to ArikaJS!' };
});

// Route with parameters
Route.get('/users/{id}', (request, id) => {
    return { userId: id };
});

// Route groups with middleware
Route.group({ middleware: 'auth' }, () => {
    Route.get('/dashboard', [DashboardController, 'index']);
    Route.post('/posts', [PostController, 'store']);
});

Implicit Model Binding

Automatically resolve models from route parameters:

import { Route } from 'arikajs';
import User from './app/Models/User';

// Register model binding
Route.model('user', User);

// The {user} parameter will automatically resolve to a User instance
Route.get('/users/{user}', (request, user: User) => {
    return {
        message: 'User found!',
        user: user
    };
});

Controllers

Create clean, organized controllers:

import { Request, Response } from 'arikajs';
import User from '../Models/User';

export class UserController {
    async index(request: Request, response: Response) {
        const users = await User.all();
        return response.json(users);
    }

    async show(request: Request, response: Response) {
        const user = await User.findOrFail(request.params.id);
        return response.json(user);
    }

    async store(request: Request, response: Response) {
        const user = await User.create(request.body);
        return response.status(201).json(user);
    }
}

Models (Active Record)

Work with databases using an elegant ORM:

import { Model } from 'arikajs';

export default class User extends Model {
    protected static tableName = 'users';

    // Define relationships
    posts() {
        return this.hasMany(Post);
    }

    // Custom methods
    async sendWelcomeEmail() {
        // Send email logic
    }
}

// Usage
const user = await User.find(1);
const posts = await user.posts().get();

const newUser = await User.create({
    name: 'John Doe',
    email: '[email protected]'
});

Middleware

Create custom middleware for request processing:

import { MiddlewareHandler, Request, Response } from 'arikajs';

export default class AuthMiddleware implements MiddlewareHandler {
    async handle(request: Request, response: Response, next: Function) {
        if (!request.headers.authorization) {
            return response.status(401).json({ error: 'Unauthorized' });
        }

        return next();
    }
}

Service Providers

Organize your application with service providers:

import { ServiceProvider } from 'arikajs';
import { PaymentService } from './Services/PaymentService';

export class PaymentServiceProvider extends ServiceProvider {
    async register() {
        this.app.singleton('payment', () => {
            return new PaymentService(this.app.config().get('payment'));
        });
    }

    async boot() {
        // Bootstrap logic
    }
}

Database Migrations

Manage your database schema with migrations:

import { Migration, SchemaBuilder } from 'arikajs';

export default class CreateUsersTable extends Migration {
    async up(schema: SchemaBuilder) {
        await schema.create('users', (table) => {
            table.increments('id');
            table.string('name');
            table.string('email').unique();
            table.string('password');
            table.timestamps();
        });
    }

    async down(schema: SchemaBuilder) {
        await schema.dropIfExists('users');
    }
}

🔧 Configuration

Configure your application in the config/ directory:

config/app.ts

export default {
    name: process.env.APP_NAME || 'ArikaJS',
    env: process.env.NODE_ENV || 'development',
    key: process.env.APP_KEY,
    timezone: 'UTC',
};

config/database.ts

export default {
    default: 'mysql',
    connections: {
        mysql: {
            driver: 'mysql',
            host: process.env.DB_HOST || 'localhost',
            port: parseInt(process.env.DB_PORT || '3306'),
            database: process.env.DB_DATABASE,
            username: process.env.DB_USERNAME,
            password: process.env.DB_PASSWORD,
        },
    },
};

🎨 CLI Commands

ArikaJS comes with a powerful CLI for common tasks:

# Create a new application
arika new my-app

# Start development server
arika serve --dev

# Generate application key
arika key:generate

# Database migrations
arika migrate
arika migrate:rollback

# Create migration
arika make:migration create_posts_table

🧪 Testing

ArikaJS is built with testing in mind:

import { describe, it } from 'node:test';
import assert from 'node:assert';
import app from './bootstrap/app';

describe('User API', () => {
    it('should return all users', async () => {
        const response = await app.get('/api/users');
        assert.strictEqual(response.status, 200);
    });
});

📖 Documentation

Comprehensive documentation is available in the GitHub repository.

For guides and examples, check out:


🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

# Clone the repository
git clone https://github.com/arikajs/arikajs.git

# Install dependencies
npm install

# Run tests
npm test

# Build the project
npm run build

📝 License

ArikaJS is open-sourced software licensed under the MIT license.


🙏 Acknowledgments

ArikaJS draws inspiration from the best practices and patterns of modern web frameworks, including elegant API design, developer experience focus, and enterprise-grade architecture.


💬 Community & Support


Built with ❤️ by the ArikaJS Team

GitHubnpm