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

@solo-io-public/ui-components

v0.0.6

Published

Open-source React component library for Solo.io projects

Readme

🧩 @solo-io-public/ui-components

Open-source React component library. Vite library mode + TypeScript + Emotion. Published as a public package to the npm registry.

📦 Install

Public on the npm registry — no authentication required:

yarn add @solo-io-public/ui-components

🧩 Setup

Wrap your app once in SoloContextProvider. It wires up the emotion theme — the Figtree web font and the --color-* CSS variables the editor reads — plus editor settings and a react-hot-toast host, so every component works as a drop-in:

import { SoloContextProvider } from "@solo-io-public/ui-components";

createRoot(document.getElementById("root")!).render(
  <SoloContextProvider>
    <App />
  </SoloContextProvider>
);

Opinionated by default, but open to extension. Toggle pieces with features (all default to on) and customize them with the typed config (merged over the defaults and any outer ThemeProvider):

<SoloContextProvider
  features={{ toaster: false }}                // turn pieces off (e.g. you render your own Toaster)
  config={{
    theme: { colors: { primary: "#8023c3" } }, // SoloThemeOverride
    toaster: { position: "bottom-right" },      // react-hot-toast ToasterProps (when enabled)
  }}
>
  <App />
</SoloContextProvider>

features flags: theme (emotion ThemeProvider + CSS vars) and toaster (react-hot-toast). Editor settings are always provided.

🎨 Use

import { Button } from "@solo-io-public/ui-components";

<Button color="purple" onClick={() => alert("hi")}>
  Click me
</Button>;

Styles are exported from @solo-io-public/ui-components/styles. See ./src/styles.ts for the exported style objects.

🖋️ Monaco editor

MonacoEditorWithSettings wraps @monaco-editor/react with a settings menu (copy, download, vim mode, word wrap). Editor settings and the copy/download toasts are supplied by SoloContextProvider (see Setup), so the editor drops straight in:

import { useState } from "react";
import { MonacoEditorWithSettings } from "@solo-io-public/ui-components";

// Inside an app already wrapped in <SoloContextProvider>:
export const Example = () => {
  const [code, setCode] = useState('{\n  "hello": "world"\n}');
  return (
    <div style={{ height: 400 }}>
      <MonacoEditorWithSettings
        value={code}
        onChange={(v) => setCode(v ?? "")}
        language="json"
        theme="dark"
      />
    </div>
  );
};

Editor peer dependencies (only if you use it)

These are optional peers — install them only when you use MonacoEditorWithSettings:

yarn add @monaco-editor/react monaco-editor monaco-vim antd lucide-react
  • @monaco-editor/react + monaco-editor — the editor itself
  • monaco-vim — vim keybindings (toggle from the settings menu)
  • antd — the settings dropdown menu
  • lucide-react — the settings (gear) icon

(react-hot-toast is a regular dependency provided by SoloContextProvider — nothing to install.)

Theming

The editor chrome reads CSS custom properties. SoloContextProvider sets these from its theme (override via config.theme), and they fall back to dark defaults otherwise: --color-bg-elevated, --color-border-base, --color-bg-hover, --color-primary, --color-text-secondary.

📐 Layout primitives

Spacer (margin / padding / sizing) and FlexLayout (flexbox) are emotion styled divs for quick layout without one-off styled components:

import { FlexLayout, Spacer } from "@solo-io-public/ui-components";

<FlexLayout horizontal vertical gap={3}>
  <Spacer px="16px">Left</Spacer>
  <Spacer px="16px">Right</Spacer>
</FlexLayout>;

FlexLayout shorthands: horizontal/vertical (centering), column/row, gap (a number is a 0.25em scale step), justifyContent, alignItems, etc. FlexLayoutSpacer drops a flex-grow: 1 filler between items.

Text is a typography primitive (built on Spacer) — size, weight, truncate, etc. Its default color is the theme's --color-text-primary, so it follows the active light/dark mode unless you pass color.

🤝 Peer dependencies

  • ⚛️ react, react-dom ≥ 18
  • 💅 @emotion/react, @emotion/styled ^11
  • 🖋️ Editor extras — optional, only for MonacoEditorWithSettings (see Monaco editor)

🧪 Develop

yarn storybook        # 📚 :6006
yarn test             # ✅ vitest
yarn build            # 📦 → dist/

➕ Add a component

  1. src/components/<Name>/<Name>.tsx (+ .style.ts, .test.tsx, .stories.tsx)
  2. Re-export from src/components/<Name>/index.ts
  3. Add export * from './components/<Name>'; to src/index.ts

🚢 Publishing

From the repo root:

yarn patch-release

See Publishing in the root README for the release flow, or docs/initial-publish for the one-time setup.

📄 License

Apache-2.0