How to build a team app with a shared database

Ask Claude or another coding agent for a ticket board plus an h0.json, publish it, invite your team by email. No server code. Tested step by step.

Title 'How to build a team app with a shared database' above a dark three-column ticket board: To do 3, with the card 'Review the pricing page copy, @Priya, by your teammate, just now' highlighted, plus 'Book the offsite venue' and 'Draft the Q1 launch checklist'; Doing 1, 'Fix the signup email template, @Sam'; Done 0. A note in the Done column says the teammate's card was added in their browser and appeared on your open page at the next 4-second poll. Top right: 2 files the agent wrote, under 10 s for a teammate's ticket to reach your open page, 1 step to remove someone.
On this page

To build a team app with a shared database using Claude, ask it for the app plus a small h0.json file that declares the data, publish both with the host0 skill, and invite your teammates by email. There's no server code to write and no database to set up: the page saves to its own address, and only the people you invite can open it. In our test, Claude Code wrote a working ticket board in two files, and a teammate's ticket showed up on our already-open page in under ten seconds.

A web page is easy to get from an AI agent. A page that several people use together is harder: it needs somewhere to keep the data, a way to know who's who, and a way to let some people in and keep everyone else out. This guide walks through one real run, from the prompt to a board two people edit at once, with a screenshot of every step. It works the same from any agent that can run the host0 skill (we used Claude Code), and it's the "last step" counterpart to building and publishing a website in Claude.

2

Files the agent wrote: index.html and h0.json

Source: host0 test run, 21 Nov 2026

0

Lines of server code

Source: host0 test run, 21 Nov 2026

<10 s

For a teammate's ticket to reach our open page, no reload

the page polls every 4 s

Source: host0 test run, 21 Nov 2026

1

Step to remove someone; it holds from their next request

Source: host0 test run, 21 Nov 2026

The short version

  1. 1
    One prompt, two files. We described the board in plain words and told the agent to follow the host0 skill. It wrote index.html (14.4 KB, its own CSS and JS) and a 446-byte h0.json declaring one tickets collection with three fields.
  2. 2
    The data rules are four words. h0.json says who can read, add, change and delete: here anyone with access reads and adds, and only you and the people you invite change or delete.
  3. 3
    New apps are private. Only you can open the link until you invite someone. Invited people sign in with Google or an emailed code; nobody needs a Claude account.
  4. 4
    Changes travel by polling. The page checks for new tickets every 4 seconds, so a teammate's ticket appeared on our open page after about 6 seconds. There's no live push yet.
  5. 5
    You own the data. The dashboard's Data tab lists every ticket with who added it, lets you edit or delete any of them, and exports the collection as JSON.
  6. 6
    Removing someone is immediate. Their next request is refused, and a reload shows "This app is private".

What you'll have at the end#

A ticket board at its own address, <slug>.host0.app, with To do, Doing and Done columns. Everyone you invite sees the same tickets, adds their own, moves them between columns and deletes them, and each card says who added it. This is what the owner's page looked like at the end of our run, with one ticket added by a teammate from another browser:

The board two people share

The Team Tickets board, signed in as owner-howto@example.com. An “Add ticket” bar with “What needs doing?” and “Assignee (optional)” fields. Three columns: To do 3, with “Review the pricing page copy”, @Priya, added by teammate-howto@example.com just now, then “Book the offsite venue” and “Draft the Q1 launch checklist”, @Dana, both added by owner-howto@example.com 2m ago; Doing 1, with “Fix the signup email template”, @Sam; Done 0, “No tickets”. Each card has To do, Doing and Done buttons and a delete cross.

Three tickets added by the owner and one, “Review the pricing page copy”, by the invited teammate. Every card shows who added it.

Source: host0 test run, 21 Nov 2026; test accounts and data

Behind it there's no server you wrote and no database you created. The page talks to a small API on its own address (/.h0/data/tickets), and host0 stores the records, checks who's asking and applies the rules from h0.json (how shared data works).

How to build a team app with a shared database#

