Estimate before paying
Turn an app description into token and provider-cost ranges without making a paid model call.
A budget-aware workbench for estimating, generating, checking, accounting for, and exporting small AI-built web applications.
What if an AI app builder treated cost control and source ownership as core features?
Deterministic estimating, bring-your-own provider keys, budget guards, inspectable source, conservative previews, and validated ZIP handoff keep the owner in control.
User value
PrettyBaby makes cost, scope, validation, and ownership visible throughout a small AI-assisted build.
Turn an app description into token and provider-cost ranges without making a paid model call.
Compare estimates with provider-reported usage, set budget policy, pause generation, and stop before another call.
Inspect the generated files and download a validated ZIP with a manifest and practical handoff guidance.
Features
The current generator deliberately targets small static React and Tailwind applications.
Analyze the prompt deterministically, adjust detected features, and review cost ranges, confidence, warnings, risks, and a suggested budget.
Verify an OpenAI or Anthropic key server-side, encrypt it for storage, and expose only masked metadata to the browser.
Create a validated file plan, generate static files one at a time, and attempt bounded repairs when the complete set fails checks.
Record planning, file, and repair usage with calculated zero-markup cost, then enforce run, project, or monthly limits.
Show source diagnostics and run only a narrow safe JSX subset. Unsupported output remains visibly blocked.
Inspect read-only files, produce validated revision proposals, and export allowed source without secrets or unsafe paths.
How it works
Each stage produces evidence for the next decision rather than collapsing the build into one opaque action.
Keep estimates, prompts, generation runs, source, budgets, and handoff records inside one owner-scoped workspace.
Verify and store an OpenAI or Anthropic key through the server boundary.
Describe the application, confirm detected features, and inspect the free deterministic cost range.
Set warnings or limits and decide whether the project may continue spending.
Plan the file set, generate within the static contract, validate it, and make bounded repairs when allowed.
Review source, diagnostics, repairs, usage events, calculated cost, and preview eligibility.
Generate non-mutating revision proposals or download the validated source and handoff package.
Product concept
PrettyBaby surrounds probabilistic code creation with deterministic estimating, policy, validation, accounting, and handoff.
Scope and likely provider cost should be visible before the owner decides whether to make a paid generation call.
A file set that cannot be validated or previewed safely should produce diagnostics, not a substitute that looks successful.
Source inspection and a practical export path make possession concrete rather than leaving ownership as a platform promise.
Architecture
Generated files remain untrusted project data until owner checks, allowlists, validation, preview policy, and export rules permit a specific use.
Source is stored as data, checked against narrow contracts, and never executed inside the host application as trusted code.
Provider verification, key encryption and decryption, provider calls, ZIP assembly, and GitHub token exchange remain outside the browser.
Supabase authentication, Row Level Security, ownership checks, and consistency triggers protect project-linked data.
The running preview uses a strict sandbox with no same-origin access, network, browser storage, forms, or remote resources.
Technology
Development
Estimating, constrained generation, source inspection, cost accounting, budget controls, preview diagnostics, revision proposals, and ZIP export exist. Public release evidence, full live-provider validation, GitHub writes, broader builds, and deployment remain incomplete.
Implemented
Next product boundary
Complete live end-to-end verification, decide how far generation should expand beyond static applications, connect projects to selected repositories with least privilege, and add repository writes, versioned revisions, broader builds, or deployment only after each new execution boundary is controlled.
PrettyBaby lab notes
Notes about the thinking, architecture, development, and decisions behind this work.
The repository path changed from broad OAuth authority toward a selected-repository GitHub App before write automation was added.
Preview and source export became useful precisely because unsupported or unsafe output could remain visibly blocked.
Per-call usage records and budget guards connected generation to cost control instead of treating them as separate features.
PrettyBaby's first distinctive instrument made scope and likely provider cost visible before any paid model call occurred.