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

@invinite-org/chartlang-examples

v0.4.0

Published

The chartlang example catalogue as a typed data package (metadata + inlined source)

Downloads

427

Readme

@invinite-org/chartlang-examples

experimental

The chartlang example catalogue as a typed data package: every worked example's metadata plus its inlined .chart.ts source, ready to drive a downstream template/example picker (e.g. the invinite chartlang editor).

Install

pnpm add @invinite-org/chartlang-examples

Public surface

  • EXAMPLE_CATALOGUE: ReadonlyArray<ExampleMetaWithSource> — one entry per example: { id, label, description, category, primitives, idioms?, source }. source is the full .chart.ts text (identical payload to the repo's examples/catalogue.json).
  • ExampleCategory, CATEGORY_LABELS, CATEGORY_ORDER — the shared taxonomy (the same categories the chartlang demo dialog uses).
  • Types ExampleMeta, ExampleMetaWithSource.

The data module is generated from examples/catalogue.ts by pnpm examples:generate and byte-diff-gated, so it never drifts.

Minimum-viable API call

import { CATEGORY_LABELS, EXAMPLE_CATALOGUE } from "@invinite-org/chartlang-examples";

for (const example of EXAMPLE_CATALOGUE) {
    console.log(CATEGORY_LABELS[example.category], example.label);
    console.log(example.source); // the runnable .chart.ts source
}

Docs

See docs/examples/ and CONTRIBUTING.md.

License

MIT