Skip to content

Reference ​

One page per package, copied from the README that ships with it on npm. The API section of each page is generated from the package's type declarations.

For block authors ​

PackageWhat
create-foliwakenpm create foliwake@latest: a new site code repository
@foliwake/block-kitdefineBlock, html, the block context and their types
@foliwake/site-checkthe platform's checks of a site's code, as a CLI and a library

For app developers ​

PackageWhat
@foliwake/nextNext.js App Router adapter
@foliwake/react<FoliwakePage> and useFoliwakeEvents
@foliwake/serverconfig, origin client, page preparation, proxies, CSP
@foliwake/clientframework-free browser client

For both ​

PackageWhat
@foliwake/blocks-contractthe types of foliwake-blocks/2 and the shared page types

For the command line and tools ​

PackageWhat
@foliwake/clifoliwake without the engine: sign in, link a folder (connect), run commands on a server
@foliwake/core-contractthe procedures, types and error codes of core over HTTP
foliwakethe short name of @foliwake/cli, for npx foliwake

Versions ​

All packages share one version and are released together. Install the same exact version of every @foliwake/* package you use. While 0.x, a minor version may break; each package's CHANGELOG.md marks it BREAKING.

Apache-2.0