← Start here · Technical reference · written for technical and AI readers

Stapilo: full technical reference

A detailed description of how Stapilo is built: the applications, how they connect, the data model, the AI agent, integrations, quality controls, security and the measured effort. All figures were measured from the codebase and the live system on 25–26 October 2026. Security-sensitive details (server addresses, keys, internal network layout) are deliberately left out.

1. At a glance

WhatMeasuredNotes
Product code~930,000 lines5,201 files: TypeScript (backend and web apps), Swift (Mac and iOS), Prisma schema. Migrations and translations excluded
Test code~476,000 lines3,173 test files; about 34% of all code is tests
Guard rules573 filesTests that read the codebase itself and fail when a structural rule is broken; 245 pinned in a registry so they can't be silently removed
Database336 tables188 enums, 1,043 migrations, one PostgreSQL database
Screens187Organised as rooms → 141 tabs → 241 sub-tabs
AI agent tools163In 27 families, all on one shared engine
Background job queues175PostgreSQL-backed queue, each with required retry and expiry settings
API437+ endpoints133 route files; input validation schemas on write endpoints
Changes6,449Since 18 February 2026 (the current codebase); 3,074 merged pull requests; an earlier version of the platform existed before

2. Applications

ApplicationWho uses itWhat it does
Owner app (web)Business owners and their teamsThe AI agent and conversation on one side, the live screen ("canvas") on the other; all building and running happens here
Customer portal (web)The businesses' own customersSign-in, courses, events, bookings, purchases, communities; served on each business's own domain or subdomain
Published sitesVisitorsPages, funnels, forms and checkouts the businesses publish, served as static files with one shared stylesheet
Preview host and app sandboxInternal isolationBusiness- and AI-made HTML and mini-apps run on separate origins, so they can never read application cookies or sessions
Academy marketplace (web)The publicA marketplace of what every Stapilo business offers
Platform admin (web)Stapilo staffPlatform operations, catalog and pricing, health
Desktop app (Electron)Business ownersThe owner's own AI assistant working beside Stapilo through a secure connection
Screen recorder and studio (native Mac, Swift)Business ownersRecords and edits video and uploads it into the business
iOS app (Swift)Community membersBuilt, not yet released
Real-time serviceAll appsLive updates to open screens

3. Backend architecture

4. Data model and multi-tenancy

5. The AI agent

6. Integrations

PaymentsFive payment provider adapters, including Stripe and Paddle plus local processors for countries without Stripe; saved cards, subscriptions, instalments where available, test orders kept out of the books
MetaAds management, audiences built from customer segments, Messenger, Instagram and WhatsApp
EmailThree separate sending streams (transactional, automations, campaigns) so bulk mail can never use the identity reserved for receipts and sign-in codes; warm-up and deliverability monitoring; received email lands in a shared inbox with spam filtering that fails closed
SMS and pushSMS sending with failure tracking; push notifications
Zoom and live videoZoom meetings and events from inside Stapilo; built-in live rooms
AI providersModels assigned by role (agent, page writing, reading media, support), configurable without code changes
Not yet builtZapier/Make connections and a public API with keys (outgoing webhooks exist)

7. Quality controls

8. Security

9. Effort

Month (2026)ChangesLines writtenLines removed
February (from the 18th)125103,76727,956
March486224,62960,205
April985253,12275,796
May1,524374,066129,425
June468267,54286,663
July27589,64125,165
August731421,555158,054
September1,232972,633639,375
October (to the 25th)545361,358284,331

Seven people contributed code in this period (the founder and six developers); 645 person-days of recorded work; the founder active on 194 of 250 days. Large removals in September and October are deliberate rewrites (the old dashboard and the old AI engine replaced). Development spans about 18 months in total: an earlier version (in a separate repository, not counted here), then the current codebase since 18 February 2026, which every figure on this page measures; at least 8 months with a team of five.

10. Code review on request

For serious investors, a technical reviewer they name can be given time-limited, read-only access to a clean copy of the codebase (without secrets or history that contains them), under a confidentiality agreement.