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

@alwkala/tidyfactor-design

v1.3.8

Published

Code-native UI design lifecycle engine and anti-slop design system suite (Figma alternative)

Downloads

1,060

Readme

🎨 TidyFactor Design v1.3.8

Code-Native UI Design Lifecycle Engine & Anti-Slop Design System Suite

The official UI design & interactive prototyping foundation for the TidyFactor Ecosystem.

npm version License: MIT RTL Ready Anti-Slop Certified Architect Score

✨ Live Demo🖼️ Visual Showcase⚡ 24 Slash Commands🎨 8 CSS Foundations🛡️ Anti-Slop Rules📖 بالعربية


[!NOTE] TidyFactor Design is an AI-era, code-native alternative to Figma and complete UI Design Lifecycle Engine. It empowers developers, design engineers, and AI coding agents (Google Antigravity, Claude Code, Cursor, Codex, Windsurf) to manage all 7 stages of UI design—from initial discovery through developer handoff—using clean, interactive HTML/CSS/JS with zero build steps and zero per-page CSS/JS drift.


🌟 Value Proposition & Why TidyFactor Design?

| For Developers | For Design Engineers | For AI Coding Agents | |---|---|---| | Zero Build Step: No webpack/vite compilation needed; open .html files directly in any browser. | Figma Alternative: Design directly in production-ready code with responsive live interactivity. | Token-Efficient: Modular slash commands load only necessary context (~350 tokens) per task. | | Zero Per-Page Drift: All visual styles and components live strictly inside design-system/. | 8 Pluggable Foundations: Choose Native CSS, Tailwind, daisyUI, shadcn/ui, Pico, Bootstrap, or Alpine. | Anti-Slop Certified: Structurally blocks generic AI design tells via 16 mechanical quality rules. | | Production Handoff: Clean, predictable CSS variables and HTML markup ready for framework integration. | Native RTL & Arabic: Bidi-first layout support with El Messiri + Tajawal typography pairing. | Deterministic Workflows: 100% compliance across 24 commands with automated validation tooling. |


🖼️ Visual Showcase & Surface Demos

tidyfactor-design generates rich, responsive, anti-slop visual surfaces tailored to specific domain registers:

1. Dual-Mode Design System (Light & Dark)

Dynamic theme switching powered by brand.json v2 token mappings (colors.light & colors.dark) without page reloads.

| Light Mode Surface | Dark Mode Surface | |---|---| | Light Mode Surface | Dark Mode Surface |


2. Application & Analytics Dashboards

Data-rich layouts featuring tabular numeric formatting, KPI stat cards, filters, and shell rails.

Dashboard Surface Output


3. E-Commerce & Product Showcase

High-conversion commerce surfaces with gallery previews, spec tables, variant selectors, and CTAs.

E-Commerce Surface Output


4. Editorial & Magazine Publishing

Literary typography hierarchy featuring Markazi Text / El Messiri headings, multi-column storytelling, and colophons.

Editorial Surface Output


5. Atmospheric & Cinematic Showcase

Full-bleed atmospheric storytelling with ambient background color shifts, canvas scroll-film reveals, and specular sheens.

Cinematic Surface Output


🔄 The 7 UI Design Lifecycle Stages & 24 Command Registry

tidyfactor-design structures the entire design workflow into 7 sequential stages, providing 24 specialized slash commands that load precise operational memory without context bloat:

graph LR
    S1["1. Discovery"] --> S2["2. Foundation"]
    S2 --> S3["3. Architecture"]
    S3 --> S4["4. Components"]
    S4 --> S5["5. Motion"]
    S5 --> S6["6. Quality"]
    S6 --> S7["7. Delivery"]

Stage 1: Discovery & Research

Extract design DNA, establish context, and determine visual fit before writing code.

| Command | Signature Syntax | What It Loads | Output & Value | |---|---|---|---| | /study | /study [url\|image] | memory/01-design-schools.mdmemory/06-quality-bar.md | Design DNA Report: Samples computed styles (getComputedStyle()), font family declarations, and macrostructure without copying raw layout or text. | | /brief | /brief | memory/01-design-schools.mdmemory/13-layout-archetypes.md | Design Context Gate: Executes 3-question context gate (Audience mode: inspire/evaluate/act/learn, Surface type, Tone school) & Fit Test filter. |


