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

@neith/express

v0.1.5

Published

Typescript+Express+Jest boilerplate

Readme

📑 About the project

The server uses Winston and the native debug for log and debug.Winston is a logger for Node.js based on log4J.

The code written in TypeScript is transpilated to JavaScript using Esbuild. Esbuild is an open source compiler that is faster than Babel. Written in GO, tsx was used for project automatic build.In addition, the tsup for server bundle, which is faster than tsc.

For communication, Express has been selected for being a lightweight, easy-to-use framework. In addition. With adding a Rate Limit Middleware layer for the routes Express-rate-limit and Cors. And Helmet for security Helmet.

Finally, for unit tests the Jest was the framework responsible for unit tests performed. In addition, the supertest was used to test the routes with integration tests.

📦 Dependencies

  • Server:

    • Express
    • Express-rate-limit
    • Express-winston
    • Helmet
  • Run, Build and Test:

    • Tsx - Esbuild
    • Tsup - Esbuild
    • Jest
  • Base:

    • Cors
    • Debug
    • Dotenv
    • Eslint
    • Prettier
    • Typescript

📥 Package Manager

The project was developed using PNPM, but you can use any of the package managers below:

📂 Project Structure

the root directory is src/ and contains the following files:

-> Middlewares         # Validations, authentication, sanitization, etc.
  -> Controllers       # Endpoints, dice, etc.
    -> Services        # Business rules, logic, etc.
├── __tests__/        # Integration tests
├── common/           # Common: general project core files
│   ├── config/         # Config files, like env variables
│   ├── constants/      # Constants files, like enums
│   ├── interfaces/     # Interfaces files
│   ├── types/          # Types files
│   └── utils/          # Utility files, like rules, logger, etc
├── modules/          # Modules: main fragments of the project
│   └── Hello/
│       ├── hello.controller.ts  # Controller with the endpoints
│       ├── hello.middleware.ts  # Middleware with the handlers
│       ├── hello.service.ts     # Service with the main business
│       └── __tests__/  # Unit tests of module
├─ app.controller.ts    # Controller file with all endpoints
├─ app.middleware.ts    # Middleware file with general handlers
├─ app.service.ts       # General services, like docs, static files...
└─ main.ts              # Bootstrap the application

🚀 Getting Started

Start by defining the environment variables:

Environment Variables

  • PORT=3000

Install

npm install

Run

npm run dev

Running with docker 🐋

Just run:

docker-compose up -d

⚙ Tests

npm run test

# And use test:watch for watch mode
npm run test:watch

# And use test:coverage for generate coverage report
npm run test:coverage

🔍 SonarQube

npm run sonar

📖 Docs

The REST API documentation is based on Openapi/Swagger is available at:

http://localhost:8080/docs

For now it is necessary to write the Documentation of the REST API manually, but will soon be generated automatically.

📝 License

This project is under the MIT license.