From a prompt to a board your team shares

  1. Give your agent the skill

    Install it, or point the agent at host0.ai/skill.md.

  2. Describe the app

    What it tracks, who can change what.

  3. Check the two files

    index.html and h0.json, with the access rules.

  4. Publish

    Private by default, at <slug>.host0.app.

  5. Invite by email

    Teammates sign in and add tickets.

Source: host0 test run, 21 Nov 2026

Step 1: Give your agent the host0 skill#

The skill is a set of instructions plus a publish script that any agent able to run shell commands can use. In Claude Code, Codex, Cursor and similar tools, install it once:

Terminal
npx skills add host0-ai/skills

or, without Node:

Terminal
curl -fsSL https://host0.ai/install.sh | bash

In claude.ai or another chat with code execution, you don't install anything: put "follow https://host0.ai/skill.md" in your prompt, as in the website guide, and make sure the chat can reach host0.ai and host0.app. Per-agent setup is on the integrations pages.

The first time the agent publishes, it signs you in without asking for anything personal: it shows a link and a short code, you approve it on host0.ai in your own browser, and the agent gets its key from there.

Step 2: Describe the app in one prompt#

Say what the app tracks, what each item has, and who can change what. Then tell the agent to follow the skill's "Shared data" section. This is the prompt we gave Claude Code in an empty folder, word for word except for the path, which pointed at the skill on our machine:

Prompt
Build a small team tickets app that I can deploy to host0 and share with my team. Read the host0 skill at <path to the host0 skill>/SKILL.md first, especially the "Shared data" section, and follow it.

What I want: a clean, good-looking single-page tickets board. Everyone on the team sees the same list. Each ticket has a title, a status (todo, doing, done) and an optional assignee. Anyone can add a ticket, and people on the team can change a ticket's status and delete it. Show who added each ticket. The page should pick up teammates' changes by itself.

Put the files in the current folder: index.html (with its own CSS and JS, no build step, no external libraries) and h0.json declaring the collection. Do not deploy anything, I will do that myself. When done, say in two sentences what you built.

We kept publishing out of the prompt so we could show each step. In normal use, end with "then publish it with host0" and the agent does steps 4 and 5 for you.

Two sentences in the prompt carry the most weight. "Everyone on the team sees the same list" tells the agent the data is shared, not per person; the skill tells agents to ask if you don't say. "People on the team can change … and delete" becomes the access rule in the next step.

Step 3: Check the two files the agent wrote#

Claude Code wrote two files and replied:

I built a single-page board in index.html with To do / Doing / Done columns. Anyone can add a ticket with a title and an optional assignee. Each card shows who added it, and signed-in team members can change its status or delete it; anonymous visitors get a "Sign in to edit" link. The page checks for teammates' changes every 4 seconds.

It also said it hadn't opened the page, because the approval prompt had stopped its syntax check. We ran it as it was, and it worked the first time with no edits.

The second file is the database. This is h0.json exactly as the agent wrote it:

JSON
{
  "records": {
    "tickets": {
      "fields": {
        "title":    { "type": "string", "required": true, "maxLength": 200 },
        "status":   { "type": "string", "enum": ["todo", "doing", "done"], "default": "todo" },
        "assignee": { "type": "string", "maxLength": 80 }
      },
      "access": {
        "read":   "viewers",
        "create": "viewers",
        "update": "members",
        "delete": "members"
      }
    }
  }
}

fields is the shape of a ticket. Field types are string, number, boolean and json, with required, default, maxLength and enum as the only constraints. host0 checks the file when you publish, and a mistake fails the upload with a message saying what to change, before anything goes live.

access says who may do each of the four things. Each takes one audience:

The audiences in h0.json

What each value means for read, create, update and delete

AudienceWho it lets inTypical use
viewersAnyone who can open the app. On a private app, that's you and the people you invited; on an app open to anyone with the link, it includes people who aren't signed inReading a shared list, adding to it
membersYou plus the emails you shared the app with, even on an app anyone can openChanging and deleting on a team tool
ownerOnly you, the app's ownerSomething only you should see or edit
creatorEach signed-in person, on the records they createdA per-person app: a habit tracker, a reading list
["a@b.com", …]A fixed list of emailsOne editor or a small panel
Defaults when access is left out: read and create are viewers, update and delete are members. The app's owner always passes.

