For People Who Write and Take Photos

Write the Story. Add the Photos. Publish.

Your own website from texts and photos. coffer resizes the pictures and removes their location and camera details unless you say otherwise.

See how it works Technical details ↓

  • Needs a one-time technical setup
  • No tracking unless you switch it on
  • Free and open source
  • Early days: one author, version 0.4.0
---
title: A day in the valley
date: 2025-07-12
---

We left at six.
The ridge was clear by nine.

![The ridge at nine](ridge.jpg)

The Problem

Publishing Photos Is More Work Than Writing

Shrink every picture. Remove the location that shows where you live. Keep the full-size files somewhere safe. Check that no link is broken. Add a search box. Upload it all.

Miss one step, and a reader finds it before you do. coffer does these steps the same way every time.

Who It’s For

For People with Something to Show

  • Hikers and travellers

    Stories with many photos, and maps of where you walked.

  • Makers with a journal

    Woodworking or any other craft, one post per project. my.ba3a.dev is a journal of this kind, written in Russian.

  • Careful photographers

    You choose what each photo tells about where you were and which camera you used.

  • Developers

    A devlog, a page for each project, press kits for games and documentation pulled from your repositories.

Not for you if you want to sign up and start in a browser, pick from thousands of designs or ask a large community for help.

A home page and a post of the made-up example site: a woodworker's introduction with two project cards, and a story about a walk with a photo.

How It Works

One Setup. Then Write, Look and Publish.

After the one-time setup, you start the editor on your computer with one command and work in your browser.

  • 01 · write

    Type your story and drop in photos. The real page appears beside your text.

    Safety net: Your work is saved as you type.

  • 02 · look

    Check the page, with its photos and map, before anyone else sees it.

    Safety net: A draft does not appear on your site until you publish it.

  • 03 · publish

    Press Publish. coffer sends the post off, and your setup puts it online.

    Safety net: A broken link or a missing picture stops it, and you see where the problem is.

The post editor showing the example site: the text of a post on the left and the finished page on the right.

The editor uses Markdown: plain text with a few marks, such as **bold**. It is not a word processor. It does not add videos, and it does not rename or delete posts.

What You Get

The Chores Are Done for You

  • Private by default

    Where a photo was taken is hidden unless you choose to blur it to about a kilometre or show it. Choose for the whole site, a topic, a post or one photo.

  • Photos sized for the web

    Add the full-size file. Visitors get smaller copies, and your original is never published.

  • Maps of your walks

    Add the track from your phone or watch as a GPX file, and the post gets a map. A track shows the exact route, so add only what you want to share.

  • Videos that wait for a click

    Link a YouTube or Vimeo video, among others. By default their player loads only when a reader clicks.

  • Search and subscriptions

    Readers can search your posts, or follow new ones in a feed reader.

  • Topics and series

    Sort posts by topic and subtopic. Link the parts of a long story in order.

  • Write now, publish later

    Give a post a future date, and it waits for that day.

  • Tidy typography

    Straight quotes and double hyphens become proper quotes and dashes on the page.

Technical Details

Under the Hood

coffer is a static site engine. It turns a folder of Markdown and photos into plain files that any static host can serve: no server, no database, no JavaScript needed to read a page. The rest of this page is for the person who sets it up.

  • Mistakes fail the build. coffer build exits 0 only when every link, image and project reference resolves. A bad value is reported with file:line:column.
  • The output is checked. coffer check reads the finished files. It verifies links, anchors, preview metadata, feeds, the sitemap and the location policy of every image.
  • Location and camera policy. location is strip, coarse or keep, and camera is strip or keep. Both default to strip. When tags disagree, the strictest wins.
  • Originals out of git. A lock file goes into git, the content into an S3-compatible store such as Cloudflare R2, and git hooks keep them in step.
  • Project documentation. Guides pulled from the project’s own repository, plus a reference generated from its source.
  • Blogs and feeds. A tag tree with a page for every subtree, series, full-post index pages if you want them, and Atom feeds per blog, tag, series and project.
  • Videos. YouTube, Vimeo, PeerTube, Rutube, VK Video or a file beside the post, with chapters and links to a time.
  • Typography by language. Rules for English, Russian, German, French and Armenian (experimental), applied at build time. The Markdown stays as typed.

