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

@bimetal/whiteboard-svelte-components

v0.30.0

Published

Default Svelte 5 whiteboard — infinite-canvas pan/zoom, shapes, drag/resize/rotate, connectors, freehand, smart guides, group, frames, comments, laser, style panel, theming.

Readme

@bimetal/whiteboard-svelte-components

The default Svelte 5 whiteboard for BIMETAL — a thin binding over the canonical @bimetal/whiteboard-headless controller. Every interaction decision (the tool FSM, create/drag/marquee, resize/rotate math, pan/zoom, connector routing, smart-guide snapping, group cohesion, frame reparenting, input parsing) lives in the controller; this component only renders DOM, registers window listeners, hit-tests pointer drags, and normalizes keyboard events. It is behaviorally identical to the React and Vue ports and shares the same DOM classes and CSS (@bimetal/whiteboard-themes).

Features

  • Infinite canvas — pan (wheel) and zoom (Ctrl/Cmd+wheel) with a grid that tracks the camera; reset to 100%.
  • Shapes — note/rect/ellipse/diamond/text/frame, created by dragging an armed tool; real drag move, eight-handle resize, and a rotate knob (15°-snapped), all rotation-aware in the controller.
  • Connectors with arrowheads, freehand draw, a laser pointer overlay, smart alignment guides, align/distribute, group/ungroup, frames with reparent-on-drop, comments with anchored pins + a thread editor.
  • Style panel (fill/stroke/width/dash/opacity/font) that forwards raw input to the controller for one undo-able batch; lock, z-order, duplicate, an undo toast, light/dark.
  • Keyboard a11y — the controller owns every hotkey (undo, delete, escape, …).

Event-sourced: the whole canvas is one aggregate, every change is an event, and undo + full history come for free.

Install

npm i @bimetal/whiteboard-svelte-components

Usage

<script lang="ts">
  import { Whiteboard } from '@bimetal/whiteboard-svelte-components';
  import '@bimetal/whiteboard-svelte-components/styles';
  import { createWhiteboardStore } from '@bimetal/whiteboard-data';

  const store = createWhiteboardStore();
  // …seed the canvas…
</script>

<Whiteboard {store} canvasId="canvas-1" />

Props

| Prop | Type | Default | Description | | ---------- | ------------------------- | ------- | ------------------------------------------------------------------------ | | store | WhiteboardStore | — | The canvas store. Immutable after mount (the controller is created once). | | canvasId | string | — | Which canvas to render. Immutable after mount. | | config | WhiteboardConfigInput | — | Locale + metric overrides, merged with the defaults. | | darkMode | boolean | false | Apply the dark token set (data-theme="dark"). | | onError | (err: unknown) => void | — | Surfaces infrastructure errors (a domain rejection is an undo toast). |

License

PolyForm-Noncommercial-1.0.0