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

@blazefw/web

v0.1.1

Published

BlazeFW web renderer — maps Stack, Text, Action, and Input primitives to React components with inline styles and CSS custom property theming, zero Tailwind dependency

Downloads

168

Readme

@blazefw/web

BlazeFW web renderer — maps the four semantic primitives (Stack, Text, Action, Input) to React components with inline styles and CSS custom property theming. No Tailwind, no CSS-in-JS runtime, no configuration required.

Installation

npm install @blazefw/web @blazefw/primitives
# peer dependency
npm install react

Quick start

import { Stack, Text, Action, Input } from '@blazefw/web';
import { injectTheme } from '@blazefw/web';

// Inject CSS custom properties at your app root (once)
injectTheme();

function LoginForm() {
  return (
    <Stack direction="column" gap={4} padding={6} background="surface" radius="md">
      <Text variant="title">Sign in</Text>
      <Input
        type="email"
        fieldLabel="Email"
        placeholder="[email protected]"
        onChange={setEmail}
      />
      <Input
        type="password"
        fieldLabel="Password"
        onChange={setPassword}
      />
      <Action variant="primary" fullWidth onPress={handleSubmit} loading={isSubmitting}>
        Sign in
      </Action>
      <Action variant="link" href="/forgot-password">
        Forgot password?
      </Action>
    </Stack>
  );
}

Components

<Stack> — Flexbox layout

<Stack
  direction="row"           // 'row' | 'column' | 'row-reverse' | 'column-reverse'
  align="center"            // cross-axis: 'start' | 'center' | 'end' | 'stretch' | 'baseline'
  justify="between"         // main-axis: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly'
  gap={4}                   // space between children (4 = 16px)
  padding={6}               // inner padding (also paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight)
  background="surface"      // ColorToken or raw hex/rgb
  radius="md"               // 'none' | 'sm' | 'md' | 'lg' | 'full'
  wrap                      // enable flex-wrap
  flex={1}                  // flex-grow
  as="section"              // override HTML element (default: 'div')
>
  {children}
</Stack>

<Text> — Typography

<Text
  variant="heading"   // 'body' | 'caption' | 'label' | 'heading' | 'title' | 'display' | 'code' | 'overline'
  as="h1"             // override HTML element
  weight="bold"       // 'thin' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold'
  color="primary"     // ColorToken or raw color
  align="center"      // 'left' | 'center' | 'right'
  maxLines={2}        // clamp to N lines with ellipsis
  underline
>
  Welcome to BlazeFW
</Text>

Variant defaults:

| Variant | Default tag | Size | |---|---|---| | body | <p> | 16px | | caption | <span> | 12px | | label | <span> | 14px | | heading | <h2> | 24px | | title | <h1> | 20px | | display | <h1> | 36px | | code | <code> | 14px monospace | | overline | <span> | 12px uppercase |

<Action> — Buttons and links

// Button
<Action variant="primary" size="md" onPress={handleClick} loading={isPending}>
  Submit
</Action>

// Link
<Action variant="link" href="https://blazefw.dev" external>
  Learn more →
</Action>

// Danger
<Action variant="danger" onPress={handleDelete} disabled={!canDelete}>
  Delete account
</Action>

Variants: primary · secondary · ghost · danger · link Sizes: xs · sm · md · lg

<Input> — Form fields

<Input
  type="email"                      // 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'search'
  variant="outline"                 // 'outline' | 'filled' | 'underline'
  fieldLabel="Email address"
  placeholder="[email protected]"
  hint="We'll never share your email."
  error={errors.email}              // shows red error state + message
  leadingIcon="✉"
  trailingIcon="✓"
  required
  onChange={(value) => setEmail(value)}
  onSubmit={(value) => handleSubmit(value)}
/>

// Multiline textarea
<Input
  type="text"
  multiline
  rows={4}
  fieldLabel="Bio"
  onChange={setBio}
/>

Theming

Colors use CSS custom properties. Override any token on :root:

:root {
  --blazefw-primary: #6366f1;
  --blazefw-primary-fg: #ffffff;
  --blazefw-surface: #1e1e2e;
  --blazefw-background: #13131a;
  --blazefw-border: #2e2e3e;
  --blazefw-danger: #ef4444;
  --blazefw-success: #22c55e;
  --blazefw-muted: #3f3f50;
  --blazefw-muted-fg: #a0a0b0;
}

Or use injectTheme(customTokens?) to set tokens programmatically:

import { injectTheme } from '@blazefw/web';

injectTheme({
  primary: '#6366f1',
  surface: '#1e1e2e',
});

Spacing scale

All SpaceValue integers map to n × 4px:

| Token | px | |---|---| | 1 | 4px | | 2 | 8px | | 3 | 12px | | 4 | 16px | | 6 | 24px | | 8 | 32px | | 12 | 48px | | 16 | 64px |