I write blocks
Create a site code repository with create-foliwake, write blocks with @foliwake/block-kit, and run the platform's own checks locally with @foliwake/site-check.
Start a site's code
Foliwake publishes a site's pages as plain, checked HTML. A site's blocks (small CSS and JavaScript modules that make parts of a page interactive) live in a Git repository. The platform turns a commit of that repository into an immutable code release, and every page names its release. An app can show those pages inside its own UI and mount their blocks from that same release.
The platform (the engine that renders, publishes and serves pages) is not part of this SDK. The SDK packages talk to it over HTTP only. Concepts explains the parts in one page.
npm create foliwake@latest, npx @foliwake/site-check and the types of @foliwake/block-kit work offline.next, react, server, client) need a Foliwake site to read pages from.Block authors:
npm create foliwake@latest my-site
cd my-site
npx @foliwake/site-checkThen follow Start a site's code and Write a block.
Next.js App Router apps:
npm install @foliwake/next
npx @foliwake/next init --url https://my-site.example.orgThen read Embed pages in a Next.js app.