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

@safelagoon/ui

v0.3.0

Published

Safe Lagoon React component library — shadcn-based, brandbook-skinned

Readme

@safelagoon/ui

React 19 component library for Safe Lagoon portals — shadcn/Radix primitives restyled to the Figma brandbook.

Docs: ui.safelagoon.com · Registry: shadcn install

Install

npm install @safelagoon/ui
# or
pnpm add @safelagoon/ui

Peer dependencies: React 19+, Tailwind CSS v4+.

Optional fonts (recommended):

pnpm add @fontsource-variable/ibm-plex-sans @fontsource/ibm-plex-serif

Quick start

1. Import styles in your global CSS:

@import "tailwindcss";
@import "@safelagoon/ui/styles.css";

@source "../node_modules/@safelagoon/ui/dist/**/*.{js,ts,tsx}";
@source "./app/**/*.{ts,tsx}";

2. Wrap the app:

import { ThemeProvider, Button } from "@safelagoon/ui";
import "@fontsource-variable/ibm-plex-sans";
import "./globals.css";

export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html lang="en" suppressHydrationWarning>
      <body>
        <ThemeProvider defaultTheme="light" dir="ltr">
          {children}
        </ThemeProvider>
      </body>
    </html>
  );
}

3. Use components:

import { Button, Input, Dialog, DialogContent } from "@safelagoon/ui";

<Button variant="primary">Save</Button>

Primary actions use lilac (variant="primary"), not blue — per brand guidelines.

Subpath exports

| Import | Contents | |--------|----------| | @safelagoon/ui | Brand, primitives, domain components, theme | | @safelagoon/ui/styles.css | Design tokens + base styles | | @safelagoon/ui/icons | Tree-shakeable brand SVG icons | | @safelagoon/ui/blocks | Layouts (AppShellLayout, auth forms, marketing) | | @safelagoon/ui/charts | Recharts wrappers (screen time, usage) | | @safelagoon/ui/map | Google Maps geofence components |

Import /charts and /map only on routes that need them.

shadcn registry

Install individual components into your repo:

npx shadcn@latest add @Safe-Lagoon/ui/button

Registry JSON: https://ui.safelagoon.com/r/{name}.json

Highlights

  • Brand tier — Button, Input, Header, Footer, Card, marketing blocks
  • App shell — AppShellLayout, AppShellPageHeader, sidebar, notifications, AI chat panel
  • Domain — parental-control UI: RuleCard, ScheduleGrid, ProfileCard, LogCard, KpiCard
  • i18n-ready — pass all user-visible copy via props; RTL via ThemeProvider dir
  • Dark mode — .dark on <html> through ThemeProvider

Requirements

  • React 19+, React DOM 19+
  • Tailwind CSS v4+ with @source scanning of node_modules/@safelagoon/ui/dist
  • Next.js App Router or Vite/SPA — mark interactive consumers "use client" where needed

Links

License

MIT © Safe Lagoon Software