{"catalogRevision":"cat_726f873af6f566cc","recipeId":"page:blueprints:developer-tools:documentation-site:next-js","recipeRevision":"r1","canonicalPath":"/blueprints/developer-tools/documentation-site/next-js","label":"Developer tools: documentation site using Next.js","title":"How to build a documentation site for developer tools with Next.js on Ample","family":"Industry blueprint","summary":"A documentation site blueprint for developer tools built with Next.js on Ample. Domain schema: customer_workspaces (name, plan, api_key_count): customer organizations; doc_versions (product_version, title, object_key, published_at): versioned reference docs and guides; sdk_releases (language, version, changelog_object_key, released_at): SDK releases and changelogs; customer_assets (workspace_id, title, object_key, visibility): customer-specific artifacts; state_transitions (record_type, from_state, to_state): the allowed state machine. Public information: versioned API reference and guides, SDK release notes, status page links. Kept out of scope until handling is reviewed: customer API keys and usage logs, private integration details. API keys and usage logs are secrets or personal data; keep them out of documentation workflows. Technical basis verified on Next.js: a workspace-scoped table, an explicit state machine (draft to review to published) that rejects invalid transitions, and a cross-workspace read that returns nothing (transitions=true isolation=true).","representativeQueries":["Developer tools: documentation site using Next.js","Where can I host Developer tools: Documentation site built with Next.js?","I need a genuinely specialized documentation site workflow covering organization access, versioned technical docs and build artifacts."],"breadcrumbIds":["discovery","industry","industry:software-and-media","industry:developer-tools","page:blueprints:developer-tools:documentation-site:next-js"],"breadcrumbs":[{"id":"discovery","label":"Agent hosting discovery","canonicalPath":"/discover/discovery","kind":"root"},{"id":"industry","label":"Industries and specialties","canonicalPath":"/discover/industry","kind":"facet"},{"id":"industry:software-and-media","label":"Software and media","canonicalPath":"/discover/industry/software-and-media","kind":"group"},{"id":"industry:developer-tools","label":"Developer tools","canonicalPath":"/discover/industry/developer-tools","kind":"atom"},{"id":"page:blueprints:developer-tools:documentation-site:next-js","label":"Developer tools: documentation site using Next.js","canonicalPath":"/blueprints/developer-tools/documentation-site/next-js","kind":"recipe"}],"parentIds":["industry:developer-tools","workload:documentation-site","stack:framework-next-js","intent:deploy-web-app"],"parents":[{"id":"industry:developer-tools","label":"Developer tools","canonicalPath":"/discover/industry/developer-tools","kind":"atom"},{"id":"workload:documentation-site","label":"Documentation site","canonicalPath":"/discover/workload/documentation-site","kind":"atom"},{"id":"stack:framework-next-js","label":"Next.js","canonicalPath":"/discover/stack/framework-next-js","kind":"atom"},{"id":"intent:deploy-web-app","label":"Deploy web app","canonicalPath":"/discover/intent/deploy-web-app","kind":"atom"}],"resourceRequirements":["primitive:compute","primitive:postgres","primitive:cdn"],"infrastructureRequirements":[{"primitiveId":"primitive:compute","label":"Compute","canonicalPath":"/discover/primitive/compute","status":"verified","summary":"Apps run in isolated x86_64 Firecracker microVMs; sizes are the priced VM sizes."},{"primitiveId":"primitive:postgres","label":"Postgres","canonicalPath":"/discover/primitive/postgres","status":"verified","summary":"Managed PostgreSQL 16 with pgvector runs in its own microVM and is auto-provisioned when an app needs a database and no DATABASE_URL is supplied."},{"primitiveId":"primitive:cdn","label":"CDN","canonicalPath":"/discover/primitive/cdn","status":"verified","summary":"A published bucket's objects are served from its public URL; set Cache-Control when uploading to control caching. App responses are served by the app."}],"framework":"Next.js","workload":"Documentation site","industry":"Developer tools","releaseStatus":"published","supportStatus":"verified","executionStatus":"ready","docsOnly":false,"prerequisites":["A Next.js project (next build then next start -H 0.0.0.0 -p $PORT on the node-22 template)","A PostgreSQL driver reading DATABASE_URL (auto-provisioned when omitted)","Bucket credentials from `ample bucket create` passed as encrypted S3_* environment variables and a published bucket for public assets (CDN_*)","A review of which developer tools data classes may be handled at all; this blueprint models public information only"],"testedConfiguration":{"template":"node-22","runtime":"node","size":"s-1vcpu-1gb","install":"npm install","build":"npm run build --if-present","start":"npm run start"},"inputSchema":{"additionalProperties":false,"properties":{"env":{"description":"Encrypted environment variables","items":{"pattern":"^[A-Z][A-Z0-9_]*=.*$","type":"string"},"maxItems":50,"type":"array"},"name":{"description":"App name","maxLength":63,"minLength":1,"pattern":"^[a-z0-9-]+$","type":"string"},"path":{"description":"Project directory or ample.toml service","maxLength":512,"minLength":1,"type":"string"},"release_command":{"description":"Migration command run before activation","maxLength":512,"type":"string"}},"required":["env","name","path"],"type":"object"},"outputSchema":null,"workflowSteps":[{"title":"Model the developer tools domain","body":"Create the tables customer_workspaces, doc_versions, sdk_releases, customer_assets, state_transitions. Customer organizations lives in customer_workspaces; keep the sensitive classes (customer API keys and usage logs, private integration details) out of this schema."},{"title":"Workflow step 1","body":"Model versioned documents with a state machine (draft, review, published) scoped to a product version"},{"title":"Workflow step 2","body":"Publish assets for released versions to the CDN bucket"},{"title":"Workflow step 3","body":"Serve only published versions publicly"},{"title":"Workflow step 4","body":"Deploy and verify the version list and a published page"},{"title":"Deploy","body":"Run the synchronous deploy once and read the result. Re-running with no change is a no-op.","command":"ample deploy . --name <app-name> --public --env S3_ENDPOINT=... --env S3_REGION=... --env S3_BUCKET=... --env S3_ACCESS_KEY_ID=... --env S3_SECRET_ACCESS_KEY=... --env CDN_PUBLIC_URL=..."},{"title":"Verify","body":"Run the pattern self-test(s) from the example (/p/relational-records) and your own acceptance checks for the developer tools workflow.","command":"ample logs <deployment_id> --kind build"}],"examples":[{"title":"Next.js pattern fixture","description":"Verified relational records basis for this blueprint.","sourceRef":"tests/deploy-canaries/next-js-patterns"}],"successChecks":[{"description":"app responds on its public URL","kind":"http_get","path":"/","expect":"ample canary next js patterns"},{"description":"relational-records self-test from the example","kind":"http_get","path":"/p/relational-records","expect":"see the pattern fixture checks"}],"limitations":["The technical basis (relational records on Next.js) was verified with the pattern fixture; the developer tools schema and workflow are an original design for this blueprint, built on that basis.","API keys and usage logs are secrets or personal data; keep them out of documentation workflows.","Verified on the node-22 template at s-1vcpu-1gb.","Managed PostgreSQL 16 with pgvector.","Buckets speak the standard S3 API (PutObject and GetObject with path-style addressing are checked by the fixture); `ample bucket upload-url` returns presigned upload URLs."],"costEstimate":{"currency":"USD","monthlyAmount":10.0,"authoritative":true,"basis":"size prices from pricing.toml (loaded by the API) at build revision 3a3dfe06151688a20d397caac2aa66e562c23eb0","components":[{"name":"app server","size":"s-1vcpu-1gb","quantity":1.0,"monthlyAmount":5.0},{"name":"managed PostgreSQL database","size":"s-1vcpu-1gb","quantity":1.0,"monthlyAmount":5.0}],"note":"Upper-bound monthly price of the tested sizes. Buckets are allocation-priced per quota and not included."},"evidenceSummary":[{"kind":"canary_run","summary":"Next.js pattern fixture deployed on Ample (next build then next start -H 0.0.0.0 -p $PORT on the node-22 template); the relational records checks passed: a workspace-scoped table, an explicit state machine (draft to review to published) that rejects invalid transitions, and a cross-workspace read that returns nothing (transitions=true isolation=true). The blueprint's Developer tools schema and workflow below build on that verified basis.","observedAt":"2026-11-05T22:38:23Z","implementationRevision":"da3e37255e5a","expiresAt":"2027-05-04T22:38:23Z","scope":{"checks":["/p/relational-records"],"pattern":"pattern:relational-records","template":"node-22"}}],"lastVerifiedAt":"2026-11-05T22:38:23Z","mcpBinding":{"registryRef":"mcp:ample_deploy","toolName":"ample_deploy","schemaHash":"0802c329be823fa0695460cf73206d47a6fa0efa57417c386c34b6614a92ea5f","observedAt":"2026-11-06T06:16:17.558478534+00:00","implementationRevision":"4558e9477d09","requiredScopes":["servers:write","databases:read","buckets:read"],"bindingState":"current"},"unknowns":[],"formats":{"html":"https://ample.computer/blueprints/developer-tools/documentation-site/next-js","markdown":"https://ample.computer/blueprints/developer-tools/documentation-site/next-js.md","json":"https://api.ample.computer/v1/catalog/recipes/page%3Ablueprints%3Adeveloper-tools%3Adocumentation-site%3Anext-js"},"nextActions":[{"actionId":"browse-catalog","label":"Browse the catalog index","operationId":"catalog_index","method":"GET","relativePath":"/v1/catalog","origin":"api","parameters":{},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"search-recipes","label":"Search published recipes by intent, stack and constraints","operationId":"search_recipes","method":"POST","relativePath":"/v1/catalog/search","origin":"api","parameters":{"body":{"limit":5,"query":"Developer tools: documentation site using Next.js"}},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"plan:page:blueprints:developer-tools:documentation-site:next-js","label":"Prepare a side-effect-free deployment plan for an authorized project","operationId":"plan_deployment","method":"POST","relativePath":"/v1/catalog/plan","origin":"api","parameters":{"body":{"inputs":{},"projectId":"<workspace or server id you own>","recipeId":"page:blueprints:developer-tools:documentation-site:next-js","recipeRevision":"r1"}},"requiresAuthentication":true,"requiresApproval":false},{"actionId":"auth-setup","label":"Read the existing agent authentication setup","operationId":"existing_auth_setup","method":"GET","relativePath":"/mcp/setup","origin":"api","parameters":{},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:industry:developer-tools","label":"Browse Developer tools","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/industry%3Adeveloper-tools","origin":"api","parameters":{"nodeId":"industry:developer-tools"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:workload:documentation-site","label":"Browse Documentation site","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/workload%3Adocumentation-site","origin":"api","parameters":{"nodeId":"workload:documentation-site"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:stack:framework-next-js","label":"Browse Next.js","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/stack%3Aframework-next-js","origin":"api","parameters":{"nodeId":"stack:framework-next-js"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:intent:deploy-web-app","label":"Browse Deploy web app","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/intent%3Adeploy-web-app","origin":"api","parameters":{"nodeId":"intent:deploy-web-app"},"requiresAuthentication":false,"requiresApproval":false}]}