{"id":27535620,"url":"https://github.com/cpasneedles/surrealstarter","last_synced_at":"2026-05-14T21:33:49.689Z","repository":{"id":287275171,"uuid":"964204389","full_name":"cpasneedles/surrealstarter","owner":"cpasneedles","description":"Rust Axum Api Starter Pack","archived":false,"fork":false,"pushed_at":"2025-06-18T18:17:08.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-11T13:11:31.594Z","etag":null,"topics":["api","axum","cors","discord","error-handling","middleware","oauth2","rate-limit","rust","session-management","starter-pack","surrealdb","tokio","tracing"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/cpasneedles.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":"2025-04-10T21:09:30.000Z","updated_at":"2025-06-18T18:17:12.000Z","dependencies_parsed_at":"2025-10-11T13:10:56.587Z","dependency_job_id":"592852c9-2133-4dec-a8bd-d04e37657ed3","html_url":"https://github.com/cpasneedles/surrealstarter","commit_stats":null,"previous_names":["cpasneedles/surrealstarter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cpasneedles/surrealstarter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpasneedles%2Fsurrealstarter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpasneedles%2Fsurrealstarter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpasneedles%2Fsurrealstarter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpasneedles%2Fsurrealstarter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpasneedles","download_url":"https://codeload.github.com/cpasneedles/surrealstarter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpasneedles%2Fsurrealstarter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33044169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":["api","axum","cors","discord","error-handling","middleware","oauth2","rate-limit","rust","session-management","starter-pack","surrealdb","tokio","tracing"],"created_at":"2025-04-18T19:07:59.409Z","updated_at":"2026-05-14T21:33:49.671Z","avatar_url":"https://github.com/cpasneedles.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\n blazing-fast Axum API starter powered by SurrealDB — perfect for building modern backends with minimal setup and maximum performance.\n\nThis starter includes everything you need to hit the ground running:\n- Axum — ergonomic, modular web framework\n- SurrealDB — [SurrealDB](https://surrealdb.com) for powerful database solutions\n- Oauth2 (Discord) — classic user authentication via Discord\n- CORS — cross-origin resource sharing\n- Middleware — auth session handling\n- Error Handling — consistent and structured error using `anyhow` `thiserror`\n- Session Management — secure, cookie-based sessions\n- Rate Limiting — basic rate control using `tower-governor` \n- Tracing — request tracing using `tracing` and `tracing-subscriber`\n- Docker — containerized environment for easy deployment \n- Caddyfile — basic Caddy configuration for web service\n \n**Edit the `Caddyfile` to set your domain.** \u003cbr /\u003e\n**You may need to modify some elements (port, project name...) to fit your preferences.**\n\n## Getting Started\n\n1. Clone the repo\n\n```bash\ngit clone https://github.com/cpasneedles/surrealstarter\ncd surrealstarter\n```\n\n2. Set up environment variables\n\nCreate a .env file in the root directory and configure the values:\n```env\n# SurrealDB\nSURREAL_ADDRESS=\nSURREAL_USERNAME=\nSURREAL_PASSWORD=\n\n# Discord Oauth2\nDISCORD_CLIENT_ID=\nDISCORD_CLIENT_SECRET=\nDISCORD_REDIRECT_URI=\n```\n\n3. Run SurrealDB locally (optional)\n\nMemory\n```bash\nsurreal start --user root --pass root memory\n```\nVisualize it with Surrealist:\nhttps://surrealdb.com/docs/surrealist/installation\n\nRemote (1 node free): https://surrealist.app/\n\n4. Run the API\n\nDev\n```bash\ncargo watch -x run\n```\n\nDocker\n```bash\ndocker compose up -d\n```\n\n---\n\n# Rewrite it in Rust.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpasneedles%2Fsurrealstarter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpasneedles%2Fsurrealstarter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpasneedles%2Fsurrealstarter/lists"}