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

@treeseed/ui

v0.12.16

Published

Reusable TreeSeed UI components, themes, and component sandbox.

Readme

@treeseed/ui

@treeseed/ui is the reusable Treeseed interface system. It provides layout-down Astro components, React widgets, forms, controls, cards, shells, dashboards, theme utilities, and CSS used by Treeseed admin, market, and core site surfaces.

Use this package when you need Treeseed visual primitives. Use @treeseed/admin for admin routes and workflows, @treeseed/core for site runtime integration, and the root market app for Treeseed-specific messaging and buyer-facing marketplace pages.

What You Can Build With UI

  • Treeseed shell primitives for authenticated app, operational market, auth, and public single-column layouts
  • shared public stacked-section components for marketing, profiles, books, and Knowledge Hub pages
  • SurfaceTabs for routed and in-page control-surface subpages
  • auth cards and account surfaces
  • form controls and data-entry panels
  • operation status panels and deployment timelines
  • reusable capacity/status controls when consumed by Admin or Market
  • market/catalog cards
  • commerce marketplace cards, offer panels, ownership summaries, service timelines, capacity risk panels, seller monitoring panels, and governance/Commons presentation components
  • docs and content presentation components
  • React widgets such as editors, charts, and rich controls
  • theme-aware app layouts for admin and market surfaces

Install

npm install @treeseed/ui

Import Styles

Import the base styles once in the host shell or plugin CSS list:

import '@treeseed/ui/styles/tokens.css';
import '@treeseed/ui/styles/theme.css';
import '@treeseed/ui/styles/ui.css';
import '@treeseed/ui/styles/forms.css';
import '@treeseed/ui/styles/app-shell.css';
import '@treeseed/ui/styles/app-controls.css';
import '@treeseed/ui/styles/auth.css';
import '@treeseed/ui/styles/operations.css';
import '@treeseed/ui/styles/market.css';
import '@treeseed/ui/styles/commerce.css';
import '@treeseed/ui/styles/governance.css';

Admin contributes these styles through @treeseed/admin/plugin when a host app installs the admin portal.

Use Astro Components

---
import AppLayout from '@treeseed/ui/components/astro/layouts/AppLayout.astro';
import Button from '@treeseed/ui/components/astro/forms/Button.astro';
import Panel from '@treeseed/ui/components/astro/surface/Panel.astro';
import SurfaceTabs from '@treeseed/ui/components/astro/shell/SurfaceTabs.astro';
---

<AppLayout title="Operations">
  <Fragment slot="tabs">
    <SurfaceTabs label="Project controls" current="overview" items={[{ id: 'overview', label: 'Overview', href: '/app/projects/1' }]} />
  </Fragment>
  <Panel title="Deployments">
    <Button type="submit">Deploy</Button>
  </Panel>
</AppLayout>

Import from package exports such as @treeseed/ui/components/astro/.... Do not import from packages/ui/src.

Shells And Registry

Current shell work should compose these exported primitives:

  • ShellFrame, ShellHeader, SiteUserControls, TeamOperationsPanel, TeamOperationsDrawer, and ControlSurface for authenticated app and operational market shells.
  • AuthShell for authentication flows.
  • PublicSingleColumnShell, PublicStack, PublicSection, PublicHeroSection, PublicProfileHeader, and PublicKnowledgeSection for public marketing, profile, book, and Knowledge Hub pages.
  • SurfaceTabs for link tabs and accessible in-page tab panels inside a ControlSurface tab slot.

ProductShell, PublicShell, RailNav, and BottomNav remain exported as compatibility/deprecated surfaces for one migration cycle. New host pages should use Admin/Core/Market layout wrappers that compose the current shell primitives.

Every exported Astro component must appear in the sandbox registry at sandbox/src/lib/component-catalog.ts. Shells and layout-level components need representative full-page previews; deprecated compatibility entries must be labeled as deprecated.

Use React Components

React components are available through documented React exports such as:

import { MarkdownEditor } from '@treeseed/ui/react';

Use React widgets for interactive controls that need client-side state. Keep route data loading, auth policy, and workflow orchestration in admin, market, API, SDK, or CLI code.

Theme And Tokens

The package owns reusable tokens, theme CSS, app shell styles, form styles, operation styles, market/card styles, and Stripe-free commerce/governance components. Tenant-specific brand colors, public marketing art direction, copy, data loading, and workflow orchestration belong in the host app or Admin/API packages.

Sandbox

Run the component sandbox while developing UI primitives:

npm install
npm run dev

Run package verification before publishing:

npm run verify:local

What UI Does Not Own

  • routes or page ownership
  • auth/session policy
  • backend API behavior
  • hosting or reconciliation
  • package workflow orchestration
  • admin view models
  • marketplace business policy
  • Stripe.js, Stripe Elements, checkout confirmation, backend API behavior, webhooks, billing, subscriptions, coupons, or licensing
  • payout, commission, application-fee, revenue-split, capacity billing, provider execution, grant, reservation, or routing logic
  • capacity-provider runtime
  • capacity allocation policy, assignment selection, mode-run persistence, or capacity ledger behavior
  • TreeDX repository service behavior

Admin, market, and core should compose UI primitives instead of recreating layout-down controls locally.

See the root Package Ownership guide for cross-package boundaries.