Template Studio / Solution brief
SOLUTION / TEAM EXPERIENCE

Homebase Template Studio

Signing templates.
Ready for the
whole team.

From sponsor PDF to reviewed template draft in one shared workspace. AI proposes the fields. Your team checks, corrects, and approves.

Demo & reviewer access · Studio requires Sign in with Vercel; repo is public.

No founder handoff

Teammates prepare documents without operating a personal Claude session.

Review on the page

Correct field position, signer and requiredness directly on the PDF.

Controlled from start to finish

Immutable revisions, identity-linked approval, and spend guardrails.

Built for Homebase operations.

Begin with the internal team. Existing production signing stays separate. Extend to customers only after a supervised pilot and a real provider integration.

Assessment scope: synthetic documents, signed-in access and simulated signing. No real signing templates are created. Prepared by Alex Kim, Co-Founder & CPO.

HOMEBASE / TEMPLATE STUDIO1 / 4
ARCHITECTURE / PLATFORM DECISIONS
01

Customer problem

Customer & starting pointHomebase teammates preparing sponsor signing templates. Today: founder-run Claude skills, Python document scripts, Cloudflare file staging and Dropbox Sign.

Pain → valueChat, tool calls and manual review depend on specialist context. Studio gives the team a persistent, visual workflow with enforced approval and a reusable audit trail.

02

From personal workflow to shared application

Current Founder operated
Claude skill + Python document tools

Extraction, interpretation, overlays and review in chat

Cloudflare staging + Worker

Existing document storage and signing integration

Dropbox Sign → Homebase

Existing signing workflow stays unchanged

Template Studio Implemented app
Vercel Functions · Python/FastAPI

Jinja UI, pypdf + PDFium, field editor, review and approval

Stage A → Stage B: page draft + image-overlay self-check
AI Gateway → OpenAI: OIDC credential, model calls
In-app adapter: simulated create + read-back check
Cloudflare R2

Sealed PDFs, immutable revisions, head pointer, spend ledger; conditional writes

Why hybrid: Vercel owns the team workflow and inference orchestration; R2 owns documents and state. The new app does not call Dropbox Sign or require a new signing Worker, D1 or Sandbox.
03

Three intentional Vercel choices

PrimitiveWhy it fitsTrade-off
FunctionsHosts Python 3.13/FastAPI, document parsing and per-page request APIs without a dedicated server.Time-bounded work. Browser-driven drafting is resumable while a Studio tab is open, but not a durable server queue.
AI GatewayRoutes Stage A/B calls to OpenAI using Vercel OIDC; the server checks the route and enforces a $20 spend cap.Model quality depends on the app's evidence, prompts and visual self-check. The model is fixed in code (gpt-5.4-mini), with no model selector.
Preview DeploymentsBranch builds support repeatable UI/code review before merging to production.Previews are not behind Vercel Authentication and share production's sign-in app and synthetic-only R2 bucket. Separate preview data is still needed.

Access: Vercel Authentication is off. Sign in with Vercel (OAuth/PKCE) gives identity, the verified email on each review and approval, not authorization: any Vercel account can sign in, so the hosted studio stores synthetic documents only. Fluid Compute: enabled, with workload benefit not verified.

HOMEBASE / TEMPLATE STUDIO2 / 4
DEMO / ADOPTION / MEASUREMENT
04

Working demo & source

Application source: main 60fa80a with PRs #13–#29, #31 and #34 merged; app code validated at b4a7dfd, plus #34's demo picker. Named reviewer access is not set up.

  1. 01Set up

    Pick a demo customer, add a title, choose signers and upload a synthetic PDF.

  2. 02Start drafting

    Click Start drafting. Watch each page drafted, then checked.

  3. 03Review and save

    Correct a field, save, and reopen the exact revision.

  4. 04Approve

    Confirm every page, and each page AI left unchecked. Edits invalidate approval.

  5. 05Simulate & verify

    Reapprove, create in simulation, and watch the create and verify steps.

