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

@particle-academy/fancy-artboard

v0.1.1

Published

Figma-style design canvas for Human+ UX — a pan/zoom ArtBoard of ArtPieces (image, HTML, or JSX). Agent-driveable and renderable inside a fancy-screens Screen.

Readme

@particle-academy/fancy-artboard

A Figma-style design canvas for Human+ UX — a pan/zoom ArtBoard of ArtPieces (image, HTML, or live JSX), grouped into sections, with focus mode, drag-reorder, inline rename, and PNG/HTML export. Composed entirely from @particle-academy/react-fancy primitives, zero third-party runtime deps.

npm install @particle-academy/fancy-artboard
import { ArtBoard, ArtPiece } from "@particle-academy/fancy-artboard";
import "@particle-academy/fancy-artboard/styles.css";

export function Canvas() {
  return (
    <ArtBoard style={{ height: "100vh" }}>
      <ArtBoard.Section id="onboarding" title="Onboarding" subtitle="First-run variants">
        <ArtPiece id="a" label="A · Dusk" width={260} height={480}
          content={{ kind: "image", src: "/mocks/dusk.png" }} />
        <ArtPiece id="b" label="B · Minimal" width={260} height={480}>
          {/* any JSX — rendered as a kind:"node" piece, scales with zoom */}
          <MyMockup variant="minimal" />
        </ArtPiece>
      </ArtBoard.Section>
      <ArtBoard.Note top={40} left={620} rotate={-3}>
        Try the dusk gradient on the hero?
      </ArtBoard.Note>
    </ArtBoard>
  );
}

Why

The suite targets applications where humans and agents share the same UI surface. ArtBoard honours the Human+ component contract:

  • Controlled statevalue + onChange, viewport + onViewportChange, focus + onFocusChange. Nothing an agent might read or write is internal-only.
  • Stable handles — every frame carries data-fa-piece={id}, every section data-fa-section={id}. Agents never guess the DOM.
  • JSON-friendly inputs — the whole board is an ArtBoardValue: arrays of plain objects with kind:"image" | "html" | "node" content. Agents can emit it directly.
  • Bridgeable — the type contract in src/types.ts is the stable surface a sibling MCP bridge (registerArtboardBridge) targets.
  • Trust-but-verifypending pieces render with a dashed "proposed" ring; agents stage, humans confirm.

The component emits no agent activity events itself — presence/undo live in a bridge layer.

Input mapping (Figma-style)

| Gesture | Action | |---|---| | Trackpad pinch (or Safari pinch) | Cursor-anchored zoom | | Notched mouse wheel | Stepped zoom | | Two-finger scroll | Pan | | Middle-drag / primary-drag on empty background | Pan | | Grip-drag on a piece header | Live reorder within the section | | ← / → (focus mode) | Prev / next piece in section | | ↑ / ↓ (focus mode) | Prev / next populated section | | Esc (focus mode) | Exit |

Chrome (section titles, piece headers, buttons) counter-scales via a --fa-inv-zoom CSS variable so it stays a constant on-screen size while piece content scales with the world transform.

Authoring two ways

  • JSX sugar<ArtBoard.Section> / <ArtPiece> children compile to an ArtBoardValue and a content registry for kind:"node" (JSX) pieces.
  • Data — pass a value (and onChange) to drive the board from JSON. value is authoritative when provided; JSX nodes still resolve from children by id, since JSON can't carry React nodes.

/screens

import { registerArtboardSchema } from "@particle-academy/fancy-artboard/screens";
registerArtboardSchema(); // once at host startup

Registers ArtBoard, ArtBoard.Section, and ArtPiece with @particle-academy/fancy-screens so a ScreenSchema can render artboard nodes. This is the only entry that imports fancy-screens (an optional peer) — the base . import graph stays react-fancy-only.

Docs

License

MIT