{"id":34674672,"url":"https://github.com/techysiddhant/elysia-learning","last_synced_at":"2025-12-24T20:02:29.748Z","repository":{"id":328642239,"uuid":"1111571305","full_name":"techysiddhant/elysia-learning","owner":"techysiddhant","description":"Create Backend API Using Bun + Elysia JS ","archived":false,"fork":false,"pushed_at":"2025-12-14T18:37:36.000Z","size":148,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-16T19:17:09.032Z","etag":null,"topics":["bun","docker","drizzle-orm","elysia","elysiajs","self-hosted"],"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/techysiddhant.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-12-07T07:55:58.000Z","updated_at":"2025-12-14T18:37:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/techysiddhant/elysia-learning","commit_stats":null,"previous_names":["techysiddhant/elysia-learning"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/techysiddhant/elysia-learning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysiddhant%2Felysia-learning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysiddhant%2Felysia-learning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysiddhant%2Felysia-learning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysiddhant%2Felysia-learning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techysiddhant","download_url":"https://codeload.github.com/techysiddhant/elysia-learning/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techysiddhant%2Felysia-learning/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28007459,"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-12-24T02:00:07.193Z","response_time":83,"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":["bun","docker","drizzle-orm","elysia","elysiajs","self-hosted"],"created_at":"2025-12-24T20:01:26.262Z","updated_at":"2025-12-24T20:02:29.741Z","avatar_url":"https://github.com/techysiddhant.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elysia 10x Backend\n\nA high-performance, type-safe backend API built with [ElysiaJS](https://elysiajs.com/) and [Bun](https://bun.sh/). This project leverages modern tooling for a robust developer experience and production-ready features.\n\n## 🚀 Features \u0026 Tech Stack\n\n- **Runtime**: [Bun](https://bun.sh/) - Fast all-in-one JavaScript runtime.\n- **Framework**: [ElysiaJS](https://elysiajs.com/) - Ergonomic web framework for Bun.\n- **Database**: PostgreSQL\n- **ORM**: [Drizzle ORM](https://orm.drizzle.team/) - Lightweight and type-safe ORM.\n- **Authentication**: [Better Auth](https://www.better-auth.com/) - Comprehensive authentication library.\n- **Validation**:\n  - [Zod](https://zod.dev/) - TypeScript-first schema validation.\n  - [TypeBox](https://github.com/sinclairzx81/typebox) - Super fast JSON schema validation (via Drizzle Typebox).\n- **Documentation**: [OpenAPI / Swagger](https://elysiajs.com/plugins/openapi.html) (via `@elysiajs/openapi` and Scalar UI).\n- **Logging**: [Pino](https://github.com/pinojs/pino) - High-performance logger.\n- **Code Quality**:\n  - **Linting**: [ESLint](https://eslint.org/) (Flat Config with TypeScript support).\n  - **Formatting**: [Prettier](https://prettier.io/) (integrated with ESLint).\n  - **Git Hooks**: [Husky](https://typicode.github.io/husky/) + [Lint-staged](https://github.com/lint-staged/lint-staged).\n  - **Commit Convention**: [Commitlint](https://commitlint.js.org/) (enforcing Conventional Commits).\n\n## 🛠️ Prerequisites\n\n- [Bun](https://bun.sh/) (v1.1 or later)\n- PostgreSQL database\n\n## 📦 Installation\n\n```bash\n# Install dependencies\nbun install\n```\n\n## 🏃‍♂️ Development\n\n```bash\n# Start development server with hot reload\nbun run dev\n```\n\nThe API will be available at `http://localhost:4000`.\n\n### Documentation\n- **Swagger UI**: Visit `http://localhost:4000/docs` to view the interactive API documentation.\n\n## 🗄️ Database\n\nThis project uses Drizzle ORM.\n\n```bash\n# Generate migrations\nbun run db:generate\n\n# Apply migrations\nbun run db:migrate\n\n# Open Drizzle Studio (Database GUI)\nbun run db:studio\n```\n\n## 🧹 Code Quality\n\nThis project enforces code quality standards using ESLint, Prettier, and Git hooks.\n\n### Linting \u0026 Formatting\n```bash\n# Check for linting errors\nbun run lint\n\n# Auto-fix linting errors\nbun run lint:fix\n\n# Format code\nbun run format\n\n# Check formatting\nbun run format:check\n```\n\n### Git Hooks\n- **Pre-commit**: Automatically runs `lint-staged` (linting and formatting) on staged files.\n- **Commit-msg**: Validates commit messages using Conventional Commits (e.g., `feat: add user login`, `fix: database connection`).\n\n## 📁 Project Structure\n\n- `src/`\n  - `config/` - Environment and app configuration.\n  - `controllers/` - Request handlers.\n  - `db/` - Database connection and schema definitions.\n  - `lib/` - Shared libraries (e.g., auth, openapi).\n  - `middleware/` - Elysia middleware.\n  - `routes/` - API route definitions (using `@/` path alias).\n  - `services/` - Business logic layer.\n  - `utils/` - Utility functions and models.\n- `.husky/` - Git hooks configuration.\n\n## 📝 License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechysiddhant%2Felysia-learning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechysiddhant%2Felysia-learning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechysiddhant%2Felysia-learning/lists"}