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

servmini

v1.2.12

Published

πŸš€ ServMini ServMini is a powerful CLI tool to transform your Express.js routes into serverless functions (for Vercel, Netlify, or AWS Lambda) β€” with optional AI-powered code reviews using OpenAI, Claude, Ollama, and more.

Readme

πŸš€ ServMini ServMini is a powerful CLI tool to transform your Express.js routes into serverless functions (for Vercel, Netlify, or AWS Lambda) β€” with optional AI-powered code reviews using OpenAI, Claude, Ollama, and more.

✨ Features βœ… Converts routes/*.js to serverless-ready functions βœ… Supports .js, .ts, .tsx βœ… Targets: Vercel, Netlify, AWS Lambda βœ… Preserves folder structure and relative imports βœ… Optional AI code reviews using OpenAI, Claude, Ollama, OpenRouter βœ… Saves AI feedback as .md (optional) βœ… Auto-detects AI provider based on API key βœ… CLI-friendly and modular βœ… Extensible via plugin architecture (upcoming)

πŸ“¦ Installation Global (Recommended) bash Copy Edit npm install -g servmini From Source (Local Development) bash Copy Edit git clone https://github.com/kpnarendrakumar/servmini.git cd servmini npm install npm link Now you can run it globally using:

bash Copy Edit servmini πŸš€ Usage Basic CLI Command bash Copy Edit servmini [options] Example (AI Review Enabled) bash Copy Edit servmini ./backend
--target vercel
--review
--apikey sk-or-xxxxxxxxxxxxxxxx
--save-review
--out-dir converted βš™οΈ CLI Options Flag Description Default --target Deployment target: vercel, netlify, aws vercel --ext Output file extension: js, ts, tsx js --force-ext Force file extension override --out-dir Custom output directory converted/ --review Enable AI code review false --save-review Save AI feedback to .md file false --provider AI provider: openai, openrouter, claude, ollama, etc. Auto-detect --apikey API key for AI provider (can also use .env) --model Model to use (e.g., gpt-4, deepseek/deepseek-r1) Provider default --prompt Custom prompt for AI reviewer Predefined --experimental Use experimental transformer engine (convert.js pipeline) (optional) false --debug Enable verbose logging false

πŸ§ͺ Example Express App js Copy Edit // backend/routes/example.js import express from 'express'; const router = express.Router();

router.get('/hello', (req, res) => { res.send('Hello, world!'); });

export default router; Convert to Vercel Function bash Copy Edit servmini ./backend --target vercel πŸ“ Output Example --target vercel markdown Copy Edit converted/ └── api/ └── hello.js --target netlify Copy Edit converted/ └── hello.js 🧠 AI Review Setup Supported Providers Provider Key Prefix Example Model OpenAI sk- gpt-4, gpt-3.5-turbo OpenRouter sk-or- deepseek/deepseek-r1, mistral Claude claude- or anthropic claude-3-opus Fireworks fw_ accounts/fireworks/models/llama-v2 Ollama ollama:// ollama://mistral

You can skip AI review by omitting --review.

πŸ“„ .env Example Instead of passing keys in CLI:

env Copy Edit AI_API_KEY=sk-or-xxxxxxxxxxxxxxxxxxxxx AI_PROVIDER=openrouter AI_MODEL=deepseek/deepseek-r1-0528:free πŸ”§ Developer Mode Test Locally bash Copy Edit node ./bin/cli.js ./test --target vercel Link CLI Globally bash Copy Edit npm link servmini ./test --review 🧬 Roadmap Vercel/Netlify/AWS support

AI review with multiple providers

Save .md AI reports

Auto-deploy to Vercel/Netlify

GitHub Action for CI pipelines

Plugin support for custom transformations

GUI version for non-devs

πŸ™Œ Contributing bash Copy Edit

Fork the repo and clone locally

git clone https://github.com/kpnarendrakumar/servmini.git

Create a branch

git checkout -b feature/awesome-feature

Make changes and commit

git commit -m "✨ Add awesome feature"

Push and open PR

git push origin feature/awesome-feature πŸ“œ License MIT License Β© 2025 [KP Narendra Kumar]

🌍 Author KP Narendra Kumar GitHub: @kpnarendrakumar Twitter: @narendrakumarkp