{"id":50929383,"url":"https://github.com/wpfleger96/meowdb","last_synced_at":"2026-06-17T02:31:09.298Z","repository":{"id":365337022,"uuid":"1269448492","full_name":"wpfleger96/meowdb","owner":"wpfleger96","description":"Personal cat meow audio library — record, upload, and play back clips via CLI, REST API, and web UI","archived":false,"fork":false,"pushed_at":"2026-06-16T23:38:35.000Z","size":2474,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T00:17:21.980Z","etag":null,"topics":["fastapi","python","sqlite"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/wpfleger96.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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-14T18:17:30.000Z","updated_at":"2026-06-16T23:38:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wpfleger96/meowdb","commit_stats":null,"previous_names":["wpfleger96/meowdb"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wpfleger96/meowdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpfleger96%2Fmeowdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpfleger96%2Fmeowdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpfleger96%2Fmeowdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpfleger96%2Fmeowdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpfleger96","download_url":"https://codeload.github.com/wpfleger96/meowdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpfleger96%2Fmeowdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34431810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["fastapi","python","sqlite"],"created_at":"2026-06-17T02:31:07.518Z","updated_at":"2026-06-17T02:31:09.292Z","avatar_url":"https://github.com/wpfleger96.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# meowdb\n\n[![CI](https://github.com/wpfleger96/meowdb/actions/workflows/ci.yml/badge.svg)](https://github.com/wpfleger96/meowdb/actions/workflows/ci.yml)\n\nA personal cat meow library. Record, upload, and play back cat meow audio clips. Live at [meowdb.app](https://meowdb.app).\n\n## Architecture\n\n```\nBrowser → Cloudflare (CDN/WAF/geo-block/rate-limit) → Fly.io (Anycast) → MeowDB (FastAPI + SQLite)\n```\n\n- **Compute:** Fly.io `shared-cpu-1x` / 512MB, Seattle (sjc) region, auto-stop/auto-start\n- **Storage:** Fly.io NVMe volume (`meowdb_data`, 1GB) mounted at `/data` for SQLite + audio files\n- **CDN/Security:** Cloudflare proxy — DDoS protection, geo-blocking (US only), login rate limiting, bot protection\n- **Auth:** Shared password via bcrypt + Starlette `SessionMiddleware` (14-day HttpOnly cookies)\n- **Infrastructure as code:** Cloudflare DNS, WAF, and zone settings managed in [homelabconfigs](https://github.com/wpfleger96/homelabconfigs)\n\n## Local Development\n\n```bash\n# Install dependencies\nuv sync\n\n# Start dev server (no auth required at localhost)\nmeowdb serve\n\n# Start dev server with auth enabled (password: test)\njust dev-auth\n\n# Run checks (type, lint, format)\njust check\n\n# Run tests\njust test\n```\n\nRun `just --list` for all available recipes.\n\n## Docker\n\n```bash\n# Start with persistent volume\ndocker compose up\n\n# Rebuild after code changes\ndocker compose up --build\n```\n\nThe compose setup mounts a named volume at `/data` for SQLite and audio files.\n\n## Deployment\n\nDeploys automatically on push to `main` via `.github/workflows/fly-deploy.yml` using `flyctl deploy --remote-only`. The image is built remotely by Fly.io's Depot builder.\n\nTo deploy manually:\n\n```bash\nfly deploy\n```\n\n## Fly.io First-Time Setup\n\nThese are one-time commands run during initial provisioning:\n\n```bash\n# Authenticate\nfly auth login\n\n# Create the app (fly.toml already exists)\nfly launch --name meowdb --region sjc --ha=false --no-deploy\n\n# Create persistent volume\nfly volumes create meowdb_data --size 1 --region sjc\n\n# Generate and set secrets\nfly secrets set MEOWDB_CORS_ORIGINS=https://meowdb.app\nfly secrets set MEOWDB_PASSWORD_HASH=\"$(python -c \"import bcrypt; print(bcrypt.hashpw(b'YOUR_PASSWORD', bcrypt.gensalt()).decode())\")\"\nfly secrets set MEOWDB_SESSION_SECRET=\"$(python -c \"import secrets; print(secrets.token_urlsafe(48))\")\"\n\n# Deploy\nfly deploy\n\n# Add custom domain (run after DNS records are in Cloudflare)\nfly certs add meowdb.app\n```\n\nThe `FLY_API_TOKEN` GitHub secret is set automatically by `fly launch`.\n\n## Environment Variables\n\n| Variable | Default | Description |\n|----------|---------|-------------|\n| `MEOWDB_DATA_DIR` | `~/.local/share/meowdb` | Directory for SQLite DB and audio files |\n| `MEOWDB_HOST` | `127.0.0.1` | Bind address (set to `0.0.0.0` in production) |\n| `MEOWDB_PORT` | `8000` | Listen port |\n| `MEOWDB_CORS_ORIGINS` | `http://localhost:8000,...` | Comma-separated allowed CORS origins |\n| `MEOWDB_PASSWORD_HASH` | _(empty — auth disabled)_ | bcrypt hash of shared password |\n| `MEOWDB_SESSION_SECRET` | _(dev placeholder)_ | Signing key for session cookies |\n\n## Infrastructure\n\nCloudflare configuration (DNS, WAF, zone settings) is managed via Terraform in [homelabconfigs](https://github.com/wpfleger96/homelabconfigs/tree/main/terraform/cloudflare). Changes there deploy automatically on merge to main.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpfleger96%2Fmeowdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpfleger96%2Fmeowdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpfleger96%2Fmeowdb/lists"}