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

@gistui/solid

v0.2.1

Published

GistUI for Solid (and SolidStart, TanStack Start with Solid): a <GistUI> component that renders streamed GistUI programs, with the default components built in and your own Solid components for any name.

Readme

GistUI for Solid (SolidStart, TanStack Start with Solid): render a model's streamed answer as real UI (dashboards, forms, reports, slide decks) with GistUI's components, or with your own Solid components.

npm install @gistui/solid @gistui/styles

On the server, give the model GistUI's system prompt:

import { prompt } from "@gistui/catalog";
const system = prompt().text; // prompt({ mode: "inline" }) for chat text with ```gistui blocks

In your app:

import { GistUI } from "@gistui/solid";
import "@gistui/styles/styles.css";

<GistUI source={answer()} streaming={loading()} onAction={(a) => console.log(a)} />;

Props: source + streaming or stream, inline, theme, color, tokens, darkTokens, classNames, tools, mutations, allowedHosts, paused, initialState, lockUntil, openLinks, autofix (default true), components, library, and onAction, onError, onStateChange, onProse, onAutofix, onToolCall.

Tools and safety. A program is untrusted (a model wrote it, possibly steered by content it read). tools are read-only and may run as soon as the UI renders; mutations change something and run only when the person presses a button; onToolCall is called before every tool call and can block it by returning false. allowedHosts (["cdn.example.com", "*.example.com"]) limits where images, video and backgrounds load from; without it, a URL the program assembled from data is not loaded. paused stops timed data refreshes.

Autofix. When a stream ends with mistakes, the program is repaired in code (no model call) and shown repaired, in place; onAutofix lists what changed.

Your own components

Any Solid component (Kobalte, solid-ui, your design system) can replace a built-in one:

import { GistChildren, type GistUIComponentProps } from "@gistui/solid";

function MyCard(p: GistUIComponentProps) {
  return <section class="my-card"><GistChildren /></section>; // p.props: what the model wrote
}

<GistUI source={answer()} components={{ Card: MyCard }} />;

Your components see the context around <GistUI>. For a form field, createGistField(props) joins the GistUI Form around it: validation from the field's props, error messages, and bind:$var (field().name, error, locked, value, setValue).

All packages

GistUI is one project in several packages, released together under one version.

| Package | What it is | |---|---| | @gistui/react | React renderer and default components | | @gistui/vue | Vue 3.5+ and Nuxt | | @gistui/svelte | Svelte 5 and SvelteKit | | @gistui/solid | Solid and SolidStart | | @gistui/vanilla | Vanilla JavaScript renderer, no framework | | @gistui/catalog | Component schemas, the system prompt and the agent skill | | @gistui/styles | One stylesheet for every framework | | @gistui/server | Stream reading, validation and repair on the server | | @gistui/chat | Headless chat store, model adapters, React chat layouts | | @gistui/core | The language: streaming parser, validator, autofix, prompt generator | | @gistui/headless | Shared internals: engine, themes, forms | | @gistui/widgets | Shared internals: charts, Markdown |

Licence

MIT