{"by":"nezaj","descendants":44,"id":48065203,"kids":[48068939,48068966,48069198,48069286,48068568,48071375,48068169,48068028,48068476,48069000,48070355,48068701,48087008,48070417,48094127,48070913,48065296,48073812,48084648,48087982],"score":39,"text":"Hey HN! We made GETadb.com, so it&#x27;s easier to get agents to build you full stack apps. You don&#x27;t need to give them any credentials. Just by loading a GET request, they get access to a database, a sync engine, and abstractions for auth, presence, and streams.<p>To see what the agent sees, you can load https:&#x2F;&#x2F;getadb.com&#x2F;new<p>There&#x27;s two fun things about how it&#x27;s implemented:<p>1. If you curl the home page, it the agent content rather than human content. We do this by detecting the &#x27;Sec-Fetch-Mode&#x27; header. It&#x27;s not perfect, but gets the job done for Claude Code et al.<p>2. For an agent to spin up an app, they make _two_ fethes. (1) getadb.com&#x2F;guide tells them to generate a uuid, and fetch (2) getadb.com&#x2F;provision&#x2F;&lt;uuid&gt;. We did this, because just about half of the popular web-based app builders cache URLs globally, even if you return no-store headers. To get around this we just instruct the agent to generate unique URLs<p>You may wonder: Why GET requests, rather than POST requests? It&#x27;s because then you can build in surprising places. For example, we get meta.ai to build an app inside the artifact preview: https:&#x2F;&#x2F;artifacts.meta.ai&#x2F;share&#x2F;a&#x2F;b80c7412-c3af-4088-b430-78efdfe8ea2d<p>Under the hood, this is possible because the whole infra is mult-tenant from ground up. We already announced how that works on HN, but if you&#x27;re curious here&#x27;s the essay for it: https:&#x2F;&#x2F;www.instantdb.com&#x2F;essays&#x2F;architecture","time":1778257057,"title":"Show HN: GETadb.com – every GET request creates a DB","type":"story","url":"https://www.getadb.com/"}