Stage 2: Foundation & System Setup

Scaffold identity tokens, brand schema, color systems, typography pairings, and design schools.

| Command | Signature Syntax | What It Loads | Output & Value | |---|---|---|---| | /init | /init [dir] [--foundation=name] | references/workflows/init-prototype.mdreferences/memory/architecture.md | Project Scaffold: Scaffolds clean design-system/ directory, locked CSS foundation, brand.json, and initial index page. | | /brand | /brand | memory/11-brand-json-v2.mdmemory/02-design-tokens.md | Brand Schema v2: Configures dual-mode colors.light/dark (16 tokens each), shadows.focusRing, motion tokens, and accessibility floors. | | /typography | /typography | memory/12-typography-matrix.mdmemory/08-arabic-bilingual.md | Typography Matrix: Routes to 7 curated Arabic + Latin font pairings (e.g. El Messiri/Tajawal, Markazi Text/IBM Plex, Jomhuria display). | | /school | /school [movement] | memory/01-design-schools.md | Visual Movement: Locks design language direction (Minimalist, Brutalism, Glassmorphism, Neumorphism, Swiss, Luxury). | | /tokens | /tokens | memory/02-design-tokens.mdreferences/memory/architecture.md | Token Single Source: Manages design-system/tokens.css custom properties and mapping rules. | | /palette | /palette <image> | memory/02-design-tokens.mdmemory/10-python-tooling.md | Palette Extractor: Runs extract_palette.py to derive dominant brand colors and WCAG 2.1 AA contrast scores. | | /assets | /assets | memory/10-python-tooling.md | Asset Hygiene: Automated background removal (rembg), WebP compression, and image optimization (optimize_images.py). |


Stage 3: Architecture & Layout Structuring

Blueprint page macrostructures, navigation patterns, and surface layouts.

| Command | Signature Syntax | What It Loads | Output & Value | |---|---|---|---| | /layout | /layout [archetype] | memory/13-layout-archetypes.mdreferences/memory/architecture.md | Layout Archetypes: Applies 8 specialized blueprints (fullbleed, editorial, spatial, interface, minimal, product, store, auto). | | /nav-footer | /nav-footer | memory/14-nav-footer-catalog.mdmemory/06-quality-bar.md | Nav & Footer Catalog: Selects Navigation (N1–N9, e.g. Floating Pill, Newspaper Masthead) & Footer (Ft1–Ft8) avoiding generic AI templates. | | /page | /page <name> | references/workflows/init-prototype.mdmemory/05-component-anatomy.md | Marketing Screen: Scaffolds content or landing page markup ONLY (pages/<name>.html) with zero inline CSS/JS. | | /dashboard | /dashboard <name> | references/workflows/init-prototype.mdmemory/05-component-anatomy.md | Application Screen: Scaffolds data dashboard or web app shell with stat cards, data tables, and filters. |


Stage 4: Component Design & State Matrix

Build reusable UI component classes with complete interactive state handling.

| Command | Signature Syntax | What It Loads | Output & Value | |---|---|---|---| | /components | /components | memory/05-component-anatomy.mdreferences/memory/architecture.md | Component Library: Builds reusable classes in design-system/components.css and generates 8-State Demo Wrappers (.preview.html). | | /states | /states | memory/05-component-anatomy.mdmemory/07-consistency-contract.md | State Matrix: Enforces 8 interactive component states (Default, Hover, Active, Focus-Visible, Disabled, Loading, Error, Success). |


Stage 5: Motion & Interactive Experience

Choreograph entrance reveals, scroll-driven effects, micro-interactions, and localization.

| Command | Signature Syntax | What It Loads | Output & Value | |---|---|---|---| | /motion | /motion | memory/04-motion-principles.md | Motion Choreography: Implements 4-tier whimsy taxonomy, background #ambient color shifts, canvas scroll-film engines, and z-stack layers. | | /flow | /flow | memory/09-prototype-flow.md | Interactive Flow: Wires floating prototype navigation toolbar (proto-nav.js) for screen-to-screen clickable testing. | | /i18n | /i18n | memory/08-arabic-bilingual.md | Arabic & RTL Engine: Configures dir="rtl" logical properties, Arabic typography, and cultural modesty guidelines. |


