{"id":22729790,"url":"https://github.com/gc-victor/query-studio","last_synced_at":"2026-02-23T23:33:43.172Z","repository":{"id":201374479,"uuid":"701616022","full_name":"gc-victor/query-studio","owner":"gc-victor","description":"Query Studio helps you explore and manipulate your remote SQLite databases","archived":false,"fork":false,"pushed_at":"2023-11-23T14:16:46.000Z","size":179,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-20T18:45:50.395Z","etag":null,"topics":["litefs","query","sqlite","sqlite-editor","sqlite-editor-online","sqlite-server"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gc-victor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-07T04:20:51.000Z","updated_at":"2025-06-03T14:54:39.000Z","dependencies_parsed_at":"2023-11-23T15:28:44.303Z","dependency_job_id":null,"html_url":"https://github.com/gc-victor/query-studio","commit_stats":null,"previous_names":["gc-victor/query-studio"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gc-victor/query-studio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gc-victor%2Fquery-studio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gc-victor%2Fquery-studio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gc-victor%2Fquery-studio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gc-victor%2Fquery-studio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gc-victor","download_url":"https://codeload.github.com/gc-victor/query-studio/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gc-victor%2Fquery-studio/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269418005,"owners_count":24413503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["litefs","query","sqlite","sqlite-editor","sqlite-editor-online","sqlite-server"],"created_at":"2024-12-10T18:11:47.351Z","updated_at":"2026-02-23T23:33:38.152Z","avatar_url":"https://github.com/gc-victor.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Query Studio\n\nQuery Studio helps you explore and manipulate your remote SQLite databases.\n\nTo use Query Studio it is required to have a Query Server running. You can follow the guide [Run A Query Server](https://github.com/gc-victor/query?tab=readme-ov-file#run-a-query-server) to run it.\n\n## Table of Contents\n\n- [Query Studio Demo](#query-studio-demo)\n- [Run Query Studio on Fly](#run-query-studio-on-fly)\n- [Run Query Studio locally](#run-query-studio-locally)\n- [Run Query Studio locally with Docker](#run-query-studio-locally-with-docker)\n- [Query Studio](#query-studio)\n  - [Login](#login)\n  - [Editor](#editor)\n  - [Logout](#logout)\n- [License](#license)\n\n## Query Studio Demo\n\nYou can see a demo of Query Studio in \u003chttps://query-studio.fly.dev\u003e.\n\nTo login, you can use the following credentials:\n\n- **Email:** `admin`\n- **Password:** `admin`\n\n### How to use the demo\n\nOnce you are logged in, you will see the Editor page. You can start using the Editor by selecting a database or adding a new one. You can do it using the input field on the left of the page. Each time you add or select a database, it will remove the previous code on the editor.\n\nBy default, the demo has a database called `test.sql`. You have to add it and use it to test Query Studio. You can run the following queries:\n\n```sql\nSELECT * FROM sqlite_master WHERE type='table';\n```\n\nYou will see the different tables that other users has created. You can select one of them and run the following query:\n\n```sql\nSELECT * FROM table_name;\n```\n\nThe default table name is `key_value`.\n\nYou will see the data of the table. You can click on the table header to sort the results by that column. Also, you can click on a cell to edit it. Once you have edited a cell, you can press `Enter` to save the changes or `Esc` to cancel them.\n\n## Run Query Studio on Fly\n\nWe recommend use Query Studio with Fly (\u003chttps://fly.io\u003e). It will help you to deploy your server in a few minutes close to your Query Server.\n\nIf it is the first time using Fly, you can follow the [Hands-on with Fly.io](https://fly.io/docs/hands-on/) guide to install the CLI, sign up and sign in.\n\nOnce you have the Fly CLI installed, you have to rename the `fly.toml.dist` to `fly.toml`, and update it with your app name and the primary region running the following command:\n\n```sh\nfly launch\n```\n\nRemember to use the same region as your primary Query Server.\n\nIt is time to set the environment variables for your app. You can do it running the following commands:\n\nQuery Server URL:\n\n```sh\nfly secrets set QUERY_STUDIO_QUERY_SERVER=__USE_A_QUERY_SERVER_URL__\n```\n\nExample:\n\n```sh\nfly secrets set QUERY_STUDIO_QUERY_SERVER=https://query-server.fly.dev\n```\n\nClient URL:\n\n```sh\nfly secrets set QUERY_STUDIO_CLIENT_URL=__USE_THE_QUERY_STUDIO_APP_URL__\n```\n\nExample:\n\n```sh\nfly secrets set QUERY_STUDIO_CLIENT_URL=https://query-studio.fly.dev\n```\n\nThat's it! Now you can deploy your app running:\n\n```sh\nfly deploy\n```\n\nIn case that there are more than one machine running your app, you should destroy the extra ones running:\n\n```sh\nfly m list # To list the machines\n```\n\n```sh\nfly m destroy MACHINE_ID # To destroy the machine\n```\n\nIt is needed because we save the session in memory, and it will be lost if the request flights from one machine to another.\n\n## Run Query Studio locally\n\nTo run Query Studio locally, you have to rename the `.env.dist` to `.env`, and update it with your Query Server URL.\n\nQuery Server URL:\n\n```sh\nQUERY_STUDIO_QUERY_SERVER=__USE_A_QUERY_SERVER_URL__\n```\n\nExample:\n\n```sh\nQUERY_STUDIO_QUERY_SERVER=https://query-server.fly.dev\n```\n\nThen, you can run the following command:\n\n```sh\nmake server\n```\n\n## Run Query Studio locally with Docker\n\nTo run Query Studio with Docker, you have to rename the `.env.dist` to `.env`, and update it with your Query Server URL.\n\nUpdate the environment variables in the `.env` has in the [Run Query Studio locally](#run-query-studio-locally) section.\n\nThen, you can run the following command:\n\n```sh\nmake docker-build\n```\n\nOnce the image is built, you can run the following command:\n\n```sh\nmake docker-run\n```\n\nAnd you can access to Query Studio in \u003chttp://localhost:3000\u003e.\n\n## Query Studio\n\n### Login\n\nOnce you have Query Studio running, you can access to it in \u003chttp://localhost:3000\u003e (or the Fly App URL) and you will see the login page.\n\nTo login, you have to use the same credentials that you use to login in your Query Server.\n\n### Editor\n\nOnce you are logged in, you will see the Editor page.\n\nTo start using the Editor, you have to select a database or add a new one. You can do it using the input field on the left of the page. Each time you add or select a database, it will remove the previous code on the editor.\n\nOnce you have selected a database, you will be able to query your remote databases using SQLite by pressing the `Run` button or pressing `Ctrl + Enter`/`Cmd + Enter`.\n\nAfter a query is executed, you will see the results in a table. You can click on the table header to sort the results by that column. Also, you can click on a cell to edit it. Once you have edited a cell, you can press `Enter` to save the changes or `Esc` to cancel them.\n\n### Logout\n\nTo logout, you can click on the `Logout` button on the top left of the page.\n\n## License\n\nQuery Studio is licensed under the [MIT License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgc-victor%2Fquery-studio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgc-victor%2Fquery-studio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgc-victor%2Fquery-studio/lists"}