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

vanilla-core-ui

v1.3.9

Published

AI Agent Skill & CLI for Vanilla-Core Architecture - SSoT state management, Pub/Sub UI updates, surgical DOM updates, Material Design 3 / Material You tokens, and zero-dependency modular Vanilla JS web applications.

Readme

🏛️ Vanilla-Core Architect (vanilla-core-ui)

npm version license GitHub stars AI Agent Compatible

Vanilla-Core Architect is an AI Agent Skill & CLI designed to equip AI coding assistants—including Google Antigravity, Claude, Cursor, and Gemini—with a strict, hardened pattern for building, scaling, and maintaining high-performance, zero-framework web applications.


💡 Why Vanilla-Core?

Modern web development often introduces heavy framework runtimes, virtual DOM overhead, and complex build pipelines. Vanilla-Core Architecture provides a lightweight, bulletproof alternative: a modular Vanilla JavaScript pattern built around a Single Source of Truth (SSoT) store, unidirectional Pub/Sub state flow, and surgical DOM updates.

🌟 Key Capabilities & Architectural Dogmas

Every application built or managed by vanilla-core-ui strictly adheres to 7 foundational principles:

  1. 🧠 Single Source of Truth (SSoT)
    The application's entire dynamic state lives inside a central store.js module. The user interface is always a pure, direct reflection of this state.

  2. 🔒 Read-Only State for Components
    Modules outside of store.js cannot mutate the state object directly. State modifications occur exclusively via exported setState() calls.

  3. 📢 Unidirectional Data Flow (Pub/Sub)
    User interactions within components publish state changes via setState(). The store then notifies all subscribed renderers to update specific UI regions, keeping components completely decoupled from one another.

  4. 🏗️ Strict Separation of Concerns (SoC)
    Code is strictly partitioned by responsibility. UI components reside in dedicated folders (components/header/, components/sidebar/), each encapsulating markup (.html), styles (.css), and logic (.js).

  5. 🎨 Utility-First Styling & Layout Stability
    TailwindCSS utilities style elements directly. Collapsible sidebars and panels animate width or flex-basis with flex-shrink: 0 and overflow: hidden to guarantee zero ghost layout shifts.

  6. 🛡️ Surgical Rendering & Anti-Thrashing (Focus Guard)
    Renderers employ surgical DOM updates and Focus Guards (document.activeElement !== input) so active user typing is never interrupted, blown away, or blurred by re-renders.

  7. 📐 Geometric Consistency
    For Canvas/SVG and interactive diagram apps, visual rendering routines and hit-testing click algorithms share exact mathematical functions exported from utils/geometry.js.


🎨 Design Modes & AI Commands

Vanilla-Core supports two built-in development modes:

1. Standard Mode (/vanilla-core-ui)

TailwindCSS + Semantic HTML5 + Vanilla JS Pub/Sub architecture.

2. Material You / Material Design 3 Mode (/vanilla-core-ui material)

