Can my app have a search box, so people find things in it?
Short answer
Yes: your AI coder can build a search box that uses GilbPlatform's search, which finds only records the person may read.
Before you start
Words used here (2)
- GilbPlatform
- GilbPlatform is the service that keeps people's and organisations' data in vaults, each at its own web address.
- record
- A record is one piece of data with its own address, such as a person, a place, a thing or a note.
Deeper
What GilbPlatform does today. GilbPlatform, the service that keeps your vaults, has a search that programs, such as your app, can use. A vault is the place where a person or a group keeps their records; a record is one piece of data with its own address. The search looks in one vault at a time. It finds a whole word in any text of a record, or, if asked, the words that begin with what was typed. It answers 20 records at a time, and your app can ask for the next 20. It can also find the records that hold one exact value, or records near a place, for records that hold a place. The developer answer How do I search (find) by text, attribute or place? shows how a program does it.
What a search shows. Each record found is one the person may read; a search never shows that a record they may not read exists. So a signed-in person finds their own records, what others shared with them, and what is public. With no sign-in, a search finds only the records anyone may read, such as those in a vault you made public. Make public lets anyone read the whole vault; the answer How do I make a vault public? shows how.
What your AI coder builds. Agent.Coder, the agent that writes your app's code, builds the search box, the list of results, and what happens when a person picks one. It can also sort or narrow what your app already shows, such as products by price. Tell Kai-Zen, the planning agent, in your own words what people should find, and by which words. This works only in a published app that people sign in to: a published website that signs no one in cannot read or write in vaults, because GilbPlatform answers the pages of an app, not of a website.
What is blocked today. An app put live at https://<name>.pages.dev, a web address of its own, may fetch data only from its own address and from GilbPlatform's own addresses, such as id.gilb.com or a vault's address, and run only its own scripts. So it can use GilbPlatform's search, but a search service from another company cannot be added to it today. If you need that, write to [email protected].
GilbApp, the app where you use your vaults, has its own search for you: Search or run a command at the top; the answer How do I search across all my vaults? shows how.
This answer is written for a computer screen.
Source: GilbPlatform 0fc5a548 (https://id.gilb.com/version, read 13 November 2026): src/routes/search.ts (GET /base/search; one vault per search; match=prefix; 20 a page with a cursor), src/server/cors.ts:129 (/base/search open to browser apps), src/routes/attribute-find.ts and src/routes/spatial.ts (exact value; place). GilbPlatform 0fc5a548 (https://id.gilb.com/version, read 13 November 2026): workers/publish-ingest/src/checks.ts:21 and :146 (a functions folder refused: a functions folder would run your code on the server), :165-172 (the headers every published site gets: Content-Security-Policy default-src 'self'; script-src 'self'; img-src 'self' data: blob: https://*.gilb.com; connect-src 'self' https://*.gilb.com; form-action 'self'; Permissions-Policy camera=(), microphone=(), geolocation=()). MDN, frame-src (falls back to child-src, then default-src), https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Content-Security-Policy/frame-src, read 13 November 2026. Live help pages: How do I search (find) by text, attribute or place? (whole word, prefix, 20 a page; a search never shows that a record you may not read exists; with no token only what anyone may read); How do I make a vault public?; How do I search across all my vaults? (Search or run a command).
Checked against GilbApp d529620.