Skip to content

Make it yours

Replace the reference product with your application.

Make the reference app your application

FoundryLayer is the foundation. Signal is an example of what you can build on it. Keep the domain packages and replace the product vocabulary, entry surface, instructions, and customer decisions.

Brand and entry point

Set NEXT_PUBLIC_APP_NAME and EMAIL_FROM to your product, and use FOUNDRYLAYER_SITE_MODE=application to send / to /app. Auth configuration, metadata titles, and transactional email inherit the app name. Rebuild when changing public branding or site mode.

Replace apps/web/public/brand, favicons, and app icons with your own assets. Update components/brand-mark.tsx, the auth footer, workspace welcome text, and any Signal wording that is inappropriate for your product. The shipped FoundryLayer artwork is reference branding, not a right to market your product as FoundryLayer.

The optional storefront, developer docs, and Founding 50 page remain in the source. Replace or remove those routes before publishing your own branded product. Do not send your customers to the founder’s license-offer inbox. The apps/web/content/docs Markdown files are the canonical developer guides and are rendered statically at /docs.

Domain and UI boundaries

Keep Next server actions/routes thin: authenticate the request, validate external input with Zod, require current workspace permissions, then call a domain service. Client components handle interaction, not authority. Use the existing packages/ui primitives and shared product shell.

Add domain tables with workspace ownership and indexes in packages/db/src/schema, export through its schema index, generate a new migration, and review SQL. Write meaningful cross-workspace and concurrency tests. Never edit an applied migration or replace trigger-backed initialization with schema push.

AI behavior

Use packages/agents/src/definitions.ts and the existing immutable/versioned registration pattern as your entry point. First inspect the current definitions and contracts. Add a new version when changing an existing agent; preserve historical definitions for persisted runs.

Start with a narrow direct task and instructions that fit its budget. Do not introduce custom specialists or a workflow builder just to rename Signal. Keep the model registry server-owned. Treat model output and external sources as untrusted and validate before storing or dispatching anything.

An instruction change is not an authorization grant. Tool availability, membership, capability checks, exact-action approvals, and durable dispatch remain authoritative.

Your customer plans

Change product limits in packages/entitlements/src/catalog.ts and configure your own Stripe recurring price IDs. Keep subscription reconciliation and ledger accounting intact. If you offer starter credits, implement a deliberate idempotent grant policy with abuse controls and regression coverage; do not silently refill on every sign-in.

The initial release deliberately grants no automatic free allowance. credits:grant funds your first development task without altering production signup or paid entitlement behavior.

Updates

The delivery is a versioned source snapshot. Record its release commit/checksum in your repository, then commit your changes. There is no automatic upstream merge or license server. If another release is made available, review its changes in a branch, preserve migration history, resolve conflicts, and rerun tests before deploying. The proposed license includes lifetime access to updates that are released, requested privately through the support inbox with your original order identifier. It does not guarantee that future releases will be created.

Explore in context