Skip to content

feat: plugins - #73

Draft
lochie wants to merge 14 commits into
mainfrom
feat/plugins
Draft

lochie wants to merge 14 commits into
mainfrom
feat/plugins

Conversation

@lochie

@lochie lochie commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Important

this is a breaking release. numbers and scale props are gone, and plugins replaces torph's default set rather than adding to it, so any existing plugins usage needs checking.

this update adds a plugin system to torph and a docs site to go with it.

  • adds plugins to TextMorph and the React, Vue and Svelte components.
  • adds classic(), torph's default look as numbers(), groups(), fade() and scale(). plugins={[]} gives the bare engine.
  • adds 32 plugins under torph/plugins/*, plus torph/debug, which warns when a plugin reads layout mid-morph.
  • adds /docs and /plugins pages to the site, with a live demo for each plugin.
  • fixes stray letters during rapid morphs, and text-align set through className now sticks.

@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
torph Ready Ready Preview Nov 24, 2026 4:24am UTC
torph-svelte-example Ready Ready Preview Nov 24, 2026 4:24am UTC
torph-vue-example Ready Ready Preview Nov 24, 2026 4:24am UTC

Request Review

Removes wipe, anagram, skeleton, magnet and weight, and the engine features
only they used: mount, a hook's at and extent, and drawing an empty first
value. The plugins page opens with a demo that stacks any plugins, starting
from classic(). Squash is more cartoony; wave's exits leave at once; flap's
tiles clip their glyphs; an odometer place that's interrupted on its way out
hurries off, and a new place fades in.

This branch was successfully deployed

3 active deployments
Preview – torph — 336e9fdd Deployed Nov 24, 2026 by vercel[bot]
Preview – torph-vue-example — 336e9fdd Deployed Nov 24, 2026 by vercel[bot]
Preview – torph-svelte-example — 336e9fdd Deployed Nov 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant