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

haechi-rush

v2.0.0

Published

- Just call it "Rush"

Downloads

2

Readme

@haechi/rush: Tactful Backend framework

  • Just call it "Rush"

Focus to writing logics. Rush will do every nuisance thing for you.

Features

  • 🔍 NextJS like directory based routing
  • 🔥 Hot Reloading per endpoint
  • 📜 Generate document automatically with Swagger
  • 🦾 Fully typed & validated request body, url query. Works with Zod

Get started with minimal example!

  1. Install library
yarn add @haechi/rush
  1. Create a directory "src" in the root of the project.
  2. Create first endpointfile "hello.ts" in the directory "src"
// /src/hello.ts

import { z } from "zod";
import { handler } from "../rush";

export default handler({
  async action(props) {
    return `Hi, I'm running!`;
  },
});
  1. Create starting point file "index.ts" in the root of the project
// /index.ts

import { rush } from "./rush";

rush(__dirname + "/src");
  1. It's now ready to rush!
yarn ts-node ./index.ts

Full example of endpoint

import { z } from "zod";
import { handler } from "../rush";

export const get = handler({
  title: "Say Hello",
  description: "You can be greeted by using this endpoint",
  query: {
    validate: z.object({
      name: z.string().min(2),
    }),
    example: {
      name: "Haechi",
    },
  },
  response: {
    scheme: z.string(),
    example: "Hi, Haechi!",
  },
  async action(props) {
    return `Hi, ${props.query.name}`;
  },
});

export const post = handler({
  title: "Set greeting message",
  description: "You can set greeting message by using this endpoint",
  body: {
    validate: z.object({
      prefix: z.string(),
    }),
    example: {
      prefix: "Hello, ",
    },
  },
  response: {
    scheme: z.object({
      message: z.string(),
      status: z.number(),
    }),
    example: "But nothing has changed",
  },
  async action(props) {
    if (!props.header.Authorization) {
      console.log("Coward is trying to change greeting message 🤣");
      props.setHeader("You", "Coward");
    } else {
      console.log("Somebody is trying to change greeting message");
    }

    return {
      message: `But nothing has changed`,
      status: -300,
    };
  },
});

Auto Documentation

Generated document is avaliable on "/docs" endpoint. If you want to use /docs endpoint, you can change document path. In index.ts,

rush(__dirname + "/src", {
  swagger: {
    path: "sw",
  },
});

Following above, you can change swagger serving path.

Additional Features

  • You can simply set CORS header with config
rush(__dirname + "/src", {
  cors: "https://rycont.ninja",
});