{"id":14959231,"url":"https://github.com/sh4yy/tiny-stack","last_synced_at":"2025-04-09T21:23:18.493Z","repository":{"id":214901007,"uuid":"737377881","full_name":"Sh4yy/tiny-stack","owner":"Sh4yy","description":"A simple and tiny stack for building web applications using Astro, SQLite, and Litestream.","archived":false,"fork":false,"pushed_at":"2024-02-03T08:05:04.000Z","size":202,"stargazers_count":228,"open_issues_count":3,"forks_count":15,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-02T19:07:33.470Z","etag":null,"topics":["astro","drizzle","litestream","sqlite3","web"],"latest_commit_sha":null,"homepage":"https://logsnag.com/blog/the-tiny-stack","language":"Astro","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/Sh4yy.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}},"created_at":"2023-12-30T20:13:42.000Z","updated_at":"2025-03-20T10:00:56.000Z","dependencies_parsed_at":"2024-09-29T06:18:54.387Z","dependency_job_id":null,"html_url":"https://github.com/Sh4yy/tiny-stack","commit_stats":{"total_commits":19,"total_committers":4,"mean_commits":4.75,"dds":0.368421052631579,"last_synced_commit":"b3c0b5cc214585e8f55496c7bbf1ed904d786c85"},"previous_names":["sh4yy/tiny-stack"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sh4yy%2Ftiny-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sh4yy%2Ftiny-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sh4yy%2Ftiny-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sh4yy%2Ftiny-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sh4yy","download_url":"https://codeload.github.com/Sh4yy/tiny-stack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248113089,"owners_count":21049781,"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","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":["astro","drizzle","litestream","sqlite3","web"],"created_at":"2024-09-24T13:19:12.492Z","updated_at":"2025-04-09T21:23:18.451Z","avatar_url":"https://github.com/Sh4yy.png","language":"Astro","readme":"# Tiny Stack\n\n![thumbnail](https://github.com/Sh4yy/tiny-stack/assets/23535123/d33b50cd-ca17-4a39-9154-237442fc6c8a)\n\nA simple and tiny stack for building web applications using [Astro](https://astro.build), [SQLite](https://www.sqlite.org/index.html), and [Litestream](https://litestream.io).\n\n## Tutorial\n\n[Here](https://logsnag.com/blog/the-tiny-stack) is a thorough tutorial on the Tiny Stack.\n\n## Quick Start\n\n1. Build the Docker image\n\n```bash\ndocker build -t tiny-stack .\n```\n\n2. Set environment variables\n\nCopy/paste the contents of `.env.example` into a new `.env` file and fill in the values, then run:\n\n```bash\nsource .env\n```\n\nOR export individual variables:\n\n```bash\nexport REPLICA_URL=https://\u003caccount_id\u003e.r2.cloudflarestorage.com\nexport LITESTREAM_ACCESS_KEY_ID=access_key_id\nexport LITESTREAM_SECRET_ACCESS_KEY=secret_access_key\n```\n\n3. Run the Docker image\n\n```bash\ndocker run \\                                                \n  -p 4321:4321 \\\n  -e REPLICA_URL \\\n  -e LITESTREAM_ACCESS_KEY_ID \\\n  -e LITESTREAM_SECRET_ACCESS_KEY \\\n  -v $(pwd)/data:/data \\\n  tiny-stack\n```\n\nThe same command as a single line in case slashes are causing issues:\n\n```bash\ndocker run -p 4321:4321 -e REPLICA_URL -e LITESTREAM_ACCESS_KEY_ID -e LITESTREAM_SECRET_ACCESS_KEY -v $(pwd)/data:/data tiny-stack\n```\n\n4. Head to http://localhost:4321\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh4yy%2Ftiny-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsh4yy%2Ftiny-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsh4yy%2Ftiny-stack/lists"}