SvelteKit Full Stack
Learn how to deploy a full-stack SvelteKit app with PostgreSQL using Ink.
Create an Ink account and connect Ink
Make sure you have an Ink account and have set up Ink for your agent. Use the CLI, the Ink Skill, or MCP. For MCP auth, choose:
- OAuth — authenticate through a browser flow, no keys to manage
- Token — create an API key at deployink.com/account/api-keys
See Quick Start for full setup instructions.
Verify the connection
Once Ink is connected, confirm your agent can reach it by asking it to check.
Do you have Ink connected?
Build the app
Ask your agent to build a SvelteKit app with a database. The agent will deploy a PostgreSQL database via template and build the app with server-side form actions.
Build a SvelteKit app with server-side form actions for a contact directory. Include search, create, and delete operations with a PostgreSQL database.
Deploy with Ink
The agent deploys a PostgreSQL database via template first, then deploys the SvelteKit app with the database credentials as environment variables.
Deploy to Ink
template_deploy(
"template": "postgres",
"name": "contacts-db"
)service_create(
"name": "contacts-app",
"repo": "ink/contacts-app",
"build_pack": "railpack",
"ports": {
"0": "[object Object]"
},
"env_vars": {
"0": "[object Object]"
}
)Visit your app
Ink returns a live URL once the build completes. Your SvelteKit app is connected to a template-backed PostgreSQL service with persistent storage.
Check logs and metrics (optional)
Ask your agent to pull build logs, runtime logs, or metrics for your deployed service.
Check metrics and logs
That's it — your full-stack SvelteKit app is deployed with a PostgreSQL database template. From here you can add a custom domain, explore database templates, or explore more examples.