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

@guml/widgets

v0.1.0

Published

The five components GUML deliberately does not ship as builtins, as a registry package.

Readme

@guml/widgets

Five components GUML has no builtin for, as a GUML vocabulary: chart, calendar, date, upload, command.

This is the worked example that spec/REGISTRY.md describes — the smallest complete registry package, kept small on purpose so it can be read end to end. If you are writing your own package, read this one first.

pnpm add @guml/widgets
guml build app.guml --registry node_modules/@guml/widgets/guml.registry.json
chart revenue of=revenue kind=line
date starts
upload avatar

Why these five are not builtins

They need a charting library, a date library and a file-upload surface — dependencies the compiler cannot assume and should not carry. A builtin has to lower in all seven backends, including the no-JavaScript static-HTML build; a chart cannot. Making them a package is what lets the vocabulary grow without the compiler growing a dependency tree.

Consuming this package

It ships TypeScript source, not a build. exports points at .tsx directly. There is no dist, no main, and no build step.

That is a deliberate choice and it has a cost, so it is worth stating rather than leaving to be discovered: your bundler has to compile it.

  • Next.js — add it to transpilePackages in next.config.ts.
  • Vite — works, since Vite transforms linked/ESM sources.
  • Plain tsc — set "allowJs"/"jsx" appropriately and do not exclude node_modules for this package, or you will get "unexpected token" on the first <.

The reason is that a registry package's components are meant to be read and edited. A prebuilt dist hides the one thing you most need to see when a tag lowers to something you did not expect. The same reasoning applies to @guml/shadcn, whose upstream model is explicitly "the source is yours".

What a registry package is

A JSON file plus the components it names. Each entry declares a tag's kind, its attributes and positionals, its accessibility contract, and — the part that makes it a package — an element and an import:

{ "name": "chart", "kind": "container", "element": "Chart", "import": "@guml/widgets" }

The compiler then emits <Chart … /> and generates the import. element pointing at a component rather than a DOM tag is what lets the host own any glue between GUML's calling convention and the component's own API.

A package may not shadow a builtin (GUML0092), and every tag it declares must lower somewhere.

Checks

just widgets-test
  • guml registry --validate . — the package audits
  • pnpm typecheck — the components themselves
  • pnpm typecheck:example — compiles example.guml and typechecks the emitted TSX against those components

The third is the one that matters, and it found three compiler bugs the first time it ran: of= and kind= were silently dropped because the React backend's attribute loop encoded what those names mean for a builtin, the title never reached aria-label, and a field-kind component got its state name as children instead of a two-way binding.


MIT.