Every edit is versioned
Changes land in git as ordinary commits. History, blame, review and revert come with the repository you already have.
The click-to-edit CMS that writes to your source code.
Try it
This is the real thing, not a recording. Change the text on the left and Torso’s save step runs on our server, showing the source it would write.
Previews for every pull request, so reviews happen on the real thing.
Tap or click any text on this page and type.
const plan = { name: "Team", price: 29 }; export function Hero() { return ( <section> <h1>Ship your product, not your backlog</h1> <p> Previews for every pull request, so reviews happen on the real thing. </p> <a href="/signup">Start for free</a> <small> {plan.name} plan, ${plan.price} per month </small> </section> );}How it works
No content backend, no schema, no sync. The words live in your components, and Torso edits them there.
One function around your Next.js config finds the static text and links in your components at build time. Your source files are not changed.
Open the edit URL, sign in, and click a heading, a button or a paragraph. You write directly on the page, in its own fonts and layout.
On your machine, Save rewrites the component file. In production it commits to your GitHub branch and your host redeploys as usual.
What you get
Changes land in git as ordinary commits. History, blame, review and revert come with the repository you already have.
Your copy is plain code, so a coding agent reads and changes it like anything else. It never has to see the CMS, or know there is one.
Nothing to model and nothing to migrate. If it is written in your JSX, it is editable.
No hooks, no wrapper components and no content files. Remove the package and your site is exactly what it was.
There is no content API, database or admin app. Pages stay as static as you built them, and no outage elsewhere can take your words down.
Every edit is escaped for the syntax it lands in, then the file is parsed again to prove it reads back as typed.
If the text changed in the repository since you opened the page, that edit is refused. The branch only ever moves forward.
No editor script ships to the public site. Elements carry a short opaque id, which adds a few hundred bytes to a page.
Reuse your app’s admin session with one function, or set a password. Without either, the edit URL is a plain 404.
Setup
Install the package, wrap your config and add one route. Then open /edit on your own site.
$ pnpm add torso-cmsnext.config.ts
import { withCMS } from "torso-cms";
const nextConfig = {
// your existing config
};
export default withCMS(nextConfig);Wrap the config you already have. This is the only change to existing code.
Honest limits
Questions
Run the repository, open the edit URL and click on this sentence. Save, and the change is in the component file.