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

@liche/product

v0.8.2

Published

Product schema authoring, generated CLI surfaces, and conformance for Liche.

Readme

@liche/product

Product schema authoring, generated surfaces, and conformance for Liche CLIs.

This package is published as Bun-only TypeScript source. Use Bun >= 1.3.0; the current package format does not ship dist or declaration artifacts.

Use @liche/product when one product catalog should drive CLI source, OpenAPI, command manifests, MCP tools, agent docs, user docs, config schema, catalog/discovery artifacts, compile entrypoints, auth/session commands, local diagnostics, telemetry status, and conformance checks.

Generated CLIs still run on @liche/core, so generated commands inherit the shared parser, structured result envelope, and transport behavior used by handwritten commands.

import { Auth, Command, Field, Http, Schema, ValueSource, defineProduct } from "@liche/product";

export default defineProduct({
  id: "workers",
  name: "Workers",
  version: "1.0.0",
  auth: Auth.none(),
  remote: { baseUrl: ValueSource.env("WORKERS_API_BASE_URL") },
  commands: {
    deploy: Command.http({
      path: ["deploy"],
      summary: "Deploy a Worker",
      input: Schema.object({ name: Field.string("Worker name") }),
      output: Schema.object({ id: Field.string("Deployment ID") }),
      http: Http.post("/deployments", { bind: Http.bind({ body: true }) }),
    }),
  },
});

Generate

liche-product generate ./product.ts --out ./generated
liche-product generate ./product.ts --out ./generated --check --json

Generated artifacts include:

  • liche.generated.ts
  • liche.generated.openapi.json
  • liche.generated.commands.json
  • liche.generated.mcp.json
  • liche.generated.agent.md
  • liche.generated.docs.md
  • liche.generated.config.schema.json
  • liche.generated.catalog.json
  • liche.generated.discovery.json
  • liche.compile-entry.ts
  • liche.generated.manifest.json

Opt-in ops.release metadata is embedded into generated docs, discovery JSON, doctor --json, and a local release --json command. It is static by design: install commands, channel, latest known version, packages, and yanked versions are available to users and agents without a hosted update service.

Conformance

Run conformance against an owned fixture server or local server:

liche-product conform ./product.ts --base-url http://localhost:8787 --report .liche/conformance.json --json

Conformance reports redact auth material and keep destructive capabilities opt-in.

Generated CLIs use @liche/core for runtime behavior, config, auth/session state, config-owned diagnostics, opt-in telemetry sinks, validation envelopes, and HTTP transport. Catalog-generated surfaces remain canonical for Product command manifests, MCP tools, agent docs, and reference docs.