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

@grxkun/formia

v1.0.0

Published

Formia — One file. Design engine + motion layer. 11 themes, GSAP, Three.js, PWA. No build step.

Readme

License: MIT Version No build step Zero dependencies GitHub Pages

One file. Design engine + motion layer. Build differently.


The Problem

Every vibecoded site looks the same. Not because AI is bad at code — because AI has no taste.

Ask any AI to build a landing page and you get this, every time:

Purple gradient hero → Inter font → centered H1 → two equal CTAs
Three icon cards → testimonials → pricing table → footer

It's not wrong. It's just invisible. And invisible is worse than wrong.

The vibecoder pain points:

| What you get | What you wanted | |---|---| | Inter + violet gradient | A typeface with a point of view | | scale(1.05) on hover | Motion that means something | | Three equal-weight columns | Hierarchy that guides the eye | | Screenshot placed on background | Product living inside the scene | | One layout, every project | A perspective that's yours |

The top 1% of sites share one trait: a single signature element the rest don't have. A typeface pushed to 18vw. A product card that floats. A section that wipes in with clip-path. A background that reacts to the cursor.

None of that is hard to build. It's just never in the prompt.

Formia encodes those decisions. 11 design systems, each with its own typeface, palette, and motion signature. Drop one in and your site immediately reads like someone made a choice — because someone did.


formia.css — Layout primitives, design tokens, fluid type scale, motion utilities.
formia.js — Everything else: scroll reveals, parallax, magnetic, cursor, counters, split text, 11 themes, accent system, dark/light mode, viewport preview, GSAP choreography, Three.js hero scene, PWA manager.

No build step. Zero config.


Install

npm install formia

Or drop files directly into your project:

<link rel="stylesheet" href="formia.css">

<!-- Motion only (no GSAP/Three.js needed) -->
<script src="formia.js" defer></script>

<!-- Full engine (themes, Three.js, GSAP) -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="formia.js" defer></script>

formia.css — Design Tokens

Override the tokens in your project:

:root {
  --bg:     #0d0c0b;
  --fg:     #f0ede8;
  --accent: #d4a04a;
}

Layout Primitives

<!-- Stack — vertical rhythm -->
<div class="stack" data-gap="6">
  <h2>Title</h2>
  <p>Body</p>
</div>

<!-- Grid — responsive columns -->
<div class="grid" data-cols="3">
  <div class="card">...</div>
</div>

<!-- Cover — full viewport, centered -->
<section class="cover">
  <h1 class="h1">Hero</h1>
</section>

Motion Attributes (data-*)

All features are driven by HTML data- attributes.

| Attribute | Effect | |-----------|--------| | data-reveal | Fade + translateY on scroll | | data-reveal="left" | Slide from left | | data-reveal="right" | Slide from right | | data-reveal="scale" | Scale up from 95% | | data-reveal="clip" | Clip-path wipe | | data-stagger | Stagger children on reveal | | data-parallax="0.3" | Parallax scroll (0–1 speed) | | data-magnetic | Element follows cursor | | data-cursor | Enable custom cursor | | data-counter | Animate number from 0 to data-value | | data-split-text | Split words/chars for animation |

<h1 data-reveal="clip">Build differently.</h1>
<div data-stagger>
  <p>Animates</p>
  <p>With</p>
  <p>Stagger</p>
</div>
<div data-parallax="0.4">Background layer</div>
<button data-magnetic>Magnetic CTA</button>

formia.js — Design Engine

Handles themes, accents, color mode, viewport preview, GSAP animations, Three.js scene, and PWA.

JavaScript API

// Apply a theme
FORMIA.applyTheme('cobalt');

// Change accent color
FORMIA.setAccent('#ff00ff');

// Toggle color mode
FORMIA.setColorMode('dark'); // 'light' | 'dark' | 'system'

// Viewport preview
FORMIA.setViewport('phone'); // 'phone' | 'tablet' | 'desktop'

// Read current state
console.log(FORMIA.currentTheme);
console.log(FORMIA.currentAccent);

URL Theme Override

yoursite.html?theme=cobalt
yoursite.html?theme=terminal

Available Themes

| ID | Font | Palette | |----|------|---------| | earth | Fraunces | limestone + lime | | amber | Cormorant Garamond | black + gold | | terminal | JetBrains Mono | black + green | | editorial | Playfair Display | ivory + crimson | | cobalt | Unbounded | dark + electric blue | | professional | Libre Baskerville | white + navy | | kindergarten | Fredoka | pastel + pink | | beach | Pacifico | ocean + coral | | forest | Fraunces | dark green + sage | | digital | JetBrains Mono | CRT cyan + magenta | | manufacturing | Bebas Neue | dark + amber |

Studio Panel

Add these elements to your HTML to get the live theme studio:

<button id="studio-btn"><span class="spip"></span>FORMA Studio</button>
<div id="studio"><!-- panel markup from index.html --></div>

Press T to toggle the studio panel from any page.


Files

| File | Size | Purpose | |------|------|---------| | formia.css | ~8KB | Design tokens + layout primitives | | formia.js | ~15KB | Design engine + motion layer (one file) |


License

MIT © grxkun