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 🙏

© 2025 – Pkg Stats / Ryan Hefner

express-ultimate

v1.0.4

Published

Express boilerplate with built-in authentication, database support, and Swagger documentation.

Readme

Express Ultimate Boilerplate

A powerful, scalable Express.js boilerplate with built-in authentication, database support (MongoDB & PostgreSQL), Redis integration, logging, encryption, and Swagger documentation.

Features

  • 🚀 Express.js: Lightweight and fast web framework
  • 🔐 Authentication: JWT-based authentication
  • 🗄️ Database Support: MongoDB & PostgreSQL
  • 🛡️ Security: Helmet, CORS, Rate Limiting
  • 📝 Swagger API Documentation: Auto-generated API docs
  • 🛠 Redis Integration: For caching and session management
  • 📊 Logging: Winston for structured logs
  • 🔒 Encryption: AES encryption for sensitive data
  • 🏗 TypeScript Support: Fully typed API

Installation

npm install express-ultimate

or for local development:

git clone https://github.com/your-repo/express-ultimate.git
cd express-ultimate
npm install

Usage

Basic Example

import { app, registerRoutes, redisClient, logger } from 'express-ultimate'

// Register custom routes
registerRoutes(app => {
  app.get('/custom', async (req, res) => {
    await redisClient.set('message', 'Hello from Redis!')
    const message = await redisClient.get('message')
    res.json({ message })
  })

  app.post('/data', (req, res) => {
    logger.info('Received data:', req.body)
    res.json({ success: true, data: req.body })
  })
})

// Start the server
const PORT = process.env.PORT || 5000
app.listen(PORT, () => {
  logger.info(`Server is running on port ${PORT}`)
})

Environment Variables

Create a .env file in your root directory:

PORT=5000
DB_URI=mongodb://localhost:27017/mydb
USE_POSTGRES=false
REDIS_URL=redis://localhost:6379
ENCRYPTION_KEY=mysecretkey

API Documentation

Swagger documentation is automatically generated. Run the server and access:

http://localhost:5000/api-docs

Redis Usage

import { redisClient } from 'express-ultimate'
await redisClient.set('key', 'value')
const value = await redisClient.get('key')
console.log(value)

Database Connection

import { connectDB } from 'express-ultimate'
connectDB(process.env.DB_URI, process.env.USE_POSTGRES === 'true')

Logging

import { logger } from 'express-ultimate'
logger.info('This is an info log')
logger.error('This is an error log')

Encryption

import { encryptData, decryptData } from 'express-ultimate'
const encrypted = encryptData('Hello World')
console.log(decryptData(encrypted))

Contributing

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Commit changes (git commit -m 'Add new feature')
  4. Push to branch (git push origin feature-branch)
  5. Open a Pull Request

🎯 License

This project is licensed under the MIT License.


📬 Contact