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

@jlogan839-forge/forge-ui

v1.0.0

Published

Open source UI kit for any backend — accessible by default, free forever

Readme

Forge UI

Open source UI kit for any backend — accessible by default, free forever.

Professional-grade UI components that drop into Django, Rails, Laravel, Spring, or plain HTML with two files and a script tag. No build step. No framework dependency. No invoice.

License: MIT WCAG 2.1 AA Version


Why Forge

Small businesses and independent developers deserve the same quality UI as Fortune 500 companies. Enterprise software vendors charge hundreds of thousands of dollars a year for components that are slow, inaccessible, and ugly. Forge is the alternative — MIT licensed, built in public, free forever.

  • Zero dependencies — two files, one script tag, works anywhere
  • WCAG 2.1 AA — accessibility baked into every component, not bolted on
  • Any backend — Django, Rails, Laravel, Spring, ASP.NET, plain HTML
  • Token-based theming — override one CSS variable to re-brand everything
  • Dark mode — automatic, no JavaScript required
  • MIT licensed — use it commercially, white-label it, modify everything

Quick start

Via npm

```bash npm install @jlogan839-forge/forge-ui ```

Via CDN / direct download

```html

Download the latest release →


Components

Buttons

<button class="ui-btn ui-btn-primary">Primary</button>
<button class="ui-btn ui-btn-accent">Accent</button>
<button class="ui-btn ui-btn-ghost">Ghost</button>
<button class="ui-btn ui-btn-danger">Danger</button>
<button class="ui-btn ui-btn-sm">Small</button>
<button class="ui-btn ui-btn-lg">Large</button>
<button class="ui-btn ui-btn-icon" aria-label="Search">...</button>

Inputs

<div class="ui-field">
  <label class="ui-label" for="email">
    Email <span class="required" aria-hidden="true">*</span>
  </label>
  <input class="ui-input" id="email" type="email"
         required aria-required="true">
  <span class="ui-helper">We'll never share your email</span>
</div>

Select

<div class="ui-select-wrap">
  <select class="ui-select">
    <option>Select a role...</option>
    <option>Admin</option>
    <option>Editor</option>
  </select>
  <svg class="ui-select-arrow" ...></svg>
</div>

Toggle

<div class="ui-toggle-wrap" role="switch" aria-checked="false"
     tabindex="0" aria-label="Email notifications">
  <div class="ui-toggle-track"><div class="ui-toggle-knob"></div></div>
  <span>Email notifications</span>
</div>

Badge

<span class="ui-badge ui-badge-success">Active</span>
<span class="ui-badge ui-badge-warn">Pending</span>
<span class="ui-badge ui-badge-danger">Error</span>

Alert

<div class="ui-alert ui-alert-success" role="status" aria-live="polite">
  <span class="ui-alert-icon" aria-hidden="true">✓</span>
  <div class="ui-alert-body">
    <div class="ui-alert-title">Saved</div>
    <div class="ui-alert-desc">Your changes have been published.</div>
  </div>
  <button class="ui-alert-close" aria-label="Dismiss">✕</button>
</div>

Card

<article class="ui-card" aria-labelledby="card-title">
  <div class="ui-card-header">
    <div class="ui-card-title" id="card-title">Project name</div>
    <span class="ui-badge ui-badge-success">Active</span>
  </div>
  <div class="ui-card-body">Content here.</div>
  <div class="ui-card-footer">
    <button class="ui-btn ui-btn-sm ui-btn-ghost">View</button>
    <button class="ui-btn ui-btn-sm ui-btn-primary">Edit</button>
  </div>
</article>

Modal

<!-- Trigger -->
<button class="ui-btn" data-ui-open="#my-modal">Open</button>

<!-- Modal -->
<div class="ui-modal-backdrop" id="my-modal"
     role="dialog" aria-modal="true" aria-labelledby="modal-title">
  <div class="ui-modal">
    <div class="ui-modal-header">
      <div class="ui-modal-title" id="modal-title">Title</div>
      <button class="ui-modal-close" data-ui-close aria-label="Close">✕</button>
    </div>
    <div class="ui-modal-body">Content here.</div>
    <div class="ui-modal-footer">
      <button class="ui-btn ui-btn-ghost" data-ui-close>Cancel</button>
      <button class="ui-btn ui-btn-primary">Confirm</button>
    </div>
  </div>
</div>

Surface utilities

Apply to any section to guarantee accessible contrast for all child elements automatically. No manual color overrides needed.

<section class="forge-surface-dark">
  <!-- All text, borders, buttons flip to light-on-dark automatically -->
</section>

<section class="forge-surface-light">
  <!-- Warm off-white background, dark text -->
</section>

<section class="forge-surface-accent">
  <!-- Forge red background, off-white text -->
</section>

Available surfaces: forge-surface-dark, forge-surface-charcoal, forge-surface-light, forge-surface-white, forge-surface-accent


Theming

All values are CSS custom properties. Override on :root or any parent element to re-brand without touching component code.

:root {
  /* Swap the accent color */
  --forge-red:   #0066cc;
  --forge-ember: #0080ff;
  --forge-tint:  #e6f0ff;
  --forge-deep:  #003d7a;

  /* Swap the neutral scale */
  --forge-black:    #0f0f0f;
  --forge-offwhite: #f8f8f8;

  /* Swap the fonts */
  --forge-font-display: "Your Display Font", serif;
  --forge-font-body:    "Your Body Font", sans-serif;
}

JavaScript API

// Re-initialize after dynamic DOM changes
UIKit.init();

// Button loading states
UIKit.Button.startLoading(btn, 'Saving…');
UIKit.Button.stopLoading(btn);

// Input validation
UIKit.Input.setError(input, 'Enter a valid email address');
UIKit.Input.clearError(input);

// Character counter
UIKit.Input.charCounter(textareaEl, counterEl, 500);

// Password visibility toggle
UIKit.Input.togglePassword(inputEl, toggleBtnEl);

// Toggle switch
UIKit.Toggle.toggle(wrapEl);
UIKit.Toggle.set(wrapEl, true);

// Alerts
UIKit.Alert.show(containerEl, {
  type: 'success',      // 'info' | 'success' | 'warn' | 'danger'
  title: 'Saved',
  desc: 'Changes published.',
  dismissible: true
});

// Modal
UIKit.Modal.open('modal-id');
UIKit.Modal.close('modal-id');

Declarative HTML attributes

Wire behaviors without writing JavaScript:

<!-- Open a modal -->
<button data-ui-open="#my-modal">Open</button>

<!-- Close from inside a modal -->
<button data-ui-close>Cancel</button>

<!-- Character counter -->
<textarea data-ui-counter="#counter" data-ui-max="500"></textarea>
<span id="counter"></span>

<!-- Password toggle -->
<input id="pw" type="password" data-ui-toggle-pass="#pw">
<button data-ui-toggle-pass="#pw">Show</button>

Accessibility

Every component is built accessibility-first, not accessibility-patched.

| Feature | Implementation | |---|---| | WCAG 2.1 AA contrast | CSS variables calibrated for 4.5:1 minimum ratio | | Keyboard navigation | Tab, Shift+Tab, Enter, Space, Escape wired on all components | | Focus management | Modals trap focus and return it on close | | ARIA | role, aria-modal, aria-live, aria-busy, aria-required, aria-invalid | | Semantic HTML | <button>, <label>, <fieldset>, <legend> — no div soup | | Visible focus rings | :focus-visible rings, never suppressed without replacement | | Reduced motion | All animations wrapped in prefers-reduced-motion: reduce | | Live regions | Alerts announced via aria-live, errors via role="alert" |


Roadmap

Forge is built in layers. The Core Kit is the foundation — domain modules build on top of it using the same tokens and patterns.

| Module | Status | Covers | |---|---|---| | Core UI Kit | ✅ Available | Buttons, inputs, cards, modals, badges, alerts | | SCM | ✅ Available | Purchase orders, supplier cards, shipment tracking | | Finance | 🔜 Coming soon | Invoices, approval workflows, budget dashboards | | CRM | 🔜 Coming soon | Contact cards, pipeline boards, activity timelines | | HR | 📋 Planned | Employee profiles, org charts, leave requests | | Projects | 📋 Planned | Gantt views, milestones, resource allocation | | Analytics | 📋 Planned | KPI dashboards, chart wrappers, data tables |

Want to build a module? Open a discussion →


SCM Module — available now

Live demo →

Purchase orders, supplier cards, shipment tracking, inventory tables, and approval flows. Free, MIT licensed, works with any backend.

```html

Or via npm: ```bash npm install @jlogan839-forge/forge-ui ```

Contributing

Forge is built in public. Every component, every fix, every module happens here on GitHub.

  1. Fork the repo
  2. Create a branch: git checkout -b feat/your-component
  3. Make your changes
  4. Open a pull request with a clear description

Please read CONTRIBUTING.md before submitting.

All contributions must:

  • Pass WCAG 2.1 AA contrast requirements
  • Work without JavaScript where possible
  • Include proper ARIA attributes
  • Use existing CSS tokens — no hardcoded hex values in components

License

MIT — use it commercially, white-label it, modify everything.
See LICENSE for the full text.


Links


Built for small businesses. Free forever. No invoice required.