Blok: The modular component library at the core of Auth/Technic's venture studio
Summary
Blok is, in code, what Auth/Technic's venture studio model is in concept... a wide variety of individual elements that support high-velocity development, with uniqueness and drift built in, where advances in any one direction inform, support, and enhance developments in every other. Each blok is a self-contained feature unit... a specific capability like authentication, PDF generation, email delivery, Google Analytics integration, or retrieval-augmented AI insight... that carries its own manifest, specification document, reference implementation, database migrations, and configuration schema. Consuming projects install bloks selectively, adapt them locally to the engagement's specific needs, and backport improvements to the reference library on request. The project was initiated on January 20, 2026, roughly two months into the Route Companion engagement, when the patterns recurring across that client delivery made the case for extraction into a durable infrastructure core. As of August 2026, the library contains 50 published blok definitions... 49 installable, one documentation-only... spanning identity, communication, data utilities, analytics, observability, security, business operations, and AI capabilities, all of them authored under the same multi-model AI-assisted workflow that Auth/Technic now uses for client delivery.
The Problem
A software venture studio... the business shape Auth/Technic had begun to recognize itself as during Route Companion's early milestones... needs a specific kind of leverage that neither a traditional agency nor a product company requires. The agency model assumes every engagement is bespoke; the product company assumes one codebase with many users. A venture studio sits between: every engagement is shaped to its customer, but patterns recur often enough that starting each engagement from scratch is wasteful, and copying code between engagements produces brittleness without traceability.
The question during Route Companion's delivery was not "should I build a library of reusable code." That question has a default answer... yes... and a default failure mode: libraries that try to be everything become frameworks that constrain everything. The real question was structural: what would a system look like that let each engagement begin with substantial working foundation already in place while preserving the architect's ability to shape the engagement to its actual customer? The answer needed to handle three things at once:
- Reuse without lock-in. A consuming project must be able to install a capability, adapt it to local needs, rename its fields if the domain demands different vocabulary, omit surfaces that don't apply, and continue operating without being tethered to the reference library's release cycle.
- Declaration alongside code. Code alone doesn't tell a consumer what a capability expects... which environment variables, which external services, which database schema assumptions, which peer capabilities. A reusable unit has to carry its declarations with it, or the act of installation becomes a forensic exercise.
- Improvement flow in both directions. When a consuming project improves a capability during real-world use, the reference library should be able to receive that improvement... but on the architect's timing, not automatically, because consuming projects' local customizations are intentional and worth respecting.
No existing library pattern, framework, or package-management convention covered all three. The answer had to be designed.
The Idea
Blok's architectural bet is that a reusable unit of capability is not a package. It is a declaration + specification + reference implementation, bound together and versioned as a unit, with a consumer model that treats adaptation as first-class.
Four design moves underpin this:
- The manifest as the declaration boundary. Each blok's JSON manifest lists its name, version, dependencies on other bloks, required and optional environment configuration, database migrations, and metadata. A consuming project installs a blok by copying its manifest into the project's
backend/manifests/directory; a bootstrap script registers the manifest in the project'sblok_manifestdatabase table, validates dependencies, and runs migrations. The manifest is the legible boundary between "what this blok needs" and "what the consumer supplies." - The specification as the living document. Each blok is paired with a markdown specification document that describes its architecture, API surface, integration points, and version history. The specification is the source of truth for what the blok is supposed to be, including across drift. A consuming project may diverge from the reference code; the specification stays canonical.
- Drift built in as architectural affordance. Consumers are explicitly invited to rename fields, omit endpoints, swap auth patterns, and adjust implementations to the engagement's actual needs. Divergence from the reference library is not tolerated; it is expected. The backport process is how the reference library learns from what consumers do in real use, without overriding the consumers' own judgment about what their engagement actually requires.
- Backport-on-request as the upgrade flow. When a consuming project produces an improvement during real-world use, the improvement is ported back into the Blok reference repository only by explicit human decision, with the version history note and commit message linking to the source project. This preserves the architect's control over what enters the reference library and what stays as a consumer-specific adaptation.
The Implementation
The authoring and versioning model
Each blok lives in the Blok reference repository as a paired structure: the markdown specification at backend/docs/dev/bloks/NNN-name.md, and the JSON catalog entry at backend/blok-catalog/blok-NNN.json. A blok's version follows semantic versioning, bumped per-blok rather than library-wide... there is no "Blok 2.0.0" release event; instead, the library is a continuously-evolving set of independently-versioned components. When a blok's implementation or migrations change, its version increments, its specification is updated with a version-history entry, and consumers pick up the change on their own cadence.
Since July 2026 that discipline is machine-enforced rather than judgment-guarded. A fidelity gate runs at pre-push and checks, among other things, that the specification, catalog entry, and installed manifest agree on version; that every file a blok claims to provide is declared and every declared verbatim file carries a byte-exact sha256 in the catalog; and that a blok's files import another blok's files only when that dependency is declared. The gate's first import-ownership run surfaced 73 undeclared cross-blok edges; all were triaged to zero the same day. A written lifecycle document is the companion authority: it names the four routes a blok change can travel (install, backport into the reference, port outward to a consumer, and hand-woven review for consumers that predate the manifest system) and what each route obliges.
The consumer pattern
A consuming project integrates Blok through one of two paths: cloning the Blok repository as a starting scaffold, or referencing it as a git submodule pinned to a specific commit. In either case, the project selectively copies individual blok manifests into its own backend/manifests/ directory, then runs a bootstrap script that registers the manifests in the project's database and validates dependency graphs. After installation, the consuming project owns its copy... the reference library does not push updates; consumers pull them deliberately after reviewing change notes. As of August 2026, five consuming projects track their installs through manifests and two earlier Blok-descended builds take changes through hand-woven review. The traffic genuinely runs both ways: during July 2026, improvements discovered in three different consumers were backported into the reference library, including one that took a blok through a major version by adopting a consumer's better-evolved design.
The Auth/Technic project itself is Blok's most-drifted consumer. Its submodule pointer to vendor/blok is an explicit review gate: visitors interacting with Mason (Auth/Technic's RAG-powered assistant) do not see fresh Blok content until the submodule pointer is bumped on purpose, after human review. That pin-and-review pattern is how Auth/Technic controls the information surface it exposes to the public, and it is an instance of the broader principle: Blok is a source; consumers decide what and when to absorb.
Library composition
The 50 bloks published as of August 2026 skew deliberately toward infrastructure rather than business logic, though the newest additions push into the business-operations and operations-resilience tiers. Grouped by domain:
- Core and foundation – the mandatory bloks every project starts with: core infrastructure (Docker, FastAPI, PostgreSQL, the manifest system), UI foundations (design tokens, Chakra UI 3 theming, layout components).
- Identity and access – self-hosted authentication, guest-sharing flows, PWA support for mobile install patterns. An earlier managed-provider authentication blok (Clerk) was retired in July 2026 as superseded by the self-hosted option.
- Communication – transactional email, transactional SMS, toast notifications, cookie consent, realtime channel (WebSocket-based live updates).
- Data and operations – time handling, form validation, CSV import/export, organization backup, per-tenant logical backup and restore, task monitoring, API connectivity, workflow engine.
- Media and documents – markup file rendering, PDF generation, media library, QR code generation, QR camera scanning, document publishing, Mermaid diagram editing, code anatomy visualization, customer guides, admin guides.
- Analytics and observability – Google Analytics integration, live reporting, system dashboard, error tracking (env-gated Sentry with a PII scrubber applied before any event leaves the process)... the last published as documentation-only, because the reference repository has no deployment for error tracking to attach to.
- Security and compliance – security assessment tooling, secrets generation, e-signature acknowledgment flows.
- Business operations – billing and subscriptions, invoicing, client management, scheduling and appointments.
- AI and knowledge – AI insights with Voyage-embedded RAG over a document corpus (Blok 010), which is what powers Mason on Auth/Technic.
- Infrastructure services – Redis support, Cloudflare R2 storage, Mapbox geocoding (extracted directly from Route Companion's work).
- Marketing surfaces – blog module, testimonials, marketing suite, SEO prerendering, user portal, contact manager.
A reader curious about any individual blok's architecture, API surface, or version history can ask the Mason assistant on authtechnic.com and receive a cited answer drawn from the specification document itself. The case study does not duplicate that material.
The library continues to grow. Candidates for future extraction emerge from both client engagements and from exploratory personal projects in the sand-scale zone of the Auth/Technic portfolio. One current candidate is a zero-dependency circuit-diagram rendering engine... obstacle-aware channel routing, junction-versus-crossing detection, domain-neutral at the core... built for a personal electronics-catalog project and potentially useful to any future consumer that needs clear schematic visualization. Whether it becomes a blok depends on a second consumer asking for the same capability, per the practice's general rule that a pattern becomes a blok when it has two homes, not one.
Notable bloks in the Auth/Technic narrative
A small number of bloks are load-bearing for the Auth/Technic story beyond the library itself:
- Blok 010... AI Insights with RAG. The retrieval-augmented-generation capability that powers Mason, Auth/Technic's visitor-facing assistant. The corpus Mason retrieves against is the Blok specification library plus AT's case studies and practice documents. Blok 010 thus closes a loop... the library describes itself through the library.
- Blok 017... Self-Hosted Auth. The reference implementation of the JWT + bcrypt + PIN-based authentication system first built during Route Companion's delivery for Ablitt's, extracted and generalized for reuse. Auth/Technic's architectural bet on "build auth when the role count and device patterns warrant it" is encoded here as a ready-to-install option.
- Blok 034... Mapbox Geocoding. Directly extracted from Route Companion's geographic stack. One of the clearest examples of the venture-studio flow in action: a capability built for a specific client engagement, abstracted into a reusable infrastructure unit, and immediately available for the next engagement that needs it.
The AI-assisted authoring pattern
Blok itself is authored in the same multi-model workflow that Auth/Technic uses for client delivery... GPT for ideation and design exploration, Claude Code for primary implementation and specification authoring, Codex for review passes, Claude for completeness cross-checks on the review output, and the architect inserting direction at every stage. This is not incidental. The pace of Blok's growth... fifty bloks in a little over six months from the initial commit... is a function of the workflow, not of any solo developer's unassisted output. What Blok demonstrates is not "how much one person can build"; it demonstrates "what the multi-model AI workflow produces when pointed at an infrastructure library by an architect who knows what shape he wants."
The Outcome
Blok exists as active infrastructure. Auth/Technic's marketing site and Mason assistant are built on top of it. Route Companion's patterns seeded it and its direct extractions (Mapbox geocoding, self-hosted auth, contact management patterns) are now available for future engagements. The cadence is working: new engagements can begin with substantial working foundation in place, and the reference library continues to improve as real-world use surfaces what each blok actually needs to be.
Three specific outcomes are worth naming:
- The first demonstration of the venture studio model operating as intended. Auth/Technic is the "permanent office" floor of the skyscraper; Route Companion is a paying tenant; Mason (running on Blok 010) is an internal product that also serves the marketing property. All three sit on the same core. When the core improves... when Blok 010's RAG retrieval gets better, or when Blok 017's auth grows a new capability... every floor inherits the improvement at the consumer's chosen cadence.
- A self-hosting loop. Blok 010 RAG is what powers Mason; Mason's corpus includes the Blok specification library; therefore Blok describes itself through itself. Visitors asking Mason about any blok receive citation-verified answers drawn from the spec of the blok they asked about. The library is legible to its own assistant.
- The productization of the AT delivery workflow. The backport process, adaptation manifest design, and per-blok versioning are all operational documentation of how Auth/Technic works internally. These patterns now travel into client conversations where they carry concrete weight: "this is how we manage code that moves between engagements" is a real answer Auth/Technic can give, with an example a prospect can read.
Constraints and What We Would Do Differently
The Blok documentation is unusually frank about what doesn't yet work. Three tensions are named directly in the project's own planning documents:
- Clean-room extraction of individual bloks is harder than the design implies. The reference repository has all bloks integrated; extracting one for a specific consumer that only wants a subset requires surgical work that has not yet been automated. A planned "per-blok downloadable branches" approach is proposed but not shipped. Reality: pulling a blok out for a new consumer is still a manual operation today, though the entanglement itself is being worked down blok by blok... the authentication blok was de-entangled in July 2026 and is now installable verbatim without dragging six other bloks with it.
- Adaptation tracking has landed, in a simpler shape than first designed. The original four-phase adaptation-manifest design was superseded in July 2026 by a
declared_adaptationsconvention, now ratified across all consuming projects: a consumer's manifest carries one entry per file whose installed bytes deliberately differ from the reference, with a note saying what diverges and why. The rule cuts both ways... a port from the reference must not flatten a consumer's known, wanted modifications, and those modifications must not be mistaken for drift needing backports to projects that don't want them. The later phases of the original design, assisted sync and AI-assisted merge, remain future work. - Cross-consumer coherence is now measured, but still manually applied. Since late July 2026, every verbatim file in the catalog carries a byte-exact sha256, and consuming projects run hash-based drift reports against that store, so a mismatch between a consumer and the reference is detected rather than stumbled upon. Applying a change across consumers is still manual: each consumer takes its own port, on its own cadence, with declared local divergences protected rather than overwritten. The assisted-fix half of the proposed Blok Sync System remains unbuilt.
These are the honest constraints. The project's own documentation describes them in the language of "what we're figuring out at scale," which is the correct framing... Blok is not a finished thing pretending to be a finished thing. It is active infrastructure being shaped by live use, with clear visibility into where the shape is still forming.
A fourth honest note: the "drift is expected" principle is itself a design commitment that carries operational cost. Auth/Technic's own marketing website has drifted materially from Blok's baseline through local customizations made during its build. Some of those customizations should probably become first-class patterns back in Blok; others are genuinely specific to that site. Deciding which is which, case by case, is real ongoing work.
Related
- Auth/Technic Practice document – establishes Blok as the skyscraper-core metaphor and the venture studio model Blok enables.
- Route Companion case study – the client engagement that catalyzed Blok's extraction, and the source of multiple specific bloks now in the library (self-hosted auth, Mapbox geocoding, contact management patterns).
- Cuebe case study – predates Blok; represents what a build looked like before the library existed, and what a future Cuebe-class build would now start from.
- Auth/Technic website case study – the primary consumer of Blok, the permanent-office floor of the skyscraper, and the property where Mason (powered by Blok 010) lives.
- Individual blok specifications... cited directly by Mason on authtechnic.com when asked about any specific capability; not duplicated here.