Source: host0 docs: shared data

Our board uses the defaults, written out: anyone who can open it reads and adds tickets, and only members change or delete them. Because the app is private, "anyone who can open it" is already only the people you invited, so in practice every teammate can do everything. The difference shows if you later open the app to anyone with the link: strangers could then read and add, but not move or delete tickets.

owner is the one people misread. It doesn't mean "each user's own"; it means only you. For "everyone gets their own private list", the agent sets every action to creator.

A few things the agent did that weren't in our prompt, because the skill tells agents to: it escapes every ticket before showing it (records are untrusted input), sends an Idempotency-Key with each new ticket so a retry can't create a duplicate, pauses polling while a save is in flight, builds no login screen of its own, and shows "added by someone" when it isn't allowed to see who added a ticket.

Step 4: Publish it, private by default#

The agent publishes the folder with the skill's publish.sh. It uploads the files, checks h0.json, and makes the app live. Here is part of what it printed for our run (we ran a local copy of host0, so we've left out the url line; on host0 it reads https://<slug>.host0.app/):

Text
Creating app "Team tickets"...
Creating deployment (2 files)...
Uploading 2 files...
Finalizing...

publish_result.slug=cef43wwnh5
publish_result.action=create
publish_result.version=1
publish_result.visibility=private
publish_result.files_uploaded=2

Three things to read there. The address is random (10 characters); you can rename it to something readable later. It's version 1, so a later change becomes version 2 and the old one can be restored. And it's private: until you invite someone, only you can open it.

We opened the link, signed in as the owner, and added three tickets, then moved one to Doing:

The first tickets

The Team Tickets board signed in as owner-howto@example.com: To do 2, with “Book the offsite venue” and “Draft the Q1 launch checklist” (@Dana); Doing 1, with “Fix the signup email template” (@Sam), its Doing button highlighted; Done 0, “No tickets”.

The owner's view right after publishing. The bar at the top right says who you're signed in as.

Source: host0 test run, 21 Nov 2026; test data

The app also appears in your dashboard. Its overview says who can open it and how many records it holds:

The app in the dashboard

The Overview tab of the Team tickets app, with the tabs Overview, Analytics, Sharing, Data, Versions, Domains and Settings. A banner says “Only you can open this app. Invite teammates by email, or open it to anyone with the link.” with a Share button. Four cards: Access, Private, not shared with anyone yet; Visits, 0 visits this month; Live version, Version 1, deployed Nov 21, 2026, 2 files, 14.5 KB, with “Upload a new version”; Shared data, 3 records in 1 collection.

Private, not shared with anyone yet, version 1 with 2 files, and 3 records in 1 collection.

Source: host0 dashboard, 21 Nov 2026

If your host0 account is new, it needs a plan before its first publish. The agent then gives you a link to start a 7-day free trial in your own browser, and publishes again once you have (pricing).

Step 5: Invite your teammates by email#

Open the app's Sharing tab, type a teammate's email under People and click Invite. The panel says what that grants: "Only these people can open it. They sign in with this email. By default they can also edit and delete its shared data."

Inviting a teammate

The People section of the Sharing tab: “Only these people can open it. They sign in with this email. By default they can also edit and delete its shared data.” An “Add people by email” field and an Invite button, the message “Access granted and invitation email sent.”, and two rows: owner-howto@example.com (you), Owner, and teammate-howto@example.com, Invitation email sent, with a menu button.

Access is granted at once and an invitation email goes out. The teammate is now a member, which is what update: members checks.

Source: host0 dashboard, 21 Nov 2026; test accounts

The teammate gets an email with the app's name, an Open app button, and a link to create an account with the invited address if they're new. It ends: "This invitation gives you access as a member. The app's owner controls your permissions and can remove access."

The invitation email

An email from host0 headed “App invitation — Team tickets”: “You've been invited to this app. Sign in with teammate-howto@example.com to open it.”, an “Open app” button, and “New to host0? Create an account with the invited email.”

