No framework and no dependencies: build.mjs reads a collection with fetch and writes static pages to dist/, with t.js on every page. Download it from Connect your site → HTML + fetch → Starter.
Setup in three steps
- Keys. Copy
.env.exampleto.env(filled in the download). The secret key is used only while building. - Build.
npm run build(Node 20.12 or newer). - Look.
npm run devservesdist/at http://localhost:3000; uploaddist/to any static host.
JavaScript
const res = await fetch(`${BASE}/delivery/v1/${PROJECT}/entries/article?limit=100`, {
headers: { authorization: `Bearer ${process.env.MANIFOLIO_KEY}` },
});
const { entries, nextCursor } = await res.json();Rebuild when content changes: point a webhook at your host's build hook. The visual editor needs a server that renders drafts, so use a framework starter for that.