Publishing

After Setup, a Push Publishes

This is the pipeline behind ba3a.dev. coffer ships the commands and the git hooks. The CI workflow and the hosting are yours to set up.

  • Writeyou A Markdown post and its photos in one folder. coffer dev shows it with live reload, drafts included. coffer dev --edit adds the browser editor.
  • Commityou The pre-commit hook records the originals in media.lock.json: a path, a SHA-256 and a size per file. The photos stay out of git.
  • Pushyou The pre-push hook uploads the originals the store lacks to a private bucket, and stops the push if that fails. The editor’s Publish button commits and pushes for you.
  • Build CI pulls the originals, runs coffer build, then coffer check --w3c.
  • Deploy The folder goes to Cloudflare Pages, and a smoke test checks the live site.
  • Refresh Every 15 minutes a job runs coffer rebuild-needed. It rebuilds when a scheduled post is due or a documentation repository has moved.

The Input

A Post Is Just Markdown

Front matter says when it was written, what it is about and how much to reveal. Only title and date are required.

A photo can carry its own policy. A post that publishes an exact position is listed by every build, so a mistake is easy to see before you push.

---
title: A day in the valley
date: 2025-07-12
tags: [hiking/alps]
location: coarse
images:
  summit.jpg:
    location: keep
---

We left at six. The ridge was clear by nine.

![The ridge at nine](ridge.jpg)

Why Not Hugo

Hugo Is Faster. Coffer Does the Rest of the Chores.

Hugo is a fast static generator with a large ecosystem and thousands of themes. If that is what you need, use it. coffer is for the case where the work is everything around the pages.

What you need coffer With Hugo, typically
Location and camera data A policy per site, tag, post or image. coffer check reads the published files back and fails on a mismatch. A script of your own, and no check of the output
Original photos A lock file in git, the originals in an S3-compatible store, git hooks that sync them Git LFS, or a script of your own
Scheduled posts A future-dated post appears when it is due. rebuild-needed rebuilds only when something changed. Future posts are skipped until a rebuild, so you schedule the rebuild yourself
Docs of another repository Cloned at build, rendered in your theme, with a generated reference Hugo Modules, or a copy step
Broken links and images The build fails with file:line:column, and coffer check inspects the output Often a separate link checker
Search Built in, with word forms An add-on you wire up

What You Give Up

  • It is version 0.4.0 with one maintainer. Before 1.0 a minor version may need a change in your site, and the changelog says so.
  • It needs Node.js 24 or newer.
  • There is one default theme and the one you write. There is no theme gallery.
  • It is developed and tested on Windows and Linux.

Dogfooding

Coffer Builds the Site You’re Reading

ba3a.dev and my.ba3a.dev are two sites from one repository, built with coffer and published to Cloudflare Pages by a push to main.

  • 2sites built from one repository
  • 3repositories whose documentation is pulled at build time: coffer, roto and specloop
  • 15 minbetween checks for a due post or a new commit in a documentation repository
  • 0servers or databases behind the live site

The build-info.json this site serves, as it was on 2 December 2026. Every build writes one, and coffer rebuild-needed compares it with the live repositories.

{
  "builtAt": "2026-12-02T17:51:20.669Z",
  "engineVersion": "0.3.2",
  "sources": {
    "coffer": {
      "url": "https://github.com/ba3a/coffer.git",
      "ref": "main",
      "sha": "ccb4be11acd1c89e637a30f32c7127c884c1e581",
      "landing": {
        "file": "site/landing.md",
        "sha": "ccb4be11acd1c89e637a30f32c7127c884c1e581"
      }
    },
    "roto": {
      "url": "https://github.com/ba3a/roto.git",
      "ref": "main",
      "sha": "e36feb6b32307b187a461bc03b69a004fb78ac92",
      "landing": {
        "file": "site/landing.md",
        "sha": "e36feb6b32307b187a461bc03b69a004fb78ac92"
      }
    },
    "specloop": {
      "url": "https://github.com/ba3a/specloop.git",
      "ref": "main",
      "sha": "457abd02ba52071fbea87211ed39d56e42a94b5a",
      "landing": {
        "file": "site/landing.md",
        "sha": "457abd02ba52071fbea87211ed39d56e42a94b5a"
      }
    }
  },
  "nextScheduledAt": null,
  "typographyRulesVersion": 1
}

