✦Morph

Introduction

Morph lets each user of your app reshape their own pages by asking. They can rearrange, resize, hide and restyle the parts of a page, or add new views, and Morph saves their version. Your components, your data and your rules stay in charge.

How it works#

  1. You mark the parts of a page. Each part is wrapped in a <Section name="…">: a card, a chart, a table, a toolbar. npm init usemorph@latest adds these tags for you.
  2. A user asks for a change in the Morph box in the corner of the page: "Put the chart on top and hide the news," "make the sidebar text bigger," "a weekly goal I can set."
  3. The AI writes that user's version. Each area on screen (the page's content, the app's sidebar) is a small React page that places your sections, using your own layout components, and may add new parts built from your data. App-wide requests like "more compact" become theme settings.
  4. Morph checks it before saving. The code is checked on Morph's server, then the page is rendered and your rules are checked on screen ("this part must stay visible"). If something's wrong, the AI repairs it; if it can't, nothing changes.
  5. The page is saved for that user, with undo and reset. Everyone else still sees your page, or their own version.

What stays in your hands#

What you need#

React 19
One-command setup Next.js with the App Router. Other React 19 apps can add the same pieces by hand.
A sign-in system Any: your own, Auth.js, Clerk, Supabase, Firebase… Morph saves a page per signed-in user.
A server route For the token endpoint (one small file).

The pieces#

Package What it is
@usemorph/react In your frontend: <MorphProvider>, <MorphSurface>, <Section> and the Morph box
@usemorph/node On your server: the token endpoint that tells Morph who's signed in
@usemorph/cli usemorph init, usemorph sync and friends. npm init usemorph@latest runs it.

Morph itself is a hosted service at https://api.usemorph.dev: the AI, the checks, and every user's saved pages.

Ready? Start with the Quickstart.