Skip to content
Editlet

Pull requests are the database: why Editlet keeps content in Git

Nov 10, 2026, 4:00 AM · 4 min read

An old oak whose branches carry paper tags and meet in one trunk tied with a red ribbon, a stack of ledgers at its roots

Editlet has no database. Content is Markdown in your repository, every save is a commit, and publishing is a merge. People raise the same four objections to this design. Here they are, with what Editlet does about each, and where Git really is the wrong tool.

Why Git at all

Your site already lives in a Git repository, and your coding agent already works there. If the content lives there too, three things come free:

  • History. Every change has an author, a date and a diff. Undo is git revert.
  • Review. A content change is a pull request, so it gets the same review, checks and rules as a code change.
  • One deploy. Content and the code that renders it ship in one commit. A new field and the page that shows it cannot get out of step.

The cost is that content goes live with a deploy, not at the moment you click save. For a blog, docs or a marketing site, that is usually fine.

"Editors won't use Git"

They don't have to. An editor opens any page of the site with ?editlet, signs in with GitHub and edits in a form. The editor makes the branch, the commit and the pull request. It names them in your style: a branch such as editlet/post-autumn, a message such as Update post/autumn, and a pull request the developer can read.

The editor sees "Saved" and "Needs approval from @acme/admins", never rebase. A developer sees an ordinary pull request.

"Markdown has no references"

Plain Markdown doesn't. Editlet adds them in the schema. A reference field stores author/jane, and validation fails if author/jane does not exist. Renaming an entry in the editor rewrites every reference to it in the same commit. Deleting one can remove the references too, unless a required one would break. The agent has the same commands as a script, with a dry run first.

So the links between entries are checked in the editor, in the agent's scripts and in the build.

"Two people will overwrite each other"

Every save sends the Git id of the file it started from. If someone changed the file in the meantime, the save stops with a conflict and writes nothing. Nobody's edit disappears without a trace.

Edits from different people go on different branches, and Git merges files that do not overlap. Two edits to the same entry still need a person to choose. That is rare on a small site, and it is visible when it happens.

"Who is allowed to publish?"

Editlet has no users and no roles of its own. GitHub has them already:

  • Teams decide who can write to the repository.
  • CODEOWNERS decides who reviews which folders: editors for cms/content/, admins for code and the schema.
  • Branch protection refuses a merge without a review, for the editor, the agent and you.

The editor shows each person their role and who must approve their pull request. Your agent can set all of this up with the editlet-setup skill.

Where Git is the wrong tool

  • Content that changes by the minute. Prices, stock or comments need a database, not a commit.
  • Very large sites. Editlet reads every entry on each load. Hundreds of entries work well. Tens of thousands do not.
  • Large media. Images live next to their entry in the repository, up to 8 MB each. Video belongs on a media host.
  • Teams outside GitHub. The live editor works only with GitHub today.

If your site fits these limits, Git gives you history, review and permissions you already know, without a single new service to run. The dev mode and production docs show the whole path from a save to a merge.