Skip to content

Foliwake SDKBlocks for your site. Pages in your app.

Foliwake publishes a site's pages as plain, checked HTML. This SDK is how you write the blocks that make those pages interactive, and how you show the pages inside your own app.

Pages fly out of an open book and turn into interactive blocksPages fly out of an open book and turn into interactive blocks

What Foliwake is ​

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.

What works without a Foliwake server ​

  • npm create foliwake@latest, npx @foliwake/site-check and the types of @foliwake/block-kit work offline.
  • Pages and block examples are rendered by the platform only. The local preview needs the Foliwake CLI, which is not public yet.
  • The app packages (next, react, server, client) need a Foliwake site to read pages from.

Quick start ​

Block authors:

sh
npm create foliwake@latest my-site
cd my-site
npx @foliwake/site-check

Then follow Start a site's code and Write a block.

Next.js App Router apps:

sh
npm install @foliwake/next
npx @foliwake/next init --url https://my-site.example.org

Then read Embed pages in a Next.js app.

Apache-2.0