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

@shisakankoy/fast-food

v0.1.3

Published

FastFood is a lightweight HTTP framework for Node.js.

Readme

FastFood

FastFood is a lightweight HTTP framework for Node.js.

It is designed to make creating HTTP servers easier while staying close to the native Node.js http module.

Features

  • Lightweight
  • Simple routing with get() and post()
  • Simple response helpers
  • URL query parsing with req.query
  • Form body parsing with req.bodyParams
  • Built on the native Node.js http module
  • Easy to learn and use

Installation

npm install @shisakankoy/fast-food

Example

import { FastFood } from "@shisakankoy/fast-food";

const app = new FastFood();

app.listen(3000, "0.0.0.0", () => {
    console.log("Server started");
});

// GET
app.get("/", (req, res) => {
    res.header(200, {
        "Content-Type": "text/plain"
    });

    res.print("Hello, FastFood!");
    res.end();
});

// POST
app.post("/data", (req, res) => {
    req.at("in");

    const number = req.query.get("number");

    req.at("end", () => {
        const message = req.bodyParams.get("msg");

        console.log("Received:", req.body);
        console.log("Message:", message);
        console.log("Number:", number);

        res.header(200, {
            "Content-Type": "text/plain"
        });

        res.print("Data received.");
        res.end();
    });
});

Syntax

Start the server

app.listen(port, host, handler);

Register a GET route

app.get(path, (req, res) => {});

Register a POST route

app.post(path, (req, res) => {});

Set response headers

res.header(statusCode, headers);
  • Equivalent to res.writeHead().

Write a response

res.print(text);
  • Equivalent to res.write().

Receive POST data

req.at("in");
  • A shorthand for req.on("data").
req.at("end", handler);
  • A shorthand for req.on("end").

Read URL query parameters

req.query
  • A URLSearchParams object created from the URL query string.

Example:

const id = req.query.get("id");

Read form body parameters

req.bodyParams
  • A URLSearchParams object created from the request body.
  • Available only inside req.at("end").

Example:

const message = req.bodyParams.get("msg");

License

MIT License

Notes

  • Call listen() before registering routes with get() or post().
  • The listen() method requires a host name (for example, "0.0.0.0" or "127.0.0.1").
  • req.bodyParams is available only inside req.at("end").