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

offbyt

v1.0.5

Published

Code generation and deployment tool

Readme

Offbyt - Automatic Backend Generation

Scan frontend → Auto-generate production backend in seconds

Offbyt detects your frontend API calls and generates an enterprise-grade Express.js + MongoDB backend with CRUD, authentication, validation, rate limiting, caching, and Socket.io—100% offline, no AI needed.

⚡ Quick Start

npm install -g offbyt
offbyt generate        # Generate backend (interactive setup)
cd backend && npm run dev   # Run backend on http://localhost:5000

🚀 Main Features

Auto-Generated Backend - Express.js, NestJS, or Fastify
Multiple Databases - MongoDB, PostgreSQL, MySQL, SQLite
Complete CRUD APIs - Pagination, search, filtering, sorting
Authentication - JWT, OAuth, or Session-based
Security - Rate limiting, input validation, Helmet.js, CORS
Performance - Compression, caching, database indexes
Real-time Chat - Socket.io with messaging, typing indicators
Frontend Integration - Auto-connect URLs, sync changes
One-Command Deploy - Vercel/Netlify + Railway/Render
Performance Testing - Load testing & optimization recommendations

📚 Commands

| Command | Purpose | |---------|---------| | offbyt generate | Generate backend (interactive setup) | | offbyt generate --quick | Generate with defaults | | offbyt compile | Auto-connect frontend & backend URLs | | offbyt sync | Update backend when frontend changes | | offbyt benchmark | Performance & scalability testing | | offbyt deploy --full | Deploy frontend + backend (Vercel + Railway) | | offbyt generate-api | Generate APIs from frontend state patterns | | offbyt doctor | System health check |

🎯 Generated Backend Structure

backend/
├── server.js              # Express entry point
├── package.json           # Dependencies
├── .env                   # Environment config
├── routes/                # API endpoints
├── models/                # Mongoose schemas
├── middleware/            # Error handling, logging, auth
├── controllers/           # Business logic
├── config/                # Database config
└── utils/                 # Utilities

⚙️ Environment Setup

MONGODB_URI=mongodb://localhost:27017/myapp
PORT=5000
NODE_ENV=development
CORS_ORIGIN=http://localhost:3000

🔄 Typical Workflow

# 1. Generate backend from frontend
offbyt generate

# 2. Start backend
cd backend && npm run dev

# 3. Connect frontend with backend
offbyt connect .

# 4. When frontend changes, sync backend
offbyt sync

# 5. Test performance before production
offbyt benchmark

# 6. Deploy
offbyt deploy --full

🛠️ Customization

Add Custom Routes

// backend/routes/custom.routes.js
import express from 'express';
const router = express.Router();

router.get('/custom', (req, res) => {
  res.json({ message: 'Custom route' });
});

export default router;

Then register in server.js:

import customRoutes from './routes/custom.routes.js';
app.use('/api', customRoutes);

🐛 Troubleshooting

MongoDB connection failed?

mongod  # Start MongoDB locally
# Or use MongoDB Atlas → update MONGODB_URI in .env

Port 5000 already in use?

# Change in .env
PORT=5001

Dependencies installation failed?

cd backend && npm install --legacy-peer-deps

📋 Requirements

  • Node.js 18+
  • npm 9+
  • MongoDB (local or Atlas)

✨ Advanced Features

  • Mongoose Hooks - Pre/post save, update, delete
  • Soft Delete - Data recovery without hard delete
  • Bulk Operations - Create/update/delete multiple records
  • Virtual Fields - Computed properties
  • Health Check Endpoint - /health
  • Graceful Shutdown - Proper database disconnection

Built for developers who want to focus on building, not boilerplate.