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

@ggml/llama-ui

v0.2.0

Published

Shared UI library for llama.cpp frontend apps.

Readme

@ggml/llama-ui

Llama UI, the design system of Llama Chat and the Llama apps, as a package: its tokens, fonts, surfaces and components, for llama.pages (llama.app) first and Llama Chat (tools/ui in llama.cpp) later. The rules are in tools/ui's DESIGN.md and BRAND.md; SYNC.md says what was taken from there and how to keep the two in step.

Use

/* app.css */
@import 'tailwindcss';
@import '@ggml/llama-ui/theme.css';
<script lang="ts">
	import { Badge, Button } from '@ggml/llama-ui';
</script>

<Button variant="secondary">View on Hugging Face</Button>
<Badge variant="success">Downloaded</Badge>
  • theme.css: everything: fonts, tokens, surfaces, the Tailwind theme and base styles. It needs Tailwind 4.
  • tokens.css: the three tiers of tokens only. fonts.css: Llama Sans and Llama Mono. surfaces.css: the matte surface utilities.
  • Dark mode is the dark class on <html>; the Matte light surfaces are the theme-matte class.

What's in it

  • Foundations: the primitive, semantic and component tokens, the type roles (text-body, text-label…), corner, icon and control-height roles, the matte surfaces and elevations, Llama Sans and Llama Mono.
  • Components: Button, Badge, Card, Input, Label, Popover, Select, Separator, Switch, Toggle, ToggleGroup, Tooltip, ActionIcon (an icon button with a tooltip), SearchInput (a search field with a clear button) and Logo (the brand mark). FILTER_TRIGGER_CLASS and FILTER_TOGGLE_ITEM_CLASS style a filters bar the way Llama Chat's Models Manager does.
  • Model UI: how a model is shown in Llama Chat and on llama.app: ModelCard, ModelFamilyCard (a family as llama.app's catalog shows it), ModelId (name, badges, capability, context and size icons), ModelCapabilityIcons (icons or labelled badges), ModelOrgAvatar, ModelMetadataItem, ModelQuantOptions, ModelQuantChip, ModelQuantRow, plus the formatters and minMemoryTierGb and summarizeSizes. They take model data in and report what the user did out; fetching and downloading stay in the app.

Next: Tabs and Separator, and llama.app's model page from its proposal (Scrapbook › UI › llama.app).

Development

  • npm run storybook: a copy of Llama UI's Storybook in llama.cpp, cut down to what the package holds, with the Scrapbook for proposals
  • npm run dev: Storybook and a small SvelteKit check page (src/routes)
  • npm run check: svelte-check
  • npm run prepack: build the library into dist/ and run publint