Capsium

Samples

Sample Packages

personal-blog

A personal blog: three Markdown-style posts served as static HTML, with a YAML dataset of post metadata (dates, tags, slugs). The post list is rendered client-side from /api/v1/data/posts.

staticdatasetblog
Open in playground →download .cap

interactive-quiz

A 5-question quiz that scores answers via a JS handler route. Questions come from a JSON dataset; high scores persist via the writable overlay. Demonstrates handlers + writable datasets end-to-end.

handler-routesdatasetwritable
Open in playground →download .cap

portfolio

A single-page portfolio: dark-mode CSS, image gallery, JSON dataset of projects rendered client-side. The whole site (HTML + CSS + JS + assets + data) ships in one signed .cap.

staticdatasetassets
Open in playground →download .cap

Capsium Demo

A tiny two-page dark-themed site with one JSON dataset. Exercises page routes, static assets, dataset routes, and introspection endpoints.

staticdataset
Open in playground →

cap-story

An interactive storybook ("Story of Claire") demonstrating narrative content, multiple chapters, and character bios. The showcase Capsium package.

storymulti-page
Open in playground →download .cap

docs-site

A multi-page documentation site with a sidebar table of contents rendered from a JSON dataset. Five pages across three sections, responsive grid layout.

staticdatasetdocs
Open in playground →download .cap

photo-gallery

An image gallery with six gradient-placeholder photos, a JSON dataset of titles and tags, and a live client-side filter. Native lazy-loading keeps the page light.

staticdatasetassetsgallery
Open in playground →download .cap

data-dashboard

Single-page dashboard reading from a YAML dataset. Exercises the core + layered-storage modules: client-side JS fetches /api/v1/data/metrics and renders rows in a table.

staticdataset
Open in playground →download .cap

composite-demo

Parent package depending on composite-base. Demonstrates route inheritance, remap, exported vs private visibility, and responseRewrite / responseHeaders enhancement.

compositeinheritance
Open in playground →download .cap

legacy-format-demo

Annex E legacy config forms read-tolerated by every conformant reactor: object-keyed-by-path routes, target: {file|dataset} shape, datasets-array storage.

legacy
Open in playground →download .cap

signed-encrypted-demo

Same content as data-dashboard, but signed (RSA-SHA256) and encrypted (AES-256-GCM with RSA-OAEP-SHA256 wrapped DEK). TEST-ONLY keys ship alongside for end-to-end decryption.

signaturesencryption
Open in playground →download .cap

Building your own?

The full source for every sample above lives incapsiums/capsium-samples. Each sample is a complete .cap source tree you can clone, modify, and repack withcapsium package pack. Pull requests welcome.