A PocketBase backend on Hostinger Web and Cloud hosting gives your website its own database, user accounts, file storage, and realtime updates, served from your website’s own domain. To add one, ask your AI assistant connected through Hostinger Connector, save the superuser login details it returns, and manage your data in the PocketBase dashboard at /_/ on your domain. This is separate from the PocketBase VPS template, which runs PocketBase on a Hostinger VPS.
Before you start
- You need a website on a Web or Cloud hosting plan.
- You need an AI assistant connected to your Hostinger account through Hostinger Connector, as explained in how to set up web hosting MCP on local IDEs.
- PocketBase backends are rolling out gradually. If your account doesn’t have access yet, creating a backend fails with a
422error. - There’s no Hostinger dashboard screen for PocketBase backends yet, so you add and manage them through your AI assistant.
What a PocketBase backend adds to a Hostinger website
A PocketBase backend stores what visitors enter on your website, such as form submissions, sign-ups, comments, votes, bookings, or orders. It suits static, JavaScript, and Node.js websites that need to keep data without a separate server or a third-party database account. PocketBase is an open-source backend, and Hostinger runs it on your hosting plan.
Two paths on your website’s domain belong to PocketBase once you add a backend:
https://domain.tld/api/serves the PocketBase REST and realtime API.https://domain.tld/_/serves the PocketBase dashboard, where you manage data, users, and settings.
Every other path keeps serving your website. Because your website and its PocketBase backend share one domain, you don’t need to set up Cross-Origin Resource Sharing (CORS) or put keys in your frontend code.
PocketBase backend data is stored outside your website’s files, so deploying your website or uploading files never changes it. Hostinger’s automatic account backups include the database of every PocketBase backend in your account.
A PocketBase backend sleeps when nobody uses it and wakes on the next request. The first request after a quiet period takes a few seconds.
To compare PocketBase with MySQL and the other databases each hosting plan supports, see which databases and data tools are supported at Hostinger. To run PocketBase on a VPS instead, follow how to use the PocketBase VPS template at Hostinger.
Pages or routes your website already serves under /api or /_ stop working when you add a PocketBase backend. Move them to another path first.
Add a PocketBase backend to a Hostinger website with Hostinger Connector
- In Hostinger Connector, make sure Websites is enabled.
- Ask your AI assistant to add a PocketBase backend to your website, for example: “Add a PocketBase backend to domain.tld.”
- Confirm the backend creation once your AI assistant has checked your website’s
/apiand/_paths with you. - Save the superuser email and password from your AI assistant’s response.
You can also describe what you need instead of naming PocketBase, for example:
- “Save the contact form submissions on my Hostinger site so I can read them later.”
- “Let visitors sign up and log in on my app hosted on Hostinger.”
Creating a PocketBase backend usually takes a few seconds. Your AI assistant returns the API address, the dashboard address, the superuser email, and the superuser password. The superuser email defaults to your Hostinger account’s email.
Hostinger shows the PocketBase superuser password only once and doesn’t store it. Save it in your password manager right away.
Sign in to the PocketBase dashboard of a Hostinger website
- Open
https://domain.tld/_/in your browser. - Sign in with your PocketBase superuser email and password.
In the PocketBase dashboard, you create collections (tables), set their access rules, browse and edit records, manage your website’s users, and change PocketBase settings. Set API rules for every collection, because a rule left empty lets anyone perform that action.
Check, reset, or delete a PocketBase backend with Hostinger Connector
Manage an existing PocketBase backend by asking your AI assistant:
- To check its status and disk usage, ask “How is the PocketBase backend of domain.tld doing?”
- To set a new superuser password, ask “Reset the PocketBase superuser password for domain.tld.” The new password is shown only once, and the old one stops working immediately.
- To remove the backend, ask “Delete the PocketBase backend of domain.tld.” Your website gets the
/apiand/_paths back.
Deleting a PocketBase backend permanently removes all its collections, records, users, and uploaded files. Download a backup from the PocketBase dashboard under Settings → Backups first.
Your website now has its own PocketBase backend for storing visitor data, served from the same domain as your website.
Additional resources