{"id":25497195,"url":"https://github.com/joelseq/sqliteadmin-go","last_synced_at":"2025-09-07T17:37:45.525Z","repository":{"id":278117383,"uuid":"934544449","full_name":"joelseq/sqliteadmin-go","owner":"joelseq","description":"Admin tool for interacting with an embedded SQLite database","archived":false,"fork":false,"pushed_at":"2025-02-21T01:49:55.000Z","size":2336,"stargazers_count":39,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T10:58:26.145Z","etag":null,"topics":["admin","admin-dashboard","golang","golang-library","sqlite","sqlite3"],"latest_commit_sha":null,"homepage":"https://sqliteadmin.dev","language":"Go","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/joelseq.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-02-18T02:30:10.000Z","updated_at":"2025-05-01T21:27:27.000Z","dependencies_parsed_at":"2025-05-19T11:37:20.231Z","dependency_job_id":"f4ace125-11f6-463f-8906-e8a757b1979b","html_url":"https://github.com/joelseq/sqliteadmin-go","commit_stats":null,"previous_names":["joelseq/sqliteadmin-go"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/joelseq/sqliteadmin-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelseq%2Fsqliteadmin-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelseq%2Fsqliteadmin-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelseq%2Fsqliteadmin-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelseq%2Fsqliteadmin-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joelseq","download_url":"https://codeload.github.com/joelseq/sqliteadmin-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joelseq%2Fsqliteadmin-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274070716,"owners_count":25217383,"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-09-07T02:00:09.463Z","response_time":67,"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":["admin","admin-dashboard","golang","golang-library","sqlite","sqlite3"],"created_at":"2025-02-19T01:18:46.044Z","updated_at":"2025-09-07T17:37:45.507Z","avatar_url":"https://github.com/joelseq.png","language":"Go","readme":"# SQLite Admin\n\n[![Build](https://github.com/joelseq/sqliteadmin-go/actions/workflows/build.yml/badge.svg)](https://github.com/joelseq/sqliteadmin-go/actions/workflows/build.yml)\n\nSQLite Admin is a Golang library and binary which enables you to easily interact with a SQLite database. It allows you to:\n\n- Browse tables and their schemas.\n- View table data along with adding filters, limits and offsets.\n- Modify individual columns in existing rows.\n\n![screenshot](assets/sqlite-admin-filtering.png)\n\nIt can either be integrated into an existing Golang backend as a library or installed as a binary.\n\nThe web server can be interacted with by going to https://sqliteadmin.dev.\n\nThe source code for the web UI can be found at https://github.com/joelseq/sqliteadmin-ui\n\n## Motivation\n\nSQLite is very easy to add as an embedded database but it's difficult to manage the database once it's deployed in an application.\n\nExisting tools primarily focus on local SQLite files, requiring manual interaction through CLI tools or desktop applications. If your SQLite database is running embedded within an application, there are few (if any) solutions that let you inspect, query, and modify it without complex workarounds.\n\nThe alternative is to use a cloud-hosted version like those provided by [Turso](https://turso.tech/) which enables interacting with the database using tools like [Drizzle Studio](https://orm.drizzle.team/drizzle-studio/overview). This adds complexity to the setup and deployment of your application and you lose out on the value of having an embedded database.\n\nThis project fills that gap by providing an easy way to view and manage an embedded SQLite database via a web UI — no need to migrate to a cloud provider or use ad-hoc solutions.\n\n## Using as a library\n\n```go\nconfig := sqliteadmin.Config{\n  DB: db,               // *sql.DB\n  Username: \"username\", // username to use to login from https://sqliteadmin.dev\n  Password: \"password\", // password to use to login from https://sqliteadmin.dev\n  Logger: logger,       // optional, implements the Logger interface\n}\nadmin := sqliteadmin.New(config)\n\n// HandlePost is a HandlerFunc that you can pass in to your router\nrouter.Post(\"/admin\", admin.HandlePost)\n```\n\nCheck out the full code at `examples/chi/main.go`.\n\nYou can also run the example to test out the admin UI:\n\n```bash\ngo run examples/chi/main.go\n```\n\nThis will spin up a server on `http://localhost:8080`. You can then interact with your local server by going to `https://sqliteadmin.dev` and passing in the following credentials:\n\n```\nusername: user\npassword: password\nendpoint: http://localhost:8080/admin\n```\n\n\u003e [!NOTE]  \n\u003e If you are seeing \"An unexpected error occurred\" when trying to connect, try disabling your adblock.\n\n## Installing as a binary\n\n1. Using `go install`:\n\n```bash\ngo install github.com/joelseq/sqliteadmin-go/cmd/sqliteadmin@latest\n```\n\n2. Using `go build` (after cloning the repository):\n\n```bash\nmake build\n```\n\nThis will add the `sqliteadmin` binary to `/tmp/bin`\n\n### Usage\n\nIn order to add authentication, the following environment variables are required: `SQLITEADMIN_USERNAME`, `SQLITEADMIN_PASSWORD`.\n\ne.g.:\n\n```bash\nexport SQLITEADMIN_USERNAME=user\nexport SQLITEADMIN_PASSWORD=password\n```\n\nStart the server\n\n```bash\nsqliteadmin serve \u003cpath to sqlite db\u003e -p 8080\n```\n\nYour SQLite database can now be accessed by visiting https://sqliteadmin.dev and providing the credentials and endpoint (including port).\n\n## Inspiration\n\nThe UI is heavily inspired by [Drizzle Studio](https://orm.drizzle.team/drizzle-studio/overview).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelseq%2Fsqliteadmin-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoelseq%2Fsqliteadmin-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoelseq%2Fsqliteadmin-go/lists"}