{"id":50403133,"url":"https://github.com/niklas-schmidt-dev/shipable-template-dashboard-go-clerk-postgres-redis","last_synced_at":"2026-05-31T00:04:41.591Z","repository":{"id":361496920,"uuid":"1254509403","full_name":"niklas-schmidt-dev/shipable-template-dashboard-go-clerk-postgres-redis","owner":"niklas-schmidt-dev","description":"A backend-only Go API service with Clerk session verification, Postgres tables, and Dragonfly or Redis caching.","archived":false,"fork":false,"pushed_at":"2026-05-30T21:22:01.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-30T23:21:16.645Z","etag":null,"topics":["backend","dashboard-go-clerk-postgres-redis","shipable","shipable-template"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"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/niklas-schmidt-dev.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-30T16:52:05.000Z","updated_at":"2026-05-30T21:22:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/niklas-schmidt-dev/shipable-template-dashboard-go-clerk-postgres-redis","commit_stats":null,"previous_names":["niklas-schmidt-dev/shipable-template-dashboard-go-clerk-postgres-redis"],"tags_count":null,"template":true,"template_full_name":null,"purl":"pkg:github/niklas-schmidt-dev/shipable-template-dashboard-go-clerk-postgres-redis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-go-clerk-postgres-redis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-go-clerk-postgres-redis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-go-clerk-postgres-redis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-go-clerk-postgres-redis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niklas-schmidt-dev","download_url":"https://codeload.github.com/niklas-schmidt-dev/shipable-template-dashboard-go-clerk-postgres-redis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niklas-schmidt-dev%2Fshipable-template-dashboard-go-clerk-postgres-redis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33714036,"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-05-30T02:00:06.278Z","response_time":92,"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":["backend","dashboard-go-clerk-postgres-redis","shipable","shipable-template"],"created_at":"2026-05-31T00:04:37.374Z","updated_at":"2026-05-31T00:04:41.587Z","avatar_url":"https://github.com/niklas-schmidt-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go + Clerk + Postgres + Dragonfly/Redis Dashboard\n\nA single-binary Go dashboard with Clerk session verification, Postgres reporting tables, and a Redis-compatible cache that works with Dragonfly or Redis.\n\n## Run locally\n\nUse Go 1.25 or newer.\n\n```bash\ncp .env.example .env\ngo mod tidy\ngo run ./cmd/server\n```\n\nOpen `http://localhost:8080`. Without `DATABASE_URL`, `REDIS_URL`, or Clerk values, the app shows preview data and clear runtime status.\n\n## Configure data\n\nApply the SQL files in `db/migrations` to your Postgres database, then set `DATABASE_URL`.\n\nSet `REDIS_URL` to either Redis or Dragonfly. Dragonfly is Redis-compatible, so the same `github.com/redis/go-redis/v9` client and URL shape work for both.\n\n## Configure Clerk\n\nSet these variables:\n\n```bash\nCLERK_SECRET_KEY=sk_...\nCLERK_PUBLISHABLE_KEY=pk_...\n```\n\nThe browser loads a pinned ClerkJS major version, gets a session token, and calls the Go API with `Authorization: Bearer \u003ctoken\u003e`. The Go API uses Clerk's `RequireHeaderAuthorization` and `SessionClaimsFromContext` helpers for protected routes.\n\nRoutes:\n\n- `/api/session` requires a Clerk bearer token.\n- `/api/dashboard` requires a Clerk bearer token when Clerk is configured and returns preview data while Clerk is not configured.\n- `/api/health` reports Postgres, Dragonfly/Redis, and Clerk configuration state.\n\nThe service sets conservative security headers, a Clerk-compatible content security policy, no-store API responses, strict method guards, and bounded server timeouts. Browser-rendered API data is written through DOM text nodes rather than HTML strings.\n\n## Verify\n\n```bash\ngo test ./...\ngo vet ./...\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklas-schmidt-dev%2Fshipable-template-dashboard-go-clerk-postgres-redis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklas-schmidt-dev%2Fshipable-template-dashboard-go-clerk-postgres-redis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklas-schmidt-dev%2Fshipable-template-dashboard-go-clerk-postgres-redis/lists"}