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

hyperin

v0.1.0

Published

πŸš€ Fast, safe and modern

Downloads

1,155

Readme

Installation

This is a Node.js module available through the npm registry.

npm install hyperin

Features

  • Fast radix-tree routing
  • Middleware pipeline with next()
  • Built-in JSON, cookies, compression, CORS, security, multipart, and static file helpers
  • Typed request and response primitives
  • Express-like settings API
  • OpenAPI and Scalar support

Quick Start

import { hyperin } from 'hyperin'
import { json } from 'hyperin/middleware'

const app = hyperin()

app.use(json())

app.get('/', () => ({ message: 'Hello World' }))

app.post('/users', ({ request, response }) => {
  response.status(201)

  return {
    created: true,
    body: request.body
  }
})

app.listen(3000, () => {
  console.log('Server running at http://localhost:3000')
})

Validation

Route methods accept multiple handlers. Pass the route options object as the last argument to add validation and documentation metadata.

import { hyperin } from 'hyperin'
import { json } from 'hyperin/middleware'
import { z } from 'zod'

const app = hyperin()

app.use(json())

app.post(
  '/login',
  ({ request, response }) => {
    const { email, password } = request.body

    response.status(201)
    return { email, password }
  },
  {
    body: z.object({
      email: z.email(),
      password: z.string().min(6)
    })
  }
)

Hyperin also supports Standard Schema, allowing you to use your favorite validation library.

Supported Standard Schema libraries include:

Logger

Use the built-in logger to emit structured events with custom levels, metadata, and async transports.

import { hyperin } from 'hyperin'
import { createLogger } from 'hyperin/logger'

const app = hyperin()

const logger = createLogger({
  kind: 'audit',
  level: 'info',
  transports: [
    async function ({ event }) {
      console.log(event)
    }
  ]
})

app.get('/', async function () {
  logger.trace('Get all the data.', {})

  return {
    message: 'Hello, World!'
  }
})

app.listen(7000, '0.0.0.0')

OpenAPI

Generate an OpenAPI document from route schemas.

import { openapi } from 'hyperin/openapi'

openapi(app, {
  documentation: {
    info: {
      title: 'My API',
      version: '1.0.0'
    }
  }
})

The document is available at GET /openapi.json by default.

Scalar

Expose a Scalar UI for the generated OpenAPI document.

import { scalar } from 'hyperin/scalar'

scalar(app)

scalar(app, {
  path: '/docs',
  url: '/openapi.json',
  configuration: {
    theme: 'purple',
    layout: 'modern'
  }
})

Documentation

Full documentation is being prepared. For now, the codebase and tests are the best reference for the public API.

Contributing

npm install
npm test
npm run build

Issues and pull requests are welcome.

Support

Enjoying this framework? Consider supporting the project.

License

MIT