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

@fang-js/fang

v1.0.3

Published

A zero-dependency, high-performance, and minimalist web framework for Node.js.

Downloads

27

Readme

🐺 Fang-js: Micro-Framework for Node.Js

Fang-js is a minimalist, ultralight, and strongly typed framework designed for Node.js. Its philosophy is based on eliminating external dependencies, focused in development minimal API REST.

Fang-js was born from a radical idea: What if a framework didn't try to do everything, but did one thing perfectly? In an ecosystem saturated with heavy abstractions, Fang-js stands as a thin, transparent, and extremely fast layer on top of Node.js.

Unlike other frameworks that force you to learn proprietary validation rules or install hundreds of unnecessary dependencies, Fang-js embraces industry standards. By integrating Zod as its only core dependency, we ensure that every piece of data entering your application is exactly what you expect, with automatically generated TypeScript types. It is the ideal tool for developers who value maintainability, cookie security, and clean architecture without "black magic."

Documentation:

https://fang-js-docs.vercel.app/

✨ Key Feactures

  • Single-Dependency Core: Only Zod lives in your node_modules. Maximum security, minimum footprint.

  • Hierarchical Route Grouping: Keep your API organized. Group routes by versioning (/api/v1) or resources (/users) with specific middlewares for each group.

  • Native Zod Integration: Industrial-grade validation for Queries, Headers, and Cookies via ctx.getQuery, ctx.getHeader, and more.

  • Smart Cookies: Secure-by-default cookie management (HttpOnly, Secure, and smart SameSite logic included).

  • Onion Middleware: Full support for the asynchronous middleware pattern (await next()), allowing you to execute logic both before and after your routes.

  • Type-Safe Context: A unified Context object that eliminates the need to handle req and res separately, keeping TypeScript's IntelliSense sharp.

🗃️ Philosophy

Fang-js follows the Minimalist Power philosophy:

  • Validation is Core: We believe a framework is only as good as its data integrity.

  • No Hidden Logic: If you want a feature (Sessions, JWT), you plug it in. We provide the tools (ctx.state, Cookies, Middleware), you provide the logic.

  • Modern Defaults: Security headers and cookie attributes are treated as first-class citizens, not afterthoughts.

⚡ Performance

Fang-js is built for low-latency environments. By avoiding deep dependency trees and leveraging native Node.js HTTP modules, Fang-js ensures that your business logic runs without the framework overhead.

  • Near-zero overhead on request routing.
  • Optimized Zod parsing for incoming data.
  • Clean Context object to reduce garbage collection pressure.

🥊 Fang-js vs The Industry 🥊

| Feature | Express.js | Koa.js | Fang-js🐺 | | :--------------- | :----------------------- | :------------------ | :-------------------------- | | Philosophy | "Batteries included" | Barebones / Minimal | Strictly Typed / Secure | | Validation | Manual / Third-party | Third-party | Native Zod Integration | | Middleware | Callback-based | Async (Onion) | Async (Onion) | | TypeScript | Via @types/express | Via @types/koa | Native (First-class) | | Cookies | Requires cookie-parser | Built-in (no Zod) | Native + Zod Schema | | Dependencies | ~30+ transitive | ~20+ transitive | 1 (Zod) |

👤 Author

Created by Luis Angel Fernández.