Stage 6: Quality Assurance & Audit

Verify performance budgets, enforce anti-slop rules, and reverse-engineer legacy sites.

| Command | Signature Syntax | What It Loads | Output & Value | |---|---|---|---| | /perf | /perf | memory/15-performance-budget.md | Performance Budget Audit: Generates data table verifying asset weight limits (hero cutout ≤ 400KB, fonts ≤ 3 families/4 weights, logo ≤ 40KB). | | /audit | /audit | references/workflows/audit-prototype.mdmemory/06-quality-bar.md | Quality Bar Audit: Executes read-only compliance report against 16 AI anti-pattern tells and structural consistency contract. | | /clone | /clone <url> | references/workflows/clone-prototype.mdmemory/03-narrative-conversion.md | Design System Extraction: Reverse-engineers external sites by sampling computed styles and token mapping into brand.json. | | /retrofit | /retrofit | references/workflows/retrofit-prototype.mdmemory/07-consistency-contract.md | Prototype Unification: Refactors drifted multi-page prototypes to adopt a central shared design-system/. |


Stage 7: Delivery & Developer Handoff

Package production assets, export documentation, and run deployment servers.

| Command | Signature Syntax | What It Loads | Output & Value | |---|---|---|---| | /handoff | /handoff | memory/11-brand-json-v2.mdmemory/05-component-anatomy.md | Developer Handoff Package: Exports token mapping tables, 8-state component specs, grid container rules, and motion curves into docs/handoff/. | | /deploy | /deploy | memory/06-quality-bar.mdmemory/10-python-tooling.md | Production Export: Launches local preview server, runs test_build.py, asset minification, and generates release bundle (build.py). |


🎨 8 Pluggable CSS Foundations

Lock a CSS foundation once per project during /init. Never mix foundations in the same project:

| Foundation | Command Flag | Best For | Architecture Details | |---|---|---|---| | Native CSS | --foundation=native | Pure zero-dependency design systems | Custom CSS variables & semantic component classes in tokens.css & components.css. | | Tailwind Utility | --foundation=tailwind | Fast utility-first prototyping | Tailwind v4 utility engine via CDN with custom design-token utility mappings. | | daisyUI | --foundation=daisyui | Rapid web application screens | Tailwind CDN + daisyUI component library themed via custom token CSS variables. | | Hybrid | --foundation=hybrid | Signature brand apps & dashboards | daisyUI composite application widgets + Native CSS for signature brand components. | | shadcn/ui | --foundation=shadcn | Accessible primitive tokens | Tailwind v4 + Radix UI accessible token mapping & design primitive styles. | | Pico CSS v2 | --foundation=pico | Ultra-fast semantic minimalist sites | Semantic HTML5 tags styled cleanly without utility class bloat. | | Bootstrap 5.3 | --foundation=bootstrap | Enterprise apps & dark themes | Enterprise CSS variables with native data-bs-theme="dark" theme switching. | | Alpine + Tailwind | --foundation=alpine | Interactive client micro-interactions | Alpine.js reactive state directives (x-data, x-on) paired with Tailwind v4 utilities. |


🛡️ Anti-Slop Governance & Quality Bar (Rule 8)

tidyfactor-design enforces strict anti-slop rules derived from premier design engineering standards (Taste-Skill, Hallmark, Anthropic Frontend-Design, Website Cloner).

[!IMPORTANT] Pre-Emit Self-Critique Stamp: Every generated prototype page or component is evaluated on 6 axes: Philosophy (P), Hierarchy (H), Execution (E), Specificity (S), Restraint (R), and Variety (V). Scores < 3 trigger an automatic revision pass before emission: /* Pre-emit critique: P5 H4 E5 S4 R5 V5 */

⚙️ The Three-Dial System (brand.json)

Configure layout asymmetry, animation depth, and data density dynamically:

{
  "dials": {
    "designVariance": 8,
    "motionIntensity": 6,
    "visualDensity": 4
  }
}

⛔ 16 Auto-Rejected AI Anti-Patterns

