Version0.7.0Verifiednot yet verifiedLicenseBSD-3-Clause

sigil-web-demo

Demo web application for sigil-web

Report a bug or suggest a feature
Readme

sigil-web-demo

Demo web application showcasing sigil-web features. Implements "Vinyl Vault", a vinyl record collection CRUD app demonstrating routing, forms, data tables, pagination, flash messages, modals, SSE streaming, and server-driven UI.

Features

  • CRUD operations on a SQLite-backed vinyl record database
  • Search and pagination with server-driven partial updates
  • Flash messages for user feedback on create/update/delete
  • Modal dialogs for delete confirmation
  • SSE streaming for live stats updates on the home page
  • Live-coding support via nREPL and SSE reload
  • CSS-in-Sigil styles using sigil-css

Dependencies

Usage

Add as a dependency in your package.sgl:

(from-git url: "codeberg:sigil/sigil-web-demo")

Or clone and run directly:

sigil deps install
sigil build
sigil run run.sgl

The app starts a web server (default port 3000) and opens Vinyl Vault in your browser.

Modules

Read the rest

(sigil web demo)

Main entry point. Call (start-demo) to launch the web server with all routes configured.

(sigil web demo db)

SQLite database layer with schema initialization, seed data, and CRUD operations:

  • init-db - Create table and seed sample records
  • list-records - Paginated listing with optional search
  • count-records - Count with optional search filter
  • get-record / create-record / update-record / delete-record

(sigil web demo views)

SXML view functions for all pages and partials:

  • page-layout - Full HTML page shell with navigation
  • home-page - Welcome page with collection stats
  • records-list-page - Searchable, paginated record table
  • record-detail-page - Single record view with edit/delete actions
  • record-form-page - New/edit form with validation

License

BSD-3-Clause

Clone

$ git clone https://codeberg.org/sigil/sigil-web-demo

Releases

v0.7.1 — latest by version, released 1 Apr 2026

All releases — 2 tags in this repository.

Source

Browse the latest source

One page per file, and every line has a permalink.

Recent commitsAtom

The last 20 commits keep a page here. Everything older lives in the clone.