{"id":49335139,"url":"https://github.com/bedstack/elysia-prisma-realworld-example","last_synced_at":"2026-04-27T00:32:01.443Z","repository":{"id":300403452,"uuid":"1006085691","full_name":"bedstack/elysia-prisma-realworld-example","owner":"bedstack","description":"RealWorld backend implementation built with ElysiaJS and Prisma","archived":false,"fork":false,"pushed_at":"2026-04-24T00:31:28.000Z","size":497,"stargazers_count":3,"open_issues_count":10,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-24T02:26:54.449Z","etag":null,"topics":["arktype","backend","biomejs","bun","elysiajs","prisma","realworld","realworld-backend","scalar","server","typescript","web"],"latest_commit_sha":null,"homepage":"https://realworld.io","language":"TypeScript","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/bedstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":null,"dco":null,"cla":null}},"created_at":"2025-06-21T13:10:31.000Z","updated_at":"2026-02-06T09:00:31.000Z","dependencies_parsed_at":"2025-06-21T14:29:35.273Z","dependency_job_id":"30d371c9-98f2-4508-b569-d16a7bb664b3","html_url":"https://github.com/bedstack/elysia-prisma-realworld-example","commit_stats":null,"previous_names":["bedtime-coders/bepstack","bedstack/elysia-prisma-realworld-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bedstack/elysia-prisma-realworld-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedstack%2Felysia-prisma-realworld-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedstack%2Felysia-prisma-realworld-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedstack%2Felysia-prisma-realworld-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedstack%2Felysia-prisma-realworld-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bedstack","download_url":"https://codeload.github.com/bedstack/elysia-prisma-realworld-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bedstack%2Felysia-prisma-realworld-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32318417,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"ssl_error","status_checked_at":"2026-04-26T23:26:25.802Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["arktype","backend","biomejs","bun","elysiajs","prisma","realworld","realworld-backend","scalar","server","typescript","web"],"created_at":"2026-04-27T00:32:00.910Z","updated_at":"2026-04-27T00:32:01.432Z","avatar_url":"https://github.com/bedstack.png","language":"TypeScript","readme":"# ![RealWorld Example App](assets/logo.png)\n\n\u003e ### ElysiaJS + Prisma ORM codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the [RealWorld](https://github.com/gothinkster/realworld) spec and API.\n\n### [Demo](https://demo.realworld.show)\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;[RealWorld](https://github.com/gothinkster/realworld)\n\n[![Tests Status](https://github.com/bedstack/elysia-prisma-realworld-example/actions/workflows/tests.yml/badge.svg?event=push\u0026branch=main\u0026)](https://github.com/bedstack/elysia-prisma-realworld-example/actions/workflows/tests.yml?query=branch%3Amain+event%3Apush) [![License](https://custom-icon-badges.demolab.com/github/license/bedstack/elysia-prisma-realworld-example?label=License\u0026color=blue\u0026logo=law\u0026labelColor=0d1117)](https://github.com/bedstack/elysia-prisma-realworld-example/blob/main/LICENSE) [![ElysiaJS](https://custom-icon-badges.demolab.com/badge/ElysiaJS-0f172b.svg?logo=elysia)](https://elysiajs.com/) [![Prisma](https://img.shields.io/badge/Prisma-2D3748?logo=prisma\u0026logoColor=white)](https://www.prisma.io/) [![ArkType](https://custom-icon-badges.demolab.com/badge/ArkType-0d1526?logo=arktype2\u0026logoColor=e9eef9)](https://arktype.io/) [![Scalar](https://img.shields.io/badge/Scalar-080808?logo=scalar\u0026logoColor=e7e7e7)](https://scalar.com/) [![Bun](https://img.shields.io/badge/Bun-14151a?logo=bun\u0026logoColor=fbf0df)](https://bun.com/) [![Biome](https://img.shields.io/badge/Biome-24272f?logo=biome\u0026logoColor=f6f6f9)](https://biomejs.dev/) [![Star](https://custom-icon-badges.demolab.com/github/stars/bedstack/elysia-prisma-realworld-example?logo=star\u0026logoColor=373737\u0026label=Star)](https://github.com/bedstack/elysia-prisma-realworld-example/stargazers/)\n\nThis codebase was created to demonstrate a fully fledged backend application built with **[ElysiaJS](https://elysiajs.com/)** and **[Prisma ORM](https://www.prisma.io/)** including CRUD operations, authentication, routing, pagination, and more.\n\nWe've gone to great lengths to adhere to the **ElysiaJS** and **Prisma ORM** community styleguides \u0026 best practices.\n\nFor more information on how this works with other frontends/backends, head over to the [RealWorld](https://github.com/gothinkster/realworld) repo.\n\n# How it works\n\n## Architecture\n\nThis project follows the [Bedstack](https://bedstack.js.org/) architecture - a modular, layered approach to building TypeScript backends:\n\n- **Modular structure** - Each domain (users, articles, comments, etc.) is a self-contained module with its own plugin, model, and DTOs\n- **Layered design** - Clear separation between Controller (HTTP handling) → Service (business logic) → Repository (data access)\n- **Type-safe data flow** - DTOs define request/response shapes, mappers transform between layers, schemas define database tables\n\n```\nsrc/\n├── users/          # User module\n│   ├── users.plugin.ts\n│   ├── users.model.ts\n│   ├── interfaces/\n│   └── mappers/\n├── articles/       # Article module (same structure)\n├── shared/         # Shared utilities and error handling\n└── core/           # Core app setup, db, env\n```\n\n[Read more about the Bedstack architecture →](https://bedstack.js.org/)\n\n## Technologies\n\n- **[ElysiaJS](https://elysiajs.com/)** - Web framework for HTTP\n- **[Prisma ORM](https://www.prisma.io/)** - TypeScript ORM for PostgreSQL\n- **[ArkType](https://arktype.io/)** - Runtime validation\n- **[Scalar](https://scalar.com/)** - API documentation\n- **[Bun](https://bun.sh/)** - JavaScript runtime and package manager\n- **[Biome](https://biomejs.dev/)** - Linting and formatting\n\n# Getting started\n\n1. **Install dependencies**\n\n    ```sh\n    bun i\n    ```\n\n2. **Create a `.env` file**\n\n   ```sh\n   cp .env.example .env\n   ```\n\n   Use the provided example values or replace them with your own.\n\n3. **Ensure Docker daemon is running and start the database service**\n\n   ```sh\n   bun db:start\n   ```\n\n4. **Push the schema to the database**\n\n   ```sh\n   bun db:push\n   ```\n\n5. **Run the development server**\n\n   ```sh\n   bun dev\n   ```\n\n6. **Run the API tests**\n\n   ```sh\n   bun run test # not `bun test`!\n   ```\n\n7. **(Optional) Start the [database studio](https://www.prisma.io/studio)**\n   ```bash\n   bun db:studio\n   ```\n\n# Deploy to production\n\n\u003e [!TIP]\n\u003e See more info in ElysiaJS's [Deploy to production](https://elysiajs.com/patterns/deploy) pattern.\n\n1. **Build the app**\n\n   ```sh\n   bun run build # not `bun build`!\n   ```\n\n2. **Run the server**\n\n   ```sh\n   bun preview\n   ```\n\n# Need help?\n\nIf you have questions or ideas:\n- Open a [GitHub Discussion](https://github.com/bedstack/elysia-prisma-realworld-example/discussions)\n- Open an [Issue](https://github.com/bedstack/elysia-prisma-realworld-example/issues) if you believe you found a bug\n\n# Contributors\n\nYou are welcome to [contribute to the project](https://github.com/bedstack/elysia-prisma-realworld-example/blob/main/CONTRIBUTING.md)!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbedstack%2Felysia-prisma-realworld-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbedstack%2Felysia-prisma-realworld-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbedstack%2Felysia-prisma-realworld-example/lists"}