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

@kuratchi/kavro

v0.0.1

Published

TypeScript-first config compiler for the Kavro web server and reverse proxy

Readme

Kavro

Kavro is an experimental TypeScript-first web server and reverse proxy.

This package owns the full Kavro surface: a TypeScript config DSL that compiles into a canonical JSON route graph, plus the internal Rust/Pingora runtime crate that serves that graph.

The production data plane target is Rust on top of Cloudflare's Pingora. The Rust server runtime should consume the graph without executing arbitrary user TypeScript. Cap'n Web is reserved for future browser dashboards or web-agent control surfaces. Cap'n Proto is not needed unless Kavro grows a Rust-native daemon or supervisor protocol. Pingora remains the HTTP/proxy backbone.

Source layout

packages/kavro/
  src/              TypeScript DSL, compiler, schema validation, and CLI
  crates/server/    Rust/Pingora runtime binary
  examples/         End-to-end fixtures

Example

import {
  defineConfig,
  fastCgi,
  proxy,
  respond,
  route,
  server,
  staticFiles,
  upstream,
} from '@kuratchi/kavro';

export default defineConfig({
  upstreams: [
    upstream('app', 'http://127.0.0.1:3000'),
  ],
  servers: [
    server({
      listen: 8080,
      hostnames: ['localhost'],
      routes: [
        route('/assets/*', staticFiles('./dist/assets')),
        route('/api/*', proxy('app')),
        route('/health', respond('ok')),
      ],
    }),
  ],
});

PHP-FPM/FastCGI is part of the route graph contract for the Rust runtime:

route('/*.php', fastCgi('php-fpm', './wordpress', {
  scriptRoot: '/var/www/html',
  index: ['index.php'],
  cache: {
    ttlMs: 5000,
    statuses: [200],
  },
}));

Dynamic cache is opt-in and route-scoped. The Rust runtime currently stores eligible proxy and fastcgi responses in memory and marks responses with x-kavro-cache: MISS, HIT, or BYPASS.

Compile the config:

kavro compile --config kavro.config.ts --out .kavro/route-graph.json

Validate an existing graph:

kavro validate .kavro/route-graph.json

Run the preview server:

kavro serve --config kavro.config.ts

The preview runtime is intentionally small and Node-backed. It exists only so the TypeScript config and canonical route graph can be exercised end to end while the Pingora-backed Rust runtime matures. It is not the production server architecture.

Build the Rust runtime from this package:

npm run server:build