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

@kniferoll/kniferoll

v1.1.0

Published

A structured markdown format for recipes — parser, web component, and import engine

Readme

Kniferoll

A structured markdown format for recipes — parser, web component, and import engine.

Quick Start

Drop a single script tag, then write your recipe:

<script type="module" src="https://kniferoll.dev/[email protected]"></script>

<kr-recipe>
# Pasta Aglio e Olio

## Ingredients
- spaghetti - 400 g
- garlic - 4 cloves, thinly sliced
- olive oil - 1/2 cup
- red pepper flakes - 1 tsp
- parsley - 1/4 cup, chopped

## Steps
1. Boil [[spaghetti]] in salted water until al dente.
2. Sauté [[garlic]] in [[olive-oil]] over medium-low heat until golden.
3. Add [[red-pepper-flakes]] and toss with drained pasta.
4. Finish with [[parsley]] and a splash of pasta water.
</kr-recipe>

That's it. No build step, no framework, no dependencies.

What You Get

  • Scaling — Click to scale recipes up or down. Quantities update everywhere.
  • Unit conversion — Toggle between metric and imperial.
  • Ingredient linking — References in steps highlight the corresponding ingredient.
  • Inline editing — Click any ingredient or step to edit in place.
  • Theming — CSS custom properties for full visual control.
  • Five layouts — Stacked, two-column, steps-left, ingredients-left, print-compact.
  • Diagnostics — Parser warnings shown inline to help fix formatting issues.

The Format

Kniferoll Markdown is designed to be readable as plain text while enabling rich rendering. See SCHEMA.md for the full specification.

Key syntax:

  • - ingredient - quantity unit, modifier :: attribute for ingredients
  • [[ingredient-id]] to reference ingredients in steps
  • {350F} or {1 cup | 240ml} for inline temperatures and quantities
  • YAML frontmatter for metadata, source attribution, and scale presets

Programmatic Use

bun add kniferoll
// Parse a recipe
import { parseDocument } from "kniferoll/core";
const result = parseDocument(markdown);

// Import from text or images via LLM
import { importRecipe } from "kniferoll/import";
const result = await importRecipe({ text: html }, { apiKeys: { google: key } });

// Or plug in a host-provided inference adapter (no provider API keys needed)
const result = await importRecipe(
  { text: html },
  {
    inference: {
      infer: async ({ stage, systemPrompt, input, responseFormat, signal }) => {
        const text = await myHostLlm({ stage, systemPrompt, input, responseFormat, signal });
        return { text };
      },
    },
  },
);

// Register the web component
import "kniferoll/component";

CLI

bun run kr check recipe.md     # Lint a recipe
bun run kr import recipe.jpg   # Import from image via LLM
bun run kr eval                # Run import quality evaluations

Development

bun install          # Install dependencies
bun test             # Run tests
bun run build        # Build dist/kniferoll.js and dist/kniferoll.min.js
bun run typecheck    # TypeScript checking

CSS Custom Properties

Style the component to match your site:

kr-recipe {
  --kr-font-family: 'Inter', system-ui, sans-serif;
  --kr-color-text: #1a1a1a;
  --kr-color-accent: #2563eb;
  --kr-color-surface: #fff;
  --kr-card-radius: 0.5rem;
  --kr-card-padding: 2rem;
}

See AGENTS.md for the full list of 26 custom properties covering typography, colors, spacing, and layout.

License

MIT