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

@fasl-work/caos-app-shell

v0.5.0

Published

Shared web-app shell + content primitives + design system for the CAOS / Faena public apps (ADR-0016).

Downloads

341

Readme

@fasl-work/caos-app-shell

License Version

The shared web-app shell + content primitives + design system for the CAOS / Faena public apps (implements ADR-0016). Define the header, footer, theme, language toggle and content primitives once here; every app consumes them so the chrome is identical and a fix lands in one place.

Install

npm i @fasl-work/caos-app-shell
# peer deps (the app provides them):
npm i react react-dom react-router-dom lucide-react katex zustand

Use

// main.tsx
import { applyTheme, readTheme } from "@fasl-work/caos-app-shell";
import "@fasl-work/caos-app-shell/styles.css";
applyTheme(readTheme()); // (an inline script in index.html should also set data-theme pre-paint)

// router / app
import { BrowserRouter, Routes, Route } from "react-router-dom";
import { AppShell, type ShellConfig } from "@fasl-work/caos-app-shell";

const config: ShellConfig = {
  product: { name: "RotorVitals" },
  routes: [
    { path: "/", en: "App", es: "App" },
    { path: "/introduction", en: "Introduction", es: "Introducción" },
    { path: "/methodology", en: "Methodology", es: "Metodología" },
    { path: "/implementation", en: "Implementation", es: "Implementación" },
    { path: "/experiments", en: "Experiments", es: "Experimentos" },
  ],
  links: { github: "https://github.com/fsantibanezleal/CAOS_RotorVitals" }, // personal/portfolio default in
  version: "0.01.000",
};

<BrowserRouter>
  <AppShell config={config}>
    <Routes>{/* /  = the tool (landing); the rest are deep pages */}</Routes>
  </AppShell>
</BrowserRouter>
  • Land on the tool: make / your interactive tool; Introduction/Methodology/etc. are separate routes.
  • Hub case (Faena): pass routes: [] (or one) → the nav is hidden, header/footer identical.
  • Deep pages: compose with Tabs, SubTabs, Equation/InlineMath, Callout, Figure, and CitationsProvider + Cite/Refs/ReferenceList. Read the current language with useShellLang().
  • Case + source picking: use CaseSelector for the interactive tool's source/case selection (labelled groups, Synthetic | Real | Uploaded source control, locked-knobs explanation, divergence badge, ?case= deep-linking).
  • Animated views: drive every canvas/3D loop through usePausedViz (default paused, run-once, halt on a hidden tab) — never call requestAnimationFrame directly.

Exports

AppShell, WorkbenchShell, ThemeToggle, LanguageToggle, useThemeStore, applyTheme, readTheme, useLangStore, useShellLang, usePausedViz, createVizLoop, CaseSelector (+ caseModel helpers), Tabs, SubTabs, Callout, Equation, InlineMath, Figure, CitationsProvider, Cite, Refs, ReferenceList, plus the @fasl-work/caos-app-shell/styles.css design system.

Authenticated workbenches

WorkbenchShell is the shared frame for products whose authenticated UI needs a desktop sidebar and mobile bottom navigation. It renders typed routes and the main landmark while the product supplies its own stateful controls through brand, sidebarFooter, headerLead, headerActions, and overlays. Authentication, account policy, preference persistence, chat, and modal content remain product-owned. The component uses the stable core NavLink contract and supports react-router 6, 7, and 8. Browser applications on 6/7 install the matching react-router-dom, which supplies the core peer; Router 8 applications provide react-router directly. Do not mix different core and DOM majors in one application.

MIT · part of the Faena mining-analytics hub.