| Anti-Pattern Tell | Why It Fails | Mechanical Quality Rule | |---|---|---| | Purple-Gradient Hero | Most recognized AI template tell | Single anchor hue; no gradient hero backgrounds. | | Inter-Everywhere | Unpaired single-font layout | Pair distinctive display + body faces (El Messiri / Tajawal / Outfit). | | 3-Column Feature Grid | Generic 3-equal card row | Asymmetric grid, variable card heights, or inline icon lists. | | Card-in-Card Bloat | Unnecessary nested container cards | Banned. Flat borders or surface tinting without extra containers. | | Gradient Headline Fill | background-clip: text linear gradient | Solid high-contrast text; reserve gold gradient for dark luxury accents. | | Side-Stripe Card | 4–6px thick border on left edge of card | Banned. Clean 1px border or subtle elevation shadow. | | Full-Viewport Hero | min-height: 100vh centered short sentence | Hero desktop top padding capped at pt-24 (6rem); headline max 2 lines. | | Pure Black / White | Pure #000000 or #ffffff flat surfaces | Must use tinted neutrals (#0F172A, #F8FAFC). | | Default Sameness | Same macrostructure across consecutive pages | Vary layout archetypes across project screens (memory/13-layout-archetypes.md). | | Specimen Fall-Through| Defaulting to editorial 01 - HELLO specimen | Match surface archetype to domain register (e.g. interface for SaaS). | | The AI Nav | Wordmark left, 4 links center, CTA right | Banned. Use N1–N9 catalog (e.g. N1 Floating Pill or N5 Edge-Aligned). | | The AI Footer | 4 equal columns + social row + copyright | Banned. Use Ft1–Ft8 catalog (e.g. Ft1 Mast-Headed or Ft5 Letter Close). | | Aurora-Blob Background | Organic mesh blobs drifting behind hero | Banned. Use soft radial #glow layer or clean ambient ground. | | Floating-Orb Decoration | Blurred 3D spheres drifting behind text | Banned. Keep background clean and focused on copy/media. | | Italic Header Trick | Flipping one word in header to italic | Banned. Rely on genuine typographic hierarchy and weight contrast. | | Lazy-Loaded LCP | Adding loading="lazy" to hero image | Banned. Hero LCP images must load eager; lazy-load below-the-fold only. |


🏛️ System Architecture & File Structure

graph TD
    A["User Prompt / Command"] --> B["SKILL.md (~350 Tokens Load)"]
    B --> C["24 Runtime Commands across 7 Lifecycle Stages"]
    C --> D["Outcome Workflows (references/workflows/)"]
    C --> E["Operational Memory (memory/ & references/memory/)"]
    
    D --> F["Shared Design System (design-system/)"]
    F --> G["tokens.css & brand.json (v2)"]
    F --> H["components.css & base.css"]
    F --> I["motion.js & interactions.js"]
    
    G --> J["Markup-Only Pages (pages/*.html)"]
    H --> J
    I --> J

📁 Project Directory Layout

my-prototype/
├── design-system/
│   ├── tokens.css        ← Single source of truth: color, typography, spacing, radius, motion
│   ├── base.css          ← CSS reset, typography inheritance & dark mode rules
│   ├── components.css    ← Shared component library (buttons, cards, navbars, modals)
│   ├── utilities.css     ← Spatial layout & container helper classes
│   ├── motion.js         ← Shared scroll-reveals, ambient color shifts & choreography
│   ├── interactions.js   ← Shared dropdowns, tabs, modals & toggle behavior
│   └── brand.json        ← Identity tokens, voice registers & brand dials (v2 schema)
├── pages/
│   ├── index.html        ← Landing page markup ONLY (zero inline CSS/JS)
│   ├── dashboard.html    ← App dashboard markup ONLY
│   └── pricing.html      ← Pricing table markup ONLY
├── scripts/              ← Python Power Tools (palette extraction, BG removal, WebP compression)
├── docs/                 ← Handoff specs and research documentation
├── proto-nav.js          ← Dev-only floating prototype toolbar
└── brand.json            ← Project-root brand identity configuration

🇸🇦 Native Arabic & RTL System

tidyfactor-design provides first-class support for bilingual Middle Eastern digital products:

  • Typography Rules: Headings = El Messiri, Body = Tajawal. Never Amiri for headings above 24px.
  • RTL Logical Properties: Layout direction switching (dir="rtl" / dir="ltr") uses CSS logical properties (margin-inline-start, padding-inline, border-inline-end).
  • Modesty Guidelines: Cultural visual rules for regional targets (modest photography selection, proper emblem placement).
  • RTL Nav & Toolbar: Floating prototype toolbar (proto-nav.js) automatically mirrors alignment in RTL mode.

