Searching Open Sourcery

Type to search Open Sourcery.

Open Sourcery

The Complete Library

Every package Magic Spells has published — 34 of them across 7 categories. Motion and scroll engines, overlays and panels, accessible inputs, media, commerce and developer tools. All MIT, most with zero dependencies.

Motion & Scroll

10 packages

The engine stack. Springs at the bottom, scenes and timelines on top.

Physics Engine

@magic-spells/physics-engine

v2.0.0

Frame-rate independent springs. The base layer the rest of the motion stack is built on.

Demo: Parameter Lab — drag tension and friction, watch the spring change under you.

$ npm i @magic-spells/physics-engine

Details →GitHubnpm

Animation Engine

@magic-spells/animation-engine

v0.2.1

Declarative scene sequencing — chainable scenes with easing, staggers, loops, and randomness.

Demo: Squash and stretch — the clearest "this is not CSS easing" moment in the demo.

$ npm i @magic-spells/animation-engine

Details →GitHubnpm

Frame Engine

@magic-spells/frame-engine

v1.0.1

Calculates the intermediate states between CSS keyframes, so any property can be scrubbed.

Demo: Multi-Property Orchestra — one scrub, six properties interpolating at once.

$ npm i @magic-spells/frame-engine

Details →GitHubnpm

Morph Engine

@magic-spells/morph-engine

v0.4.2

A spring-driven blob morphs from one element rect and style to another. Interrupt it mid-flight and it reverses.

Demo: Task board card opening into its detail view.

$ npm i @magic-spells/morph-engine

Details →GitHubnpmSee it running →

Reveal

@magic-spells/reveal

v0.1.1

Scroll reveals written as classes. Thirty-two effects, stagger groups, and no dependencies.

$ npm i @magic-spells/reveal

Details →GitHubnpm

Scroll Progress

@magic-spells/scroll-progress

v1.1.0

Scroll progress with configurable playhead anchors, smoothing, and CSS variable output.

Demo: Sunset to Starlight — scroll drives a full colour scene.

$ npm i @magic-spells/scroll-progress

Details →GitHubnpm

Scroll Trigger

@magic-spells/scroll-trigger

v0.1.2

Powering this page

Tracks section visibility and syncs navigation state. The sticky menu on this page is running it.

Demo: A mini scroll container inside the card with its own tiny sticky nav tracking stub sections.

$ npm i @magic-spells/scroll-trigger

Details →GitHubnpm

Scroll Stack

@magic-spells/scroll-stack

v0.1.0

A natively scrolling list whose items animate at the scrollport edges instead of clipping — the exiting one stops dead at the boundary and fades while the next slides over it.

$ npm i @magic-spells/scroll-stack

Details →GitHubnpm

Overlays & Panels

8 packages

Panels that open, stack, and resize — native <dialog> semantics with gesture and spring behaviour layered on.

Sheet

@magic-spells/sheet

v0.2.0

Recommended

Gesture-driven edge sheets and floating cards on a real native dialog — spring motion, snap points, responsive profiles.

Demo: Snap points — flick it and it settles on the nearest rest height.

$ npm i @magic-spells/sheet

Details →GitHubnpmSee it running →

Dialog Panel

@magic-spells/dialog-panel

v2.0.3

A lightweight wrapper around native <dialog> with state-driven animations. The primitive the sheets sit on.

Demo: State Machine — the lifecycle visualised as states lighting up in order.

$ npm i @magic-spells/dialog-panel

Details →GitHubnpm

Bottom Sheet

@magic-spells/bottom-sheet

v2.0.2

The lean bottom-only build: pointer dragging, velocity dismissal, scroll-aware gesture policy, safe-area spacing.

Demo: Scrolling hands off to dragging.

$ npm i @magic-spells/bottom-sheet

Details →GitHubnpm

Panel Stack

@magic-spells/panel-stack

v0.2.0

A nested panel stack with fluid push and pop transitions — drill-down menus, settings flows, multi-step forms.

Demo: A four-step account flow pushing and popping.

$ npm i @magic-spells/panel-stack

Details →GitHubnpmSee it running →

Split Panel

@magic-spells/split-panel

v0.2.0

Resizable split panes — draggable dividers, horizontal and vertical, nesting, min/max constraints, and layouts that persist.

Demo: Drag the divider; the nested split inside one pane resizes with it.

$ npm i @magic-spells/split-panel

Details →GitHubnpm

Focus Trap

@magic-spells/focus-trap

v1.0.7

