{"id":27146261,"url":"https://github.com/ryands17/libsql-server-test","last_synced_at":"2025-10-11T22:33:52.359Z","repository":{"id":209884688,"uuid":"725176260","full_name":"ryands17/libsql-server-test","owner":"ryands17","description":"My experimentations with LibSQL server","archived":false,"fork":false,"pushed_at":"2024-03-21T08:30:31.000Z","size":42,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-08T10:10:05.266Z","etag":null,"topics":["libsql","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryands17.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-11-29T15:40:24.000Z","updated_at":"2024-11-23T16:24:28.000Z","dependencies_parsed_at":"2023-12-05T06:41:09.322Z","dependency_job_id":null,"html_url":"https://github.com/ryands17/libsql-server-test","commit_stats":null,"previous_names":["ryands17/libsql-server-test"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryands17/libsql-server-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Flibsql-server-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Flibsql-server-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Flibsql-server-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Flibsql-server-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryands17","download_url":"https://codeload.github.com/ryands17/libsql-server-test/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryands17%2Flibsql-server-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279009072,"owners_count":26084549,"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-10-11T02:00:06.511Z","response_time":55,"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":["libsql","typescript"],"created_at":"2025-04-08T10:10:16.833Z","updated_at":"2025-10-11T22:33:52.344Z","avatar_url":"https://github.com/ryands17.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LibSQL Server test\n\nThis is an understanding project on how LibSQL server works. You can use this sample to run a full fledged replicated SQLITE on Kubernetes. This example contains a [docker-compose.yml](./docker-compose.yml) for deploying a main and replica database and uses Drizzle ORM for querying the table. There's a simple `todos` table created to test the functionality out.\n\nAuthorisation has also been implemented using JWT signing and that can be found in the [utils](./utils) folder. This make sure that the database is protected.\n\n## Prereequisites\n\n- Node v18 LTS or above\n- PNPM\n- Docker\n\n## Setup\n\nCreate a `keys` directory to store the public key. To create public and private keys, run the following script:\n\n```\nnode utils/generate-keys.js\n```\n\nThe keys in the public folder will be shared with the SQLite databases to verify calls. The private key will be used by our script to create the JWT.\n\nNext, create a JWT to be used with Drizzle to talk to the DB:\n\n```\nnode utils/generate-token.js\n```\n\nRename the `.env.example` file to `.env` and add the token obtained in the output of the above script to the `DB_AUTH_TOKEN` key. This will make sure that Drizzle can connect to the database securely.\n\n## Commands\n\n- **dev**: Run the test project with Drizzle in watch mode\n- **db:push** - Push changes to the database directly\n- **build** - Build the app for production\n- **start** - Start the built production app\n- **studio** - UI to interact with your database\n\nThings to experiment with:\n\n- [ ] Check out S3 replication\n- [ ] Load test with multiple replicas\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryands17%2Flibsql-server-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryands17%2Flibsql-server-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryands17%2Flibsql-server-test/lists"}