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

@forgedevstack/kiln

v1.0.5

Published

Component documentation and showcase tool. A lightweight, blazing-fast Storybook alternative for ForgeStack.

Downloads

185

Readme

Kiln

Component documentation and showcase tool for ForgeStack. A lightweight, blazing-fast Storybook alternative.

Features

  • Story-based docs: Document components with multiple stories (variants).
  • URL routing: Every story has its own route (e.g. /button/default, /card/elevated) via Compass.
  • Theme & logo: Customize theme (light/dark/system), primary color, and logo in kiln.config.json for your static site.
  • UI customization: Override colors, font, borderRadius, sidebar width via ui in config.
  • Docs tab: Toggle with docEnable; show props first with defaultTab: "docs". Add custom doc via doc: [] (e.g. from .kiln).
  • Testing: Generate Crucible test files with kiln test-add <file> or kiln test-add --all for every component.

Install

npm install @forgedevstack/kiln @forgedevstack/forge-compass react react-dom

Quick start

  1. Init (creates kiln.config.json):

    npx kiln init
  2. Add a story (e.g. src/Button.story.tsx):

    import type { StoryGroup } from '@forgedevstack/kiln';
    
    const buttonStories: StoryGroup = {
      title: 'Button',
      stories: [
        {
          name: 'Default',
          component: Button,
          args: { label: 'Click me' },
        },
      ],
    };
    export default buttonStories;
  3. Run dev server:

    npx kiln dev

    Open the app; each story is available at /:groupSlug/:storySlug (e.g. /button/default).

Configuration

kiln.config.json:

| Option | Description | Default | |------------------|--------------------------------------------------|-----------| | title | Site title | "Kiln" | | description | Site description | - | | logo | Logo URL or path (sidebar) | built-in | | theme | "light" | "dark" | "system" | "light" | | primaryColor | Brand color (hex) | "#6366f1" | | port | Dev server port | 6006 | | defaultTab | "canvas" | "docs" (props first when "docs") | "canvas" | | docEnable | Show the Docs tab (props + custom doc). When false, only Canvas is shown. | true | | doc | Custom doc sections for the Docs tab. Each entry: { id, title, content?, file?, children? }. Use with content from .kiln or inline. | [] | | ui | UI overrides: primaryColor, secondaryColor, accentColor, sidebarBg, contentBg, fontFamily, borderRadius ("none" | "sm" | "md" | "lg"), sidebarWidth (px). | - | | stories | Glob patterns for story files | ["src/**/*.kiln.tsx", ...] | | cssImport | CSS file to import (e.g. Bear styles) | - | | wrapper | Provider wrapper (from, name, props) | - |

Theme, logo, and ui are applied in the Kiln UI. Use doc: [] to add your own documentation sections (e.g. from .kiln) alongside auto-generated props:

"doc": [
  { "id": "intro", "title": "Introduction", "content": "<p>Welcome to the design system.</p>" },
  { "id": "guidelines", "title": "Guidelines", "file": ".kiln/docs/guidelines.md", "children": [] }
]

Testing with Crucible

Generate test files for stories (default: *.kiln.test.ts):

# One component
npx kiln test-add src/Button.story.tsx

# Every component (discovers story files from config)
npx kiln test-add --all

Run the generated tests with your stack (e.g. Crucible/Vitest).

Testing Kiln (development)

From the Kiln repo:

  1. Build the library:

    npm run build
  2. Run the example app (uses the built dist; opens at http://localhost:6006):

    npm run example

    The example loads Button, Card, and Badge stories so you can click through the UI, theme, and docs tab.

  3. Test the CLI in a real app: create a project with src/**/*.story.tsx (or .kiln.tsx), run npx kiln init then npx kiln dev to see Compass-routed story URLs.

Scripts

  • kiln init – Create kiln.config.json
  • kiln dev – Start dev server (Compass routes per story)
  • kiln build – (Planned) Static build
  • kiln preview – (Planned) Preview static build
  • kiln test-add <storyFile> – Generate *.kiln.test.ts for one story file
  • kiln test-add --all – Generate tests for every story file (from config)

Version

1.0.4