Skip to content

Instantly share code, notes, and snippets.

@KyGuy2002
Last active May 6, 2025 21:13
Show Gist options
  • Save KyGuy2002/201c0712e1bcd5c5a3d7d588496710fc to your computer and use it in GitHub Desktop.
Save KyGuy2002/201c0712e1bcd5c5a3d7d588496710fc to your computer and use it in GitHub Desktop.
Using Drizzle Studio for local database access in GitHub Codespaces
Drizzle Studio is a cloud hosted web ui `local.drizzle.studio`.
It connects to the local hosted api that is started when using `drizzle-kit studio` in your terminal.
By default, the ui tries to connect to localhost:4983.
If using github codespaces, the server will be at a link like `your-codespace-name-4983.app.github.dev`.
If you try to use the `--host` param for the cli it won't work. (https://github.com/drizzle-team/drizzle-kit-mirror/issues/381)
Instead, use the `?host` query param when accessing `local.drizzle.studio`.
Because the codespace url has the port in the subdomain, you need drizzle studio to access it at the default https port `443`.
The final url will look like:
`https://local.drizzle.studio/?host=your-codespace-name-4983.app.github.dev&port=443`
IMPORTANT: Make sure to make the port public. Go to the `PORTS` tab next to the terminal in vscode and right click on the port > change visibility > make pulic.
You do not need to add any cli args, just leave it at `drizzle-kit studio`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment