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

@echothink-ui/layout

v0.2.0

Published

Layout-template library for EchoThink UI. Build any frontend as **layout template + pages of components**, with the _look_ selected by a style preset.

Readme

@echothink-ui/layout

Layout-template library for EchoThink UI. Build any frontend as layout template + pages of components, with the look selected by a style preset.

Templates and region parts read only the Tier-2 contract tokens (see TOKEN_CONTRACT.md) plus a small set of layout-owned region/breakpoint tokens. Switching the preset restyles every template without touching its markup.

The three orthogonal axes

StyleScope (re-exported here) applies all three to a subtree:

| Axis | Prop | Values | Drives | | ------------- | ----------- | --------------------------------------------- | --------------------------------------------------------- | | preset | preset | ethStylePresets (e.g. carbon, glass, …) | colors, surfaces, borders, radius, shadows, glass effects | | density | density | compact | standard | comfortable | the --eth-space-* spacing scale | | typeScale | typeScale | compact | standard | large | the --eth-text-scale typography multiplier |

import { StyleScope, AppShell, PageHeader } from "@echothink-ui/layout";
import "@echothink-ui/layout/styles.css";

<StyleScope preset="glass" density="comfortable" typeScale="large">
  <AppShell topbar={<TopBar />} nav={<Nav />} footer={<Footer />}>
    <PageHeader title="Overview" description="…" />
    {/* pages of components */}
  </AppShell>
</StyleScope>;

Templates

| Component | Slots / props | Use | | ------------------ | ---------------------------------------------------------- | -------------------------------------------------------- | | AppShell | topbar, nav, aside, footer, children, navWidth | default product frame; nav collapses under --eth-bp-lg | | DashboardLayout | children, minColumn | responsive auto-fit grid of regions | | ListDetailLayout | list, detail, listWidth, detailEmpty | master-detail; stacks under --eth-bp-md | | SplitPaneLayout | primary, secondary, ratio, orientation | editors, tools | | SettingsLayout | nav, children, navWidth | two-pane settings | | CenteredLayout | children, maxWidth | auth / empty / error | | CanvasLayout | stage, panels, toolbar | full-bleed canvas + floating panels |

Region parts

PageHeader (title, description, actions, breadcrumbs), Toolbar (start, end, children), Breadcrumbs (items: {label, href?}[]).

Breakpoint contract

--eth-bp-sm 36rem · --eth-bp-md 48rem · --eth-bp-lg 64rem · --eth-bp-xl 80rem. Exposed to JS as ethBreakpoints (CSS media queries can't read custom properties, so the literal rem values are mirrored in the stylesheet).

Region tokens

Layout owns these chrome tokens; they default to contract tokens so a preset still drives them, but they can be themed independently: --eth-region-topbar-bg, --eth-region-topbar-color, --eth-region-sidebar-bg, --eth-region-canvas-bg.

Preview utilities

StylePresetPicker, StylePresetLayout, ComponentPreviewLayout are docs/preview helpers. StylePresetLayout and ComponentPreviewLayout accept density and typeScale and forward them to StyleScope.

Page Template Preview

Run the layout preview from the pnpm workspace root /Users/wangqihang/wkspace/echothink-UI/echothink-UI-components, which includes ../echothink-UI-layout:

pnpm --filter @echothink-ui/layout dev:preview

Or run it from anywhere with:

pnpm --dir /Users/wangqihang/wkspace/echothink-UI/echothink-UI-components --filter @echothink-ui/layout dev:preview

Then open the printed local URL, for example http://127.0.0.1:5174/. The preview reads pageTemplateCatalog and lets you browse every registered template. You can link directly to one template with a hash, for example:

http://127.0.0.1:5174/#glass-flowchart

Current generated preview screenshots live in snapshots/.