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

millas

v0.2.15

Published

A modern batteries-included backend framework for Node.js — built on Express, inspired by Laravel, Django, and FastAPI

Readme

Millas Framework

A modern, batteries-included backend framework for Node.js.
Built on Express. Inspired by Laravel, Django, and FastAPI.

Quick Start

npm install -g millas

millas new my-app
cd my-app
millas serve

What's included (Phases 1–7)

| Phase | Feature | |-------|---------| | 1 | CLI + Project Scaffolding | | 2 | Router (Route.get/post/resource/group/prefix/middleware) | | 3 | Controllers + Middleware Pipeline + Built-in middleware | | 4 | Dependency Injection Container + Service Providers | | 5 | ORM + Models (Model.find/create/where/paginate) | | 6 | Migration System (millas makemigrations, millas migrate) | | 7 | Auth System (JWT, bcrypt, Auth.login/register, AuthMiddleware) |

CLI Reference

# Project
millas new <name>
millas serve

# Generators
millas make:controller UserController --resource
millas make:model User --migration
millas make:middleware AuthMiddleware
millas make:service PaymentService
millas make:job SendEmailJob

# Migrations
millas makemigrations
millas migrate
millas migrate:rollback
millas migrate:fresh
millas migrate:status
millas migrate:reset
millas migrate:refresh
millas db:seed

# Utilities
millas route:list

Routing

// routes/api.js
module.exports = function (Route) {
  Route.get('/users', UserController, 'index');
  Route.resource('/posts', PostController);

  Route.prefix('/api/v1').middleware(['auth']).group(() => {
    Route.resource('/orders', OrderController);
  });

  // Register all auth routes at once
  Route.auth('/auth');
};

Models

const { Model, fields } = require('millas/src');

class User extends Model {
  static table  = 'users';
  static fields = {
    id:         fields.id(),
    name:       fields.string({ max: 100 }),
    email:      fields.string({ unique: true }),
    password:   fields.string(),
    role:       fields.enum(['admin', 'user'], { default: 'user' }),
    created_at: fields.timestamp(),
    updated_at: fields.timestamp(),
  };
}

Authentication

const { Auth } = require('millas/src');

// Register
const user = await Auth.register({ name, email, password });

// Login
const { user, token } = await Auth.login(email, password);

// Protect routes
Route.prefix('/api').middleware(['auth']).group(() => {
  Route.get('/me', UserController, 'me');
});

// Inside controller
const user = await Auth.user(req);

Service Providers

class AppServiceProvider extends ServiceProvider {
  register(container) {
    container.singleton('PaymentService', PaymentService);
  }
  async boot(container, app) {
    // called after all providers registered
  }
}

Roadmap

  • Phase 8: Mail (SMTP, SendGrid, Mailgun)
  • Phase 9: Queues (Redis, DB drivers)
  • Phase 10: Event System
  • Phase 11: Caching + File Storage
  • Phase 12: Admin Panel
  • Phase 13: Testing Utilities
  • Phase 14: Production Optimizations

License

MIT