Integrates the complete Material Web Components (M3) and the Material You Design System Architecture directly into Vanilla-Core.

  • 100% Offline Vendored: Includes offline bundled JavaScript and Material Symbols Outlined font files inside skills/vanilla-core-ui/vendor/material-web/ for complete offline independence.
  • 10 Semantic Color Schemes (5 Tonal Families):
    1. 🌿 Verdes y Oliva: Forest Sage (#426B29), Olive Slate (#5A641F)
    2. 🔴 Rojos y Terracota: Crimson Quartz (#BB1834), Terracotta Dusk (#A24244)
    3. 💜 Púrpuras y Violetas: Lavender Breeze (#6750A4), Orchid Velvet (#8E4A8D)
    4. 🌊 Azules y Turquesas: Oceanic Slate (#2B638B), Aqua Frost (#006874)
    5. 🍯 Orgánicos y Ámbar: Golden Amber (#7A5900), Desert Bloom (#85511A)
  • 3 Master Orchestration Rules: Strict surface elevation hierarchy, mandatory "On-" token pairing, and selection states (Primary Container + On Primary Container).
  • Flat Depth Architecture: Zero projected box-shadow on regular cards. Elevation is driven purely by surface tonal luminance.
  • WCAG AAA High-Contrast Contract: Certified minimum 7:1 contrast ratio on all badges, pills, and interactive states (.m3-badge-success, .m3-badge-error, .m3-badge-warning).
  • Adaptive Breakpoints & Layouts:
    • Desktop (≥ 840dp): Desktop 3-Pane Layout (Drawer 240px + Feed/List 360px + Detail flex-1).
    • Mobile (< 600dp): Single Pane drill-down pattern with back button, Bottom Navigation Bar (80px), and autonomous floating circular FAB.
  • Documentation References:

📦 Installation & Quick Start

You can install this skill into your local project workspace or globally across your machine using npx:

1. Workspace Installation (Recommended)

Run this inside your project root directory:

npx vanilla-core-ui

This installs the skill into .agents/skills/vanilla-core-ui/ where AI agents (like Antigravity) automatically discover and activate it.

2. Global Installation

Install the skill globally across all AI workspace sessions on your computer:

npx vanilla-core-ui --global

This copies the skill to ~/.gemini/config/skills/vanilla-core-ui/.

3. Native CLI Truecolor Palette Visualizer (24-bit ANSI)

Preview all 10 Material Design 3 semantic color schemes directly in your terminal (macOS, Linux, Windows Terminal):

# View summary table of all 10 schemes
npx vanilla-core-ui --palettes

# Inspect a specific scheme with Light / Dark Mode and 3 Surface Modes
npx vanilla-core-ui --palettes forest-sage
npx vanilla-core-ui --palettes oceanic-slate

4. Check CLI Options

npx vanilla-core-ui --help

📂 Standard Directory Blueprint

Applications architected by this skill follow a modular, scalable project layout:

my-vanilla-app/
├── components/                  # Encapsulated, reusable UI components
│   ├── header/
│   │   ├── header.html          # HTML structure
│   │   ├── header.css           # Component-specific styles
│   │   └── header.js            # Logic & event bindings
│   └── sidebar/
│       ├── sidebar.html
│       ├── sidebar.css
│       └── sidebar.js
├── ui/                          # Global renderers & DOM surgical update logic
│   ├── header-renderer.js
│   └── sidebar-renderer.js
├── services/                    # API clients, local storage, auth
├── utils/                       # Pure helper functions & shared geometry
│   └── geometry.js              # Shared math for canvas/SVG calculation
├── dom-elements.js              # Central mapping of app DOM containers
├── index.html                   # App Shell container
├── load.js                      # Async component loader & bootstrapper
├── main.js                      # Application entry point & Pub/Sub wiring
├── server.js                    # Zero-dependency HTTP development server
├── store.js                     # SSoT State Store & Pub/Sub engine
├── style.css                    # Global styles & Tailwind entry point
├── changelog.md                 # Prepend-only history of changes
└── package.json

🤖 How AI Agents Execute This Skill

When an AI pair programmer receives a prompt to create or modify a Vanilla-Core application, vanilla-core-ui enforces strict execution rules:

  • Executable Bash Scripts: Outputs self-contained Bash scripts using cat << 'EOF' to generate or modify project files in a single turn.
  • Complete Code Preservation: Replaces target files with complete, production-ready code. Never uses // ... rest of code placeholders that cause lost functionality.
  • Changelog Tracking: Automatically prepends change summaries to changelog.md.
  • Standardized Commit Messages: Appends clear, semantic git commit messages to every code modification.

⚡ Development & Testing

Run the built-in zero-dependency development server:

npm run dev
# 🚀 Vanilla-Core server running at http://localhost:3000

Run CLI installer tests:

npm test

📄 License & Author