🚀 Quick Start & CLI Workflows

Published on NPM as @alwkala/tidyfactor-design.

1. Interactive Scaffold CLI

# Scaffold new prototype workspace
npx @alwkala/tidyfactor-design my-proto

# Specify CSS Foundation (--foundation=native|tailwind|daisyui|hybrid|shadcn|pico|bootstrap|alpine)
npx @alwkala/tidyfactor-design my-app --foundation=native --school=luxury

# Automated AI Agent / CI mode (zero prompts)
npx @alwkala/tidyfactor-design my-design-system --yes

2. Inject Agent Skill into Existing Workspace

npx @alwkala/tidyfactor-design add-skill

Injects .agents/skills/tidyfactor-design/, .claude-skill/, memory/, templates/, and AGENTS.md directly into your existing repo.

3. Local Preview & Development Server

# Launch zero-dependency local preview server
python -m http.server 8123

# Open browser at http://localhost:8123

🏛️ TidyFactor Skill Methodology & 8/8 Governance Architecture

You will notice the badge Architect Score: 8/8 Pass (100%) across TidyFactor repositories. What does this mean?

The TidyFactor Skill Methodology (governed by tidyfactor-skill-architect) is an opinionated, production-grade architectural framework for building AI Agent Skills. It guarantees that an agent skill is not a giant, uncontrolled prompt or a random file dump, but a structured, deterministic runtime system optimized for low latency, zero context bloat, and strict execution quality.

📋 The 8 Architectural Rules Every TidyFactor Skill Must Pass

| # | Governance Rule | Mechanical Specification | Value to User & AI Agents | |---|---|---|---| | 1 | Dispatcher Discipline | SKILL.md acts strictly as an entry-point command dispatcher (~350 tokens). It declares what commands exist and routes to workflow/memory files without carrying task execution instructions itself. | Zero Context Waste: Your AI Agent loads only ~350 tokens on startup instead of parsing 2,000+ lines of domain rules. | | 2 | One Workflow = One Outcome | Every workflow file (references/workflows/) owns exactly one outcome and ends with an explicit, mechanical validation checklist. | Deterministic Results: Prevents AI hallucination or half-finished steps; guarantees tasks complete against a checklist. | | 3 | Operational Memory | Files in memory/ contain pure facts, rules, matrices, templates, and schemas — zero prose or narrative. | High Signal-to-Noise: Injects crisp, actionable domain constraints directly into the prompt without token bloat. | | 4 | No Empty Structures | Folder hierarchies (references/commands/, references/workflows/, memory/) exist only when holding multiple items. | Clean Repository: Eliminates unnecessary file nesting and maintains portable simplicity. | | 5 | Philosophy Isolation | Branding rationale, manifestos, or methodologies belong in optional memory/philosophy.md — never inside operational execution files. | Pure Technical Execution: Agents read only execution rules without parsing marketing philosophy. | | 6 | Trigger-Justified Growth | New commands and memory files are added strictly when triggered by quantifiable lifecycle needs (e.g. 7-stage lifecycle expansion). | No Speculative Bloat: Keeps the skill lean, fast, and maintainable. | | 7 | Anti-Slop & Quality Bar | Frontend generation workflows enforce Pre-Emit Self-Critique (1-5 scoring on 6 axes: P, H, E, S, R, V) and 16 mechanical AI anti-pattern checks. | Guaranteed Aesthetic Quality: Blocks generic "AI-looking" code, purple hero gradients, wrapped CTAs, and duplicate UI patterns. | | 8 | Multi-Target Parity Validation | 100% parity across Agent skill targets (.agents, .claude-skill, and root repo files) verified automatically via node tools/validate-skill.js. | Cross-Platform Compatibility: Works identically in Antigravity, Claude Code, Cursor, Codex, and Windsurf. |


📜 License & Governance

Distributed under the MIT License. Created & maintained by Alwkala as part of the TidyFactor Ecosystem. Verified at 100% Compliance (8/8 Pass) under tidyfactor-skill-architect.

Copyright (c) 2026 Alwkala (https://alwkala.com) / TidyFactor Ecosystem