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

@chirag127/astro

v0.2.0

Published

Astro integration + components for @chirag127 design system. Thin wrappers that inject tokens, theme, and atoms into any Astro project.

Readme

@chirag127/astro

Astro integration + typed .astro components for the @chirag127 design system.

Install

npm i @chirag127/astro @chirag127/atoms @chirag127/theme @chirag127/tokens

Integration (auto-inject tokens + atoms)

// astro.config.mjs
import { defineConfig } from 'astro/config'
import oz from '@chirag127/astro'

export default defineConfig({
  integrations: [oz({ identity: 'editorial' })]
})

Options: identity'editorial' | 'marketing' | 'dashboard' | 'docs' (default 'editorial').

Components

Import .astro components directly:

---
import OzButton from '@chirag127/astro/components/OzButton.astro'
import OzCard   from '@chirag127/astro/components/OzCard.astro'
import OzChip   from '@chirag127/astro/components/OzChip.astro'
import OzBadge  from '@chirag127/astro/components/OzBadge.astro'
import OzProse  from '@chirag127/astro/components/OzProse.astro'
import OzField  from '@chirag127/astro/components/OzField.astro'
---

<OzButton variant="primary" href="/signup">Get started</OzButton>

<OzCard hoverable>
  <h3>Deploy to the edge</h3>
</OzCard>

<OzChip tone="accent">#astro</OzChip>
<OzBadge tone="success">12</OzBadge>

<OzProse>
  <p>Long-form content.</p>
</OzProse>

Manual (no integration)

---
// In your layout
import '@chirag127/tokens/primitives.css'
import '@chirag127/tokens/editorial.css'
import '@chirag127/atoms/styles.css'
---
<script>
  import '@chirag127/atoms'
  import '@chirag127/theme/theme.js'
</script>

Themes

Change identity in astro.config.mjs:

oz({ identity: 'marketing' })  // bold SaaS
oz({ identity: 'dashboard' })  // data-dense app
oz({ identity: 'docs' })       // documentation

Theme distinctly per site

Tokens are a CONTRACT: every atom + your own CSS reads --oz-* CSS vars. This package ships NO fixed brand look. Pick a base identity, then override the --oz-* vars in your own layout so each site is visually distinct:

---
import '@chirag127/tokens/primitives.css'
import '@chirag127/tokens/editorial.css'
---
<style is:global>
  :root {
    --oz-color-accent: #7c3aed;   /* this site's signature */
    --oz-font-display: 'Fraunces', serif;
    --oz-radius-lg: 1.25rem;
  }
</style>

Same atoms, different site — never the same look twice.

Framework-agnostic core

The Astro layer is a thin adapter. The tokens, theme, and atoms it injects are framework-agnostic and work anywhere:

  • Next.js / React — use @chirag127/react wrappers, or import @chirag127/atoms + a token CSS file directly.
  • Vue / Svelte / SolidJS — import @chirag127/atoms (custom elements) + @chirag127/tokens/<identity>.css; the <oz-*> elements render natively.
  • Plain HTML — link the token CSS + @chirag127/atoms/styles.css, add <script type="module">import '@chirag127/atoms'</script>, then use <oz-button> etc.

Only the auto-inject integration is Astro-specific; the visual contract is portable.