{"catalogRevision":"cat_f13ab9a494120b5e","recipeId":"page:blueprints:logistics-operators:reporting-dashboard:next-js","recipeRevision":"r1","canonicalPath":"/blueprints/logistics-operators/reporting-dashboard/next-js","label":"Logistics operators: reporting dashboard using Next.js","family":"Industry blueprint","summary":"A reporting dashboard blueprint for logistics operators built with Next.js on Ample. Domain schema: service_products (sku, name, mode, transit_days, price_basis): shipping services as SKUs; capacity_movements (sku, lane, date, delta, reason): capacity as stock movements; shipments (shipment_no, lane, status, booked_at): shipments with status transitions; shipment_lines (shipment_no, sku, units): shipment contents; exports (id, definition, object_key, row_count, generated_at, authorized_role): generated artifacts and who may download them. Public information: service products and transit times, lanes served, tracking entry point. Kept out of scope until handling is reviewed: consignee addresses, commercial invoices, customs documents. Customs and consignee data are sensitive; only shipment status is modeled here. Technical basis verified on Next.js: an export query rendered to a CSV artifact stored with metadata in a private bucket and returned only to an authorized caller (401 without token, export=ok rows=3).","representativeQueries":["Logistics operators: reporting dashboard using Next.js","Where can I host Logistics operators: Reporting dashboard built with Next.js?","I need a genuinely specialized reporting dashboard workflow covering shipment state, partner access and delivery exception reporting."],"breadcrumbIds":["discovery","industry","industry:property-and-mobility","industry:logistics-operators","page:blueprints:logistics-operators:reporting-dashboard: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:property-and-mobility","label":"Property and mobility","canonicalPath":"/discover/industry/property-and-mobility","kind":"group"},{"id":"industry:logistics-operators","label":"Logistics operators","canonicalPath":"/discover/industry/logistics-operators","kind":"atom"},{"id":"page:blueprints:logistics-operators:reporting-dashboard:next-js","label":"Logistics operators: reporting dashboard using Next.js","canonicalPath":"/blueprints/logistics-operators/reporting-dashboard/next-js","kind":"recipe"}],"parentIds":["industry:logistics-operators","workload:reporting-dashboard","stack:framework-next-js","intent:deploy-web-app"],"parents":[{"id":"industry:logistics-operators","label":"Logistics operators","canonicalPath":"/discover/industry/logistics-operators","kind":"atom"},{"id":"workload:reporting-dashboard","label":"Reporting dashboard","canonicalPath":"/discover/workload/reporting-dashboard","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:s3-compatible-object-storage"],"infrastructureRequirements":[{"primitiveId":"primitive:compute","label":"Compute","canonicalPath":"/discover/primitive/compute","status":"verified","summary":"Apps run in isolated x86_64 Firecracker microVMs that auto-pause when idle and wake on request; sizes are the priced VM sizes."},{"primitiveId":"primitive:postgres","label":"Postgres","canonicalPath":"/discover/primitive/postgres","status":"verified","summary":"Managed PostgreSQL 16 runs in its own microVM and is auto-provisioned when an app needs a database and no DATABASE_URL is supplied."},{"primitiveId":"primitive:s3-compatible-object-storage","label":"S3-compatible object storage","canonicalPath":"/discover/primitive/s3-compatible-object-storage","status":"verified","summary":"Buckets are S3-compatible with issued credentials; PutObject and GetObject are verified by canary. Other S3 operations are not verified."}],"framework":"Next.js","workload":"Reporting dashboard","industry":"Logistics operators","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","A review of which logistics operators 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 logistics operators domain","body":"Create the tables service_products, capacity_movements, shipments, shipment_lines, exports. Shipping services as skus lives in service_products; keep the sensitive classes (consignee addresses, commercial invoices, customs documents) out of this schema."},{"title":"Workflow step 1","body":"Model report definitions scoped to the agency"},{"title":"Workflow step 2","body":"Generate report artifacts from queries and store them with metadata"},{"title":"Workflow step 3","body":"Authorize downloads (401 without identity)"},{"title":"Workflow step 4","body":"Deploy and verify an authorized export and the rejected anonymous request"},{"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=..."},{"title":"Verify","body":"Run the pattern self-test(s) from the example (/p/generated-downloads) and your own acceptance checks for the logistics operators workflow.","command":"ample logs <deployment_id> --kind build"}],"examples":[{"title":"Next.js pattern fixture","description":"Verified generated downloads 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":"generated-downloads self-test from the example","kind":"http_get","path":"/p/generated-downloads","expect":"see the pattern fixture checks"}],"limitations":["The technical basis (generated downloads on Next.js) was verified with the pattern fixture; the logistics operators schema and workflow are an original design for this blueprint and were not executed as a separate application.","No health, financial, privacy or other compliance claim is made. Customs and consignee data are sensitive; only shipment status is modeled here.","Public content and synthetic examples only until actual data-handling requirements have been reviewed.","Verified on the node-22 template at s-1vcpu-1gb; region, request-duration limits and other sizes are unknown or unverified.","Managed PostgreSQL 16 only; extensions, connection limits and backup or restore procedures are not verified.","PutObject and GetObject with path-style addressing are verified; other S3 operations and CDN cache rules are not."],"costEstimate":{"currency":"USD","monthlyAmount":10.0,"authoritative":true,"basis":"size prices from pricing.toml (loaded by the API) at build revision 115ee02ebdf5c12b2d74e3064d4a52b3b1102944","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":"Always-on monthly price of the tested sizes; apps and databases auto-pause when idle. 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 generated downloads checks passed: an export query rendered to a CSV artifact stored with metadata in a private bucket and returned only to an authorized caller (401 without token, export=ok rows=3). The blueprint's Logistics operators schema and workflow below build on that verified basis and were not separately executed.","observedAt":"2026-09-21T02:34:39Z","implementationRevision":"1d28ae0 (CLI 0.1.21)","expiresAt":"2027-03-20T02:34:39Z","scope":{"checks":["/p/generated-downloads"],"pattern":"pattern:generated-downloads","template":"node-22"}}],"lastVerifiedAt":"2026-09-21T02:34:39Z","mcpBinding":{"registryRef":"mcp:ample_deploy","toolName":"ample_deploy","schemaHash":"876465fce906da0c224d62961d3343064108ebe30af80cf1b87094974e948853","observedAt":"2026-09-22T00:31:22.774679+00:00","implementationRevision":"e6446ceea69b","requiredScopes":["servers:write","databases:read","buckets:read"],"bindingState":"current"},"unknowns":["region availability is unknown until a verified region fact is recorded","compliance attestations are unknown; none are claimed"],"formats":{"html":"https://ample.computer/blueprints/logistics-operators/reporting-dashboard/next-js","markdown":"https://ample.computer/blueprints/logistics-operators/reporting-dashboard/next-js.md","json":"https://api.ample.computer/v1/catalog/recipes/page%3Ablueprints%3Alogistics-operators%3Areporting-dashboard%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":"Logistics operators: reporting dashboard using Next.js"}},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"plan:page:blueprints:logistics-operators:reporting-dashboard: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:logistics-operators:reporting-dashboard: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:logistics-operators","label":"Browse Logistics operators","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/industry%3Alogistics-operators","origin":"api","parameters":{"nodeId":"industry:logistics-operators"},"requiresAuthentication":false,"requiresApproval":false},{"actionId":"browse:workload:reporting-dashboard","label":"Browse Reporting dashboard","operationId":"browse_node","method":"GET","relativePath":"/v1/catalog/nodes/workload%3Areporting-dashboard","origin":"api","parameters":{"nodeId":"workload:reporting-dashboard"},"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}]}