Code402 is the product and commercial home. HCRB is its API and tools service. Both are operated by Juana Limited.

Lattice — Local-First On-Premises Team Knowledge Base

On-Premises Software · Operated by JUANA LIMITED (UK Co. No. 14043409)

A local-first desktop app for Markdown knowledge bases that runs entirely on your own infrastructure. Open any folder of .md files or an existing Obsidian vault, and share team vaults through the zero-dependency self-hosted Lattice Server so notes never leave your network.

Licensed by written quote and onboarding from JUANA LIMITED (no self-serve checkout). Sending an enquiry creates no payment obligation. Software runs on your own machines and servers; Juana Limited does not host your vaults or access your files.

Architecture & Core Capabilities

Desktop · Win / macOS / Linux

Local-First & Obsidian-Compatible

Each person edits a plain folder of Markdown files on local disk, works offline, and syncs over HTTPS when the server is reachable. Ignores .obsidian/, honours attachmentFolderPath and daily-notes folders, supports [[wikilinks]], embeds, backlinks, YAML frontmatter, global and local graphs, and full-text search, and imports existing Obsidian vaults via vault import.

Node.js 20+ · Zero Dependencies

Self-Hosted Lattice Server

Has no npm dependencies and runs on any VM, NAS, or PC via Linux systemd, Windows startup task (NETWORK SERVICE), or Docker, using native TLS or behind IIS, nginx, Caddy, or Traefik. Vaults live as plain files (vaults/<id>/files/) with history in meta/, so existing backups, git, or file shares work as usual.

Three-Way Line Merge

Concurrent Merging & Version History

Edits to different lines of the same note merge automatically. Overlapping edits keep both versions side-by-side as a conflict copy and never silently drop work. Every file version is kept on the server for diff and restore, every write requires If-Match / If-None-Match preconditions, and server-deleted open files move to .lattice/trash/ for 30 days.

Governance, Security & Admin Policy Locks

Roles & Audit Logs

  • Vault & server roles: Viewers download and read, Editors change files, Owners manage vault members, and Server Admins create vaults, manage users, and revoke sessions via signout.
  • Audit logs: Sign-ins, file changes, and admin actions are recorded locally on your server in audit.log.
  • Hardened sign-in: Passwords are hashed with scrypt; random 256-bit session tokens are stored server-side only as SHA-256 hashes (90-day inactivity expiry) and encrypted on the desktop with the OS credential store (DPAPI on Windows). Failed sign-ins are throttled at 8 per 15 minutes per user and address.

Admin Policy Locks & Network Boundary

  • Machine-enforced policy.json: Deploy locked-down rules users cannot change inside the app via Group Policy, Intune, or your configuration tool (%ProgramData%\Lattice\policy.json, /Library/Application Support/Lattice/policy.json, or /etc/lattice/policy.json).
  • Policy controls: Pin preset or allowed server URLs, disable local-only vaults, block remote images and media (off by default), and keep optional Claude Code terminal integration disabled by default or routed through an internal gateway, Bedrock, or Vertex.
  • Zero telemetry: The desktop app connects only to your configured Lattice Server(s) — no telemetry, no update checks, no CDN fonts or scripts, and a sandboxed renderer with contextIsolation and DOMPurify. Lattice Server initiates no outbound connections.

On-Premises Licensing (GBP · Annual)

LicensePriceIncludedNext step
Team Self-Hosted License£299/yearUp to 10 seats. Desktop app (Windows, macOS, Linux) + zero-dependency Lattice Server, concurrent merging, version history, roles, audit logs, and admin policy locks.Request a quote
Enterprise On-Prem License£999/yearUnlimited seats. Desktop app + self-hosted Lattice Server, Group Policy / Intune machine policy templates, Linux systemd / Windows service / Docker deployment files, roles, and audit logs.Request a quote

Scope & boundaries. Lattice is distributed by Juana Limited · UK Company No. 14043409 · Coventry, United Kingdom (JUANA LIMITED, UK Co. No. 14043409) as self-hosted software. You run the desktop clients, server host, internal TLS configuration, and backups on your own infrastructure. No external hosting, response-time commitment, or third-party badge is implied unless agreed in writing.