Drafting continues while a Studio page remains open; there is no server-side queue, and a deploy that changes the model route or prompts stops a running draft. No signing-provider template is created.

05

Rollout plan

Preview

Branch deployment with synthetic PDFs, Sign in with Vercel and simulated signing.

Validate

Run app, browser and AI checks; compare draft quality, page coverage and review safety against an agreed reference.

Canary

One Homebase teammate and one supported document family. Measure corrections, time and failures.

Cutover

Use Studio as default only after supervised acceptance. Build and approve a real signing integration separately.

Rollback

Stop new Studio work, preserve R2 revisions and fall back to the existing Claude-based process. Reconcile any future external create separately.

06

What success looks like

Technical quality

Complete supported-page coverage; correct field type, signer and placement; reliable conditional saves and revision-bound approval; logged latency, failures and AI spend.

Business outcome

A teammate finishes without founder intervention, with less manual placement, fewer restarts, and lower cost per accepted draft at equal reviewed quality.

Canary gate: no critical missing signature, signer mix-up or approval bypass in the agreed cases; successful unaided reviewer workflow and safe interrupted-job recovery.

These are proposed outcomes, not measured savings or established accuracy. Compare initial AI draft, self-checked draft and human-final revision separately.

HOMEBASE / TEMPLATE STUDIO3 / 4
DELIVERY / RISK / EVIDENCE
07

Limitations & customer considerations

Supported PDF boundaries

25 MiB, 400 pages, 4 million characters and a 3-minute limit. Rotated pages are not sent to the model and must be confirmed by hand.

AI quality remains provisional

On the development documents, both trial models still miss required signing fields or signers. Human review stays required.

Hosted-only drafting

Up to four page requests run concurrently while Studio is open. No local drafting or independent server queue.

R2 state and privacy

Conditional writes protect revisions; verify conflicts, origin rules, model-provider exposure and access scope for pilot use.

Reviewer access

Sign in with Vercel identifies each reviewer, but any Vercel account can sign in: there is no allowlist. Storage is synthetic-only for that reason.

Simulated creation only

Each create is recorded, then read back from the studio's storage. No HelloSign/Dropbox Sign API operation occurs.

08

Build & validation

Claude Design

Template Studio Clean v2.3 prototype, layout and interaction handoff.

Claude Code

FastAPI/Jinja implementation, AI integration, debugging and regression tests.

Executed automated checks

Local (October 15, 2026): 698 pytest tests, Ruff and repository checks pass on b4a7dfd, and 700 pytest tests with #34 (1ca15d3); GitHub CI is green.

Browser harness

Synthetic PDFs with fake R2 and Gateway: resume and takeover, sign-out cleanup, malformed state and safe create retry.

Two-pass AI evaluation

Same analysis service for app and eval: Stage A drafts; Stage B reviews image overlays; human-final corrections remain separate.

Model trials · provisional

gpt-4.1 was PARTIAL on two development cases; gpt-5.4-mini drafted both COMPLETE. Against UNREVIEWED proposed references (baseline-derived: agreement, not accuracy), both are still blocked on critical findings.

Initial page draftOverlay self-checkHuman-approved revision
Readiness · release snapshot, October 15, 2026

Done: PRs #13–#29, #31 and #34 merged, 700 tests passing, and signed-in drafting, review, approval and simulated create on synthetic PDFs, checked on a preview and again on production before #34. Still to do: named reviewer access, separate preview data, and agreed geometry tolerances.

No real signing integration. Model scores stay provisional until geometry tolerances are agreed. A head-to-head with the earlier claude.ai skill workflow (Claude Opus) on held-out documents shows good progress toward internal use: the app drafted each document in a few minutes of processing, at a reported model cost under $1, but made more errors than Opus and needs more refinement to match it. The write-up and model decision are pending.

Product references: Functions · AI Gateway · Preview Deployments · Sign in with Vercel.

HOMEBASE / TEMPLATE STUDIO4 / 4