One email per person, with a sign-in link and a sign-up link for the invited address.

Source: host0 test run, 21 Nov 2026

You can also ask your agent to do this ("invite priya@ and sam@ to the board"): the skill documents the same invite call, and the host0 MCP server has a share tool. We used the dashboard in this run. Up to 10 addresses go in one request.

The same tab has the other two settings: Anyone with the link (no sign-in, unlisted, never indexed) and Public on the web (search engines may list it). For a team tool, private with invites is the safe choice; the private sharing guide covers the three in detail.

Step 6: Your teammate signs in and adds a ticket#

When the teammate opens the app's link, host0 stops them at a sign-in page before any of the app loads:

What an invited teammate sees first

The host0 sign-in card: “Sign in to view Team tickets. This app is private — sign in to check your access.”, a “Continue with Google” button, an Email field and an “Email me a code” button, with the note “No password needed. New here? The code creates your account.”

Google or a 6-digit code by email. There's no password, and the code creates the account if they don't have one.

Source: host0 test run, 21 Nov 2026

They sign in with the invited address, land on the board, and add a ticket. It's saved with their identity, and the card says who added it:

The teammate adds a ticket

The Team Tickets board signed in as teammate-howto@example.com: To do 3, with the new card “Review the pricing page copy”, @Priya, added by teammate-howto@example.com just now, above the owner's two tickets; Doing 1, “Fix the signup email template”; Done 0.

Signed in as the teammate. “Review the pricing page copy” is theirs, “added by teammate-howto@example.com · just now”.

Source: host0 test run, 21 Nov 2026; test accounts and data

We'd asked for nothing about phones, and the board still works on one: the columns stack and the add form goes full width.

The same app on a phone

Team Tickets on a phone, signed in as the owner: a stacked add form with “What needs doing?”, “Assignee (optional)” and a full-width “Add ticket” button, then the To do column with “Review the pricing page copy”, “Book the offsite venue” and “Draft the Q1 launch checklist”.

The host0 sign-in page on a phone: “Sign in to view Team tickets”, “Continue with Google”, an Email field and “Email me a code”.

The board and the sign-in page at 390 px wide.

Source: host0 test run, 21 Nov 2026; test data

Step 7: See each other's changes#

Back on the owner's page, which had been open the whole time, the teammate's ticket appeared without a reload after about six seconds. That's the board at the top of this post.

How a teammate's ticket reaches your open page

  1. Teammate adds

    Their page saves the ticket to the app's data API.

  2. host0 stores it

    With who added it and when.

  3. Your page polls

    It asks for the list every 4 seconds.

  4. The card appears

    About 6 seconds later in our run.

Source: host0 test run, 21 Nov 2026

Be clear about what this is: polling, not live push. The page asks for the list every few seconds; the agent picked 4. A shorter interval feels more live and makes more requests, and reads aren't rate limited. Two people editing the same ticket at the same moment means the last save wins, so the skill tells agents to send only the fields that changed. host0 has no realtime updates yet; they're on the list for later.

Step 8: Manage the data from the dashboard#

The Data tab is where you, the owner, see everything the app has saved. The top table shows each collection, who can write to it in plain words, and an Export JSON button. Below it, every record with who added it and when, and an edit and a delete button on each:

The Data tab

The Data tab. A “Shared data” table: collection tickets, fields title, status, assignee; who can write “Add: anyone with access · Edit: you + invited”; 4 records; latest Nov 21, 2026, 10:42 AM UTC; Export JSON. Below, the tickets list: “Edit or delete any record here. The collection's access rules don't apply to you as the owner.” Four rows with title, assignee, status, added by and date: Review the pricing page copy, Priya, todo, teammate-howto@example.com; Book the offsite venue, todo; Fix the signup email template, Sam, doing; Draft the Q1 launch checklist, Dana, todo; the last three added by owner-howto@example.com. Each row has edit and delete icons. Footer: 4 records, newest first.

“Add: anyone with access · Edit: you + invited” is the h0.json access rule. The owner can edit or delete any record, whatever the rule says.