The docs of coffer itself are built this way. The guides under /made/coffer/docs/ come from the docs/ folder of the coffer repository. Push a change there and this site picks it up within the hour. So does this page: it is the site/landing.md file of that repository, set as the project’s landing.

Quick Start

Build the Example Site

You need Node.js 24 or newer and git. The example is a made-up woodworker’s journal, and it builds from a fresh clone with no other setup.

To start your own site, copy example/coffer.yaml and example/content, then change the names and the texts. Pin a release tag, not the main branch.

git clone https://github.com/ba3a/coffer.git
cd coffer
npm install
npm run example
npx coffer serve example/dist/workshop
# then open http://localhost:8080/

# live preview with drafts, reloads on save
npx coffer dev --config example/coffer.yaml

# the same, with the post editor; it prints the link to open
npx coffer dev --edit --config example/coffer.yaml
# workshop editor: http://localhost:4000/__coffer/edit/?token=...

# in your own project
npm install git+https://github.com/ba3a/coffer.git#v0.4.0
$ npx coffer build --config example/coffer.yaml
workshop: 6 post(s), 27 page(s) -> …/dist/workshop
Posts publishing exact locations (2)
  content/journal/mountain-weekend.md: 1 image(s)
  content/journal/ridge-walk/index.md: 1 image(s), 1 track(s)

$ npx coffer check --config example/coffer.yaml
workshop: 29 page(s), 12 feed(s), 22 image(s) checked, no failures

FAQ

Questions People Ask

Do I Need to Know How to Code?

Not to write. To set up the site, the publishing and the hosting, you need someone who is comfortable with a terminal and git. After that, you start the editor with one command and write in your browser.

Can I Write from My Phone?

Yes, while your computer runs the editor and both are on the same network. Start it with --host 0.0.0.0 and open the link it prints, using the address of your computer.

Does It Need a Server or JavaScript?

No server and no database. The output is plain files, and reading a page needs no JavaScript. Search does need it, and the search page says so without it.

Where Can I Host It?

Anywhere that serves a folder of files. coffer serve answers the way Cloudflare Pages does, and the build writes a _redirects file for hosts that read one. ba3a.dev runs on Cloudflare Pages.

Do My Photos End up in Git?

Not with a media block. The originals stay in a folder or an S3-compatible bucket such as R2, B2 or MinIO, and git holds a lock file with the hash and size of each one. The site publishes only the images derived from them.

Can a Site Be in Another Language?

Yes. Each site has its own language and its own theme strings, and a blog or a post can set its own lang. The typography follows it. my.ba3a.dev is in Russian.

Does It Fix My Quotes and Dashes?

Yes, at build time. "quotes" and -- in the source become the marks of the post’s language, and nothing in the Markdown is rewritten. Set typography: false in front matter or typography: { enabled: false } for a site to turn it off.

How Stable Is It?

It is 0.4.0 and follows semantic versioning. Before 1.0 a minor version may need a change in your site, and the changelog lists it. Pin a tag, and upgrade when you choose.

Which Systems Does It Run On?

It is developed and tested on Windows and Linux, and needs Node.js 24 or newer. The git hooks are POSIX shell scripts, which Git for Windows provides. macOS is not part of the tests.

One Setup. Then Just Write.

Write the story. Add the photos. Publish.

★ Star coffer on GitHub Read the docs

coffer · Apache-2.0 · A “built with coffer” link is appreciated, not required.

Project details

Documentation
Read the documentation
License
Apache-2.0

Latest posts

  • Some statistics first

    Before the deep dive into how I build with AI, the raw numbers behind Coffer's first release: 6,613 API calls, 164 subagents, a billion cached tokens and ~80k lines of code.

  • Finally built me a site

All projects