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

express-ts-feature-based

v2.0.1

Published

A scalable Express.js project with TypeScript featuring CRUD with pagination, filtering, sorting, file uploads, soft delete, RBAC, JWT authentication, access and audit logs, and cron jobs for scheduled tasks.

Downloads

6

Readme

ExpressJS Starter Template For RBAC Systems

A scalable Express.js project with TypeScript featuring CRUD with pagination, filtering, sorting, file uploads, soft delete, RBAC, JWT authentication, access and audit logs, and cron jobs for scheduled tasks.

Cover Image

Features

  • Role-Based Access Control (RBAC) – Fine-grained access control for different user roles and permissions.
  • CRUD Operations – Create, Read, Update, Delete endpoints out of the box.
  • Pagination, Filtering, Sorting, Searching – Easily manage large datasets with built-in pagination, query-based filtering, and sorting mechanisms.
  • File Upload – Upload and manage files using multer.
  • Soft Delete – Soft-delete support using timestamps instead of permanently removing data.
  • Multi Delete & Multi Create – Perform bulk operations with ease.
  • Authentication & Login – Token-based login system using JWT.
  • Access Logs – Track all incoming requests for monitoring and debugging.
  • Audit Logs – Record data changes with before/after snapshots for critical actions.
  • Cron Jobs – Scheduled background tasks using node-cron.
  • Job Queue – Queued background tasks using Redis & BullMQ.

🧱 Tech Stack

  • Express.js – Web framework
  • TypeScript – Static type-checking
  • MySQL – Database
  • Knex – Query Builder
  • JWT – Authentication
  • Multer – File uploads
  • Node-Cron – Scheduled jobs
  • Redis & BullMQ – Job Queue
  • Morgan – Logging
  • Docker - Containerization
  • ESLint, Prettier - Controlling code quality
  • Husky - Git hook

📦 Use Case Ideas

  • Admin dashboards
  • Internal tools
  • APIs for web/mobile apps
  • SaaS backends

🚀 Quick Start

Prerequisites

  • Docker - Download Docker 🐳
  • Docker Compose - Usually comes with Docker Desktop

Clone the repository

git clone https://github.com/MinPyaeKyaw/rbac-expressjs-starter.git
cd rbac-expressjs-starter

Start the Application with Docker

  1. Build and start all services (MySQL, Redis, and the Express app):
docker compose up --build

This will:

  • Start a MySQL 8.0 database with the rbac_express schema automatically loaded
  • Start a Redis server for job queues
  • Build and start the Express.js application
  • Wait for MySQL to be ready before starting the app
  1. Access the application:

    • API Server: http://localhost:3000
    • MySQL Database: localhost:3306
    • Redis: localhost:6379
  2. Default database credentials:

    • Host: localhost
    • Port: 3306
    • User: root
    • Password: your db password
    • Database: rbac_express
  3. Log in with these credentials:

    • Username: sai min
    • Password: saimin

Development Mode (Optional)

If you prefer to run without Docker for development:

  1. Install dependencies:
npm install
  1. Set up environment variables:

    • Copy .env.example to .env (if available)
    • Configure your local MySQL and Redis connections
  2. Start the development server:

npm run dev

📄 API Documentation

  • Postman Collection: Available in src/docs/rbac_express.postman_collection.json
  • Technical Documentation: Read here
  • Database Schema: Check src/docs/rbac_express.sql
  1. Run these commands
cd rbac-expressjs-starter
npm install
npm run dev
  1. Log in with this credential

    • username - sai min
    • password - saimin
  2. 📄 Postman collection can be found in src/docs folder. Get [here](src/docs/rbac_express.postman_collection.

  3. 📝 Read detailed technical documentation here

👨‍💻 Author

Sai Min Pyae Kyaw

💼 Passionate Full Stack Developer | Node.js | TypeScript | React | MySQL
📍 Based in Myanmar

🌐 Connect with me


Made with ❤️ by Sai Min Pyae Kyaw