A knowledge base and member archive where every page has an owner and every search is measured
50
Handbook and guide pages in the sample workspace, each with an owner and a review date
107
Public-domain essays across 24 journal issues from 1884 to 1930, credited to their real authors
11
Automated tests, from workspace isolation and safe page rendering to search and version restore

The problem
Team handbooks go stale quietly. Nobody knows who owns a page or when it was last checked, so people stop trusting it and ask a colleague instead. Search usually returns a page title with no context, and nobody can see what people searched for and did not find.
Clubs, societies and publishers have the opposite problem with their archives: years of journals sit as a list of scanned PDF links that cannot be searched properly or read comfortably on a phone.

The solution
Cairnbook gives every page an owner and a review date, with a badge that turns amber when a review is due and red when it has lapsed, and a trust score for the whole workspace. Every save is kept, with a line-by-line comparison and one-click restore.
Search runs on SQLite full-text indexing with word stemming and weighted ranking, opens with Ctrl K, and highlights matches in context and inside the page. Searches that find nothing are logged, so admins can see what is missing and write it. Archives get an issue shelf by decade, contents pages and a reading view with progress.

How it is built
Model, view, controller
models.js owns the schema and full-text indexes, controllers.js handles permissions, rendering and validation, server.js declares routes, and a plain JavaScript front end calls the JSON API.
Search
An FTS5 index with Porter stemming and BM25 ranking weighted towards titles, kept in sync by database triggers, plus a trigram index on titles for typo suggestions. User input is tokenised and quoted before it reaches the query, so punctuation cannot break it.
Content safety
Pages are written in Markdown and rendered on the server with raw HTML escaped, unsafe links removed and wiki links resolved. Tests check that scripts and event handlers cannot get through.
Roles and spaces
Members read, editors write and verify, admins manage people and see reports. Spaces can be public, for members or for staff only, and every query checks the workspace and visibility.
Sample workspace
A fictional walking club with a 42-page committee handbook, a public members guide and a journal of real public-domain writing. Visitors sign in as a member, editor or admin, and the sample resets every night.
Technologies
Inside the working demo
- Wiki spaces with a page tree, templates, a slash menu and links between pages with a Linked from list.
- Version history with a line-by-line comparison and one-click restore, and protection against overwriting a colleague's newer edit.
- Page owners, review intervals, verification badges and a workspace trust score.
- Ctrl K search with highlighted snippets, filters by space and decade, typo suggestions and in-page match highlighting.
- A journal archive with an issue shelf, contents pages, a reading view, reading progress and citations.
- An admin dashboard with failed searches, top searches, unread pages and member management.
Cairnbook is a fictional brand built by Praxline to show what a working product in this category looks like. Every person, firm, club, lot and figure in it is sample data, the demo is not indexed by search engines, and nothing on it is a real transaction.
More from the portfolio
Need a knowledge base, wiki or searchable archive?
Start with a 25-minute call: what you do, who uses it, and what it needs to handle. You get a written scope and a fixed price before any work starts.