Source: host0 dashboard, 21 Nov 2026; test accounts and data

The export is the full collection as JSON. For each ticket it includes the fields, who created it (created_by_email), and when it was created and last updated. Ours had four records, three by the owner and one by the teammate. The same data is available without the dashboard: the skill's export call, the host0 CLI (host0 records), and the MCP server's list_records, update_record and delete_record tools.

Changing the app later is safe for the data. Publish a new version without an h0.json and the collections stay as they are. Remove a collection from h0.json and the app stops serving it, but its records are kept and can still be exported.

Step 9: Remove someone#

On the Sharing tab, open the menu on a person's row and choose Remove access. It takes effect on their next request, for the page and the data alike. An open page finds out at its next poll, which comes back asking to sign in; the board our agent built then shows a link reading "This app is private — sign in to continue."

The removed teammate's open page

The Team Tickets board signed in as teammate-howto@example.com, with an underlined link under the add bar: “This app is private — sign in to continue.” The four tickets loaded earlier are still visible.

The next poll was refused, so the page shows the sign-in link. The cards still on screen are what it loaded earlier: this app doesn't clear them, so they stay until a reload.

Source: host0 test run, 21 Nov 2026; test accounts and data

When they reloaded, host0 didn't serve the app at all:

After a reload

The host0 page “This app is private. Ask the owner to share it with teammate-howto@example.com.” with a “Go to host0” button.

Removing the invite revoked both opening the app and writing to its data.

Source: host0 test run, 21 Nov 2026

Two notes. The old cards on the removed person's screen are this app's own behaviour, and you can ask your agent to clear the list when a request comes back with "sign in". Removing someone ends every session the app had handed out, not just theirs: the teammates you kept don't lose access, but their open pages are refused until they reload, and on that next page load they pass back through host0's sign-in check, which is only a redirect if they're still signed in to host0. Changing the app's visibility, even back to the setting it had, does the same reset, so don't toggle it casually on a tool your team is using.

What an uninvited person sees#

Someone who gets the link but isn't on the list sees nothing of the app. Even after signing in, host0 shows them this, naming the address they signed in with so they can ask you to add it:

Signed in, but not invited

The host0 page “This app is private. Ask the owner to share it with outsider-howto@example.com.” with a “Go to host0” button.

The app's files and its data are both behind the same check.

Source: host0 test run, 21 Nov 2026

If you open the app to anyone with the link instead, uninvited visitors can read the board and, with our h0.json, add tickets, but not move or delete them. They see "added by someone" instead of a teammate's email, because host0 only shows who created a record to the owner, members and the record's author. Writes from people you didn't invite are rate limited per app: 120 an hour per network for visitors who aren't signed in, and 600 an hour per account for signed-in visitors. You and your invited teammates aren't limited.

Limits and plans#

Every app's shared data has the same ceilings:

Shared data limits

Per app, checked on 21 Nov 2026

LimitValue
Records per app, across collections20,000
Size of one record32 KB
Collections per app20
Fields per collection50
Writes per hour, visitors not signed in (per network)120
Writes per hour, signed-in visitors you didn't invite600
Writes by you and invited teammatesNo limit
Records per page when listing200 by default, up to 1,000
The live numbers are in GET https://host0.ai/api/v1 under limits.records. Over a write limit, a request gets 429 rate_limited with a retry time; reads are never limited.

Source: host0 docs: shared data

Sharing works the same on every plan: private apps, email invites and shared records are on all of them. The people you invite never need a plan and never count as seats; they only need a free host0 sign-in, which the emailed code creates. The plan is the publisher's: new accounts start with a 7-day free trial, and plans differ in how many apps you can have (10 on Starter, 100 on Pro), file and storage sizes, version history and analytics, not in sharing (pricing, plans in the docs). Until an account's first real payment, its pages carry a small "Hosted on host0" badge in a corner, like the one at the bottom of our board.

When this isn't the right tool#

