> demian.app
The base domain origin and the identity authority behind every subdomain app.
Objectives
-
Serve the public site at
demian.appand hold the content the site presents. -
Be the identity authority for subdomain apps without
sharing a
.demian.appcookie. - Carry the contact ladder, storefront, calendar and admin inbox in one small, auditable service.
Qualities
- One Go binary with no dependencies outside the standard library; content is read into memory at startup.
- Plain HTML, CSS and JavaScript: no React, Vite, bundler or runtime package manager.
- A compiled route table and a loopback-only origin behind the gatekeeper. A half-deployed or malformed content tree fails loudly instead of serving a partial site.
- Passwordless, email-verified login; hashed session tokens; one JSON state file; strict security headers and a tight content policy.
Technical details
A single Go service that loads its content once and serves it by exact URL path.
-
internal/siteholds the in-memory content cache and routing;internal/appholds the contact, login, profile, inbox, limits and storefront handlers;internal/catalog,internal/payments,internal/store,internal/mailerandinternal/hashingcarry the rest. -
The identity handoff stores a one-time code bound to an
app and its fixed return URL. The app exchanges it over
loopback at
127.0.0.1:8083with its app token; codes are single-use and expire after 60 seconds. -
The storefront works in invoice mode, or through the
internal PayPal relay when configured;
/calendar.icsexposes a read-only subscription feed.