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

devlien

v1.0.4

Published

Devlien is a lightweight, zero-dependency Node.js framework with clean MVC structure, built-in ORM, and intuitive routing for rapid backend development.

Readme

Devlien Framework

Devlien is a minimal and flexible Node.js backend framework designed to work seamlessly with:

  • ✅ Nuxt.js
  • ✅ Next.js
  • ✅ NestJS
  • ✅ Or run independently as a standalone server

It gives you a Laravel-like development experience while staying simple and unopinionated.


⚡ Quick Start (Standalone Server)

npm create devlien@latest devlienApp

🚀 Quick Start with Nuxt.js or Nextjs

This guide will walk you through installing and using Devlien in a Nuxt.js, Nextjs project.


1️⃣ Install the Framework (If you install Devlien into any other framework)

In your Nuxtjs or Nextjs project root, install Devlien:

npm install devlien

2️⃣ Run the Setup Command (If you install Devlien into any other framework)

Initialize the server environment using:

npx devlien setup

This will automatically create the following structure inside your project:

server
├── app
│   ├── Http
|   |   ├──Controllers
|   |   ├──Middleware
|   |   └──Resources
│   ├── Models
│   └── Providers
├── config
│   ├── app
│   └── database
├── database
│   ├── migrations
│   └── seeds
├── routes
│   ├── web
│   └── api
├── resources
│   └── views
├── .env

3️⃣ Configure .env File

Edit the generated .env file and set your database configuration:

APP_NAME="Devlien"

DB_CONNECTION="mysql"
DB_HOST="localhost"
DB_PORT="3306"
DB_USERNAME=root
DB_PASSWORD=secret
DB_NAME=devlien

✅ You must have a running MySQL/MariaDB database before proceeding.


✨ Generate Core Components

Devlien includes several command-line tools to help you build faster:


📂 Create a Controller

npx devlien make:controller HomeController

This will generate:
server/app/Controllers/HomeController.js


📦 Create a Model

npx devlien make:model User

This will generate:
server/app/Models/User.js


🧱 Create a Migration

npx devlien make:migration users

This will generate:
server/database/migrations/2025_06_23_XXXXXX_users.js

Edit the file to define your table structure.


🔄 Run Migrations

npx devlien migrate
npx devlien migrate:rollback --all

This will execute all pending migrations and create tables in your database.


🚀 Create a HTTP Resource

npx devlien make:resource

You’ll be prompted to enter the resource name (e.g., Product) and Devlien will generate resource for you.


📚 Migration Usage Example

In your migraion: /database/migrations/...users.js

import Migration from "devlien/migration";

export default class extends Migration {
    up(schema){
        schema.create('users', (table)=>{
           table.increments('id');
           table.string('name');
           table.string('email').unique();
           table.string('password');
           table.set('status', ['active', 'inactive']).default('active');
        });
    }
    down(schema){
        schema.drop('users');
    }
}

📚 Route Usage Example

In your routes/api.js:

import route from "devlien/route";
import Auth from "../app/Http/Middleware/Auth.js";

export default route.serve(route => {
    route.group({'prefix':'api', 'middleware':[Auth]}, (route)=>{
        route.get('index', 'UserController@index');
        route.put('create', 'UserController@create'); 
        route.put('update/:id', 'UserController@update');
    })
});

📄 Template Usage Example

In you controller

import view from "devlien/view";

export default class DevlienController extends Controller {
    constructor() {
        super();
        // Any setup or initialization can go here.
    }
    async wellcome(request) {
        return await view('wellcome', {title:'Wellcome to Devlien'});
    }
}

In you template (root/resources/views/wellcome.dl)

<template>
    <h1>{{ title }}</h1>
    <p>{{ version }}</p>
</template>

@script
    const version = "1.0.3";
@endscript

📚 Model Usage Example

In your controller:

import User from "../../Models/User.js";

// Fetch users
let users = await User.get();


// or
let user = new User();
let users = await user.get();
await User.limit(10).get();
await User.skip(5).limit(10).get();
await User.where({id:1}).where([{id:1}, {id:1}]).where(['id', '=', 1]).get();
await User.where({id:1}).first();
await User.create({
    "name" : "Shamim Haque",
    "username" : "shmimhaque",
    "email" : "[email protected]"
});
await User.where({id:1}).update({
    "name" : "Shamim Haque",
    "email" : "[email protected]"
});

More query methods coming soon...


🧾 Roadmap (Coming Soon)

  • Authentication scaffolding
  • RESTful API boilerplate
  • Collection map
  • Queue process

👨‍💻 Author

Shamim Haque
GitHub: @shamimhaque-mpi
📧 Email: [email protected]


📄 License

This project is open-source and available under the MIT License.