This repo is a minimal Next.js template for the Pinata Agents hosting platform, adapted into a small full-stack tutorial starter.
It gives you:
- a valid
manifest.jsonwith one public hosted route - a Next.js app mounted at
/app - a SQLite-backed todo example using App Router API routes
- a workspace-served avatar asset exposed through the API
- a PM2-managed runtime so the hosted app can restart without turning the agent into its own watchdog
- a
workspace/folder with the basic identity and behavior docs you can customize
manifest.json: change the name, description, slug, tags, secrets, and routesworkspace/IDENTITY.md: define what the agent is called and how it presents itselfworkspace/SOUL.md: define tone, principles, and operating styleapp/: replace the tutorial UI and routesworkspace/assets/: replace the starter avatar or add more served assets
manifest.jsondefines the Pinata agent metadata, lifecycle scripts, and/approuteapp/contains the App Router UI plusapp/api/*route handlerslib/todos.jsmanages a small SQLite file atworkspace/data/todos.dbserver.jsruns a tiny custom Next server and exposes a health endpointecosystem.config.cjstells PM2 how to run the appworkspace/holds the editable agent instructions modeled after the Pinata example
GET /app/api/todosPOST /app/api/todosPATCH /app/api/todos/:idDELETE /app/api/todos/:idGET /app/api/avatar
Use something like this when you first open the agent:
This is a starter for building small hosted agent apps. I want you to act like a practical builder, not a generic assistant.
First, tell me what is already included in this template.
Then give me 3 focused app directions that fit this stack well.
For each direction, explain the landing page, the core API routes, and the persistent data model.
Then recommend one as the best narrow v1 and start implementing it.
Good starter directions for this template include:
- workout assistant
- kitchen aide
- study coach
- travel planner
- creator studio helper
- household ops helper
npm install
npm run build
npm startOpen http://localhost:3000/app.
If you need a different local port:
PORT=3011 npm run build && PORT=3011 npm startFor local daemon mode:
PORT=3011 npm run start:daemonThe manifest is configured so Pinata can:
- install dependencies and run
next build - run
npm starton agent boot throughpm2-runtime - expose port
3000at/app
If you replace the tutorial with another frontend or API shape, keep the server bound to 0.0.0.0 and make sure it can serve behind the /app path prefix.