Shared records cover a lot of small team tools: boards, trackers, sign-up sheets, request queues, polls. They stop being a good fit when you need:

  • Real queries. Records are JSON documents in collections, listed in pages. There are no joins, no SQL and no server-side filters yet. If your app needs "all overdue tickets for clients in Germany, grouped by owner" over tens of thousands of rows, use a real database.
  • Live collaboration. Polling every few seconds is fine for a board. A shared whiteboard, chat or cursor-level co-editing needs live push, which host0 doesn't have yet.
  • Server code. There's nowhere to run your own backend logic: no scheduled jobs, no webhooks, no calls to an AI API with a secret key. Keeping a key on the server is planned, and so are apps with their own code and database; until then, those belong on a platform that runs code.
  • More than 20,000 records, or files and images attached to records.

If you're not sure, ask your agent: describe the app and ask whether it fits "static files plus a records API". It will usually tell you plainly.

FAQ#

Do my teammates need a Claude account or a paid plan?#

No. They need a host0 sign-in with the email you invited, which Google or the emailed 6-digit code creates on the spot. Invited people never need a plan and never count as seats; only the person publishing has a plan.

Does this work with ChatGPT, Cursor or Codex instead of Claude?#

The host0 skill is plain instructions plus a bash script, so any agent that can run shell commands and reach host0.ai can use it. We ran this guide with Claude Code; other agents follow the same skill, and each has its own setup page under integrations. In a chat without a terminal, the agent can't publish.

Is it a real database?#

It's a managed store of JSON records, one collection per kind of thing, with the fields and rules you declare in h0.json, checked on every write. It isn't SQL: there are no joins or custom queries. For a team board, list or tracker that's usually all you need.

Is it realtime?#

No. The page asks for changes every few seconds; ours polled every 4 seconds, and a teammate's ticket appeared after about 6. Live updates aren't available yet.

What happens if two people edit the same ticket at once?#

The last save wins. The skill tells agents to send only the fields that changed, so two people changing different fields of the same ticket don't overwrite each other.

Can each person have their own private list instead?#

Yes. Ask for "each person gets their own list" and the agent sets every rule in h0.json to creator: each signed-in person reads and changes only the records they created. Don't use owner for that: it means only you.

How do I get the data out?#

From the dashboard's Data tab with Export JSON, or ask your agent to export it with the skill or the host0 CLI. The export includes every record, who created it and when.

Can I open the board to people without an invite?#

Yes. Switch it to "Anyone with the link" on the Sharing tab. Visitors can then read, and with the default rules add, but only you and invited people can change or delete. Invited teammates who arrive without signing in see a "Sign in to edit" link, which our agent built in because the skill tells it to. Changing the setting ends every session on the app once; people who still have access pass back through the sign-in check, which is only a redirect if they're still signed in to host0.

Can I see who opened the app?#

The Analytics tab counts visits and pages without cookies; on a private app it counts only people who got past the sign-in. It doesn't list visitors by name; this guide on who opened your link explains why most tools can't.

How we tested this#

We ran everything on 21 November 2026, between 10:35 and 10:50 UTC, on a local copy of host0 (its development server), so the addresses in our screenshots and logs were local ones; on host0 they read <slug>.host0.app and host0.ai. The app was written by Claude Code from the prompt above in an empty folder, and nothing it wrote was edited by hand. We chose the prompt, the ticket titles and the clicks. The three people were throwaway test accounts (owner-howto, teammate-howto and outsider-howto, all at example.com), each signed in with an emailed code in its own browser session. Just before removing the teammate we had switched the app's visibility and back, which on its own ends every session on the app, so the refused poll on the teammate's open page can't be credited to the removal alone; the reload after the removal, which named their address and refused it, can. The timing is from watching the owner's open page after the teammate saved a ticket: it showed up after a 6-second wait. Limits come from host0's own configuration as published at /api/v1, and the plan details from the pricing page and docs. We tested with Claude Code only; the skill is the same for other agents, but we didn't repeat this run in them.

host0 exists for this step: whatever your agent made, a link you can share, with a database that just exists. Start from the agents page, or paste the prompt above into your agent.

GuidesClaudeShared data