Traps keyboard focus inside a container. Small, boring, and load-bearing for everything modal.

$ npm i @magic-spells/focus-trap

Details →GitHubnpm

Notification Stack

@magic-spells/notification-stack

unreleased

Stacked-card and list toasts with auto-dismiss timers.

Not on the registry — clone or read it on GitHub.

Details →GitHub

Inputs & Controls

7 packages

Accessible replacements for the form primitives that browsers style badly.

Select Dropdown

@magic-spells/select-dropdown

v0.3.0

A fully accessible custom select — keyboard navigation, grouped options, theming via custom properties. ~3.5 KB gzipped.

Demo: Every Country — typeahead through 200 options without a frame drop.

$ npm i @magic-spells/select-dropdown

Details →GitHubnpm

Collapsible Content

@magic-spells/collapsible-content

v1.2.0

Height-animated disclosure with accordion grouping, custom easing, and real keyboard semantics.

Demo: Accordion Group — opening one closes the last.

$ npm i @magic-spells/collapsible-content

Details →GitHubnpm

Tab Group

@magic-spells/tab-group

v1.2.0

Tab list and tab panel elements with roving focus and three ready-made skins.

Demo: Cycle the underline, capsule, and outlined skins on the same markup.

$ npm i @magic-spells/tab-group

Details →GitHubnpm

Quantity Input

@magic-spells/quantity-input

v1.1.0

A stepper input with min and max clamping, custom icons, and change events.

$ npm i @magic-spells/quantity-input

Details →GitHubnpm

Range Slider

@magic-spells/range-slider

unreleased

Single and dual-thumb sliders with ticks and step snapping.

Not on the registry — clone or read it on GitHub.

Details →GitHub

Color Picker

@magic-spells/color-picker

unreleased

Saturation area, hue and alpha sliders, hex input, palette swatches.

Not on the registry — clone or read it on GitHub.

Details →GitHub

Date Picker

@magic-spells/date-picker

unreleased

A calendar popover with keyboard navigation, ranges, and locales.

Not on the registry — clone or read it on GitHub.

Details →GitHub

Media & Content

4 packages

Images, video, and content that loads, swaps, or moves.

Image Zoom

@magic-spells/image-zoom

v0.1.0

Pinch-to-zoom and pan for images, with programmatic control and gallery support.

Demo: Pinch to zoom, with a scroll-wheel path for desktop.

$ npm i @magic-spells/image-zoom

Details →GitHubnpm

Scrolling Content

@magic-spells/scrolling-content

v2.1.1

An infinite marquee — hover to pause, drag to scrub, no dependencies.

Demo: Drag to scrub the marquee back and forth.

$ npm i @magic-spells/scrolling-content

Details →GitHubnpm

Load Content

@magic-spells/load-content

v0.2.0

Loads and swaps content in place, with optional pagination.

Demo: A product grid paginating without a page change.

$ npm i @magic-spells/load-content

Details →GitHubnpm

Commerce

3 packages

Shopify-facing cart and promotion components.

Cart Progress Bar

@magic-spells/cart-progress-bar

v2.0.0

A free-shipping threshold bar with currency formatting and themeable fills.

Demo: Try it live — the bar filling toward the threshold as the total climbs.

$ npm i @magic-spells/cart-progress-bar

Details →GitHubnpm

Gift With Purchase

@magic-spells/gift-with-purchase

v2.0.0

Threshold promotions that unlock a gift as the cart total crosses a line.

Demo: Low Threshold Gift unlocking as the total rises.

$ npm i @magic-spells/gift-with-purchase

Details →GitHubnpm

Cart Panel

@magic-spells/cart-panel

v2.0.0

Manages Shopify cart data and AJAX, and delegates modal behaviour to dialog-panel. Includes the <cart-item> element for each line, imported from @magic-spells/cart-panel/cart-item.

$ npm i @magic-spells/cart-panel

Details →GitHubnpm

Developer Tools

1 package

Things that plug into an editor, a browser, or an agent.

Figma MCP Bridge

@magic-spells/figma-mcp-bridge

v0.4.0

An MCP server that lets Claude read and manipulate Figma documents over a WebSocket bridge.

$ npm i @magic-spells/figma-mcp-bridge

Details →GitHubnpm

Build & Utilities

1 package

Small pieces of plumbing worth publishing on their own.

Event Emitter

@magic-spells/event-emitter

v0.1.0

The tiny emitter the other packages share, published so you can share it too.

$ npm i @magic-spells/event-emitter

Details →GitHubnpm