{"id":14155435,"url":"https://github.com/encoredev/examples","last_synced_at":"2025-05-16T04:07:04.306Z","repository":{"id":36999282,"uuid":"310833131","full_name":"encoredev/examples","owner":"encoredev","description":"Examples for Encore","archived":false,"fork":false,"pushed_at":"2025-04-16T07:09:24.000Z","size":24721,"stargazers_count":326,"open_issues_count":25,"forks_count":72,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-15T16:03:43.447Z","etag":null,"topics":["encore","golang","hacktoberfest","typescript"],"latest_commit_sha":null,"homepage":"","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/encoredev.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}},"created_at":"2020-11-07T11:50:16.000Z","updated_at":"2025-05-14T08:31:37.000Z","dependencies_parsed_at":"2023-02-14T02:16:28.491Z","dependency_job_id":"585c03ee-9c72-4e7e-b508-f9f5c25bf5e3","html_url":"https://github.com/encoredev/examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encoredev%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encoredev%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encoredev%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/encoredev%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/encoredev","download_url":"https://codeload.github.com/encoredev/examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464897,"owners_count":22075571,"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","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":["encore","golang","hacktoberfest","typescript"],"created_at":"2024-08-17T08:03:12.409Z","updated_at":"2025-05-16T04:06:59.296Z","avatar_url":"https://github.com/encoredev.png","language":"TypeScript","funding_links":[],"categories":["hacktoberfest"],"sub_categories":[],"readme":"\u003cp align=\"center\" dir=\"auto\"\u003e\n\u003ca href=\"https://encore.dev\"\u003e\u003cimg src=\"https://user-images.githubusercontent.com/78424526/214602214-52e0483a-b5fc-4d4c-b03e-0b7b23e012df.svg\" width=\"160px\" alt=\"encore icon\"\u003e\u003c/img\u003e\u003c/a\u003e\u003cbr/\u003e\u003cbr/\u003e\n\u003cb\u003eEncore Templates\u003c/b\u003e\u003cbr/\u003e\nTemplates to help you build backend applications with \u003ca href=\"https://github.com/encoredev/encore\"\u003eEncore\u003c/a\u003e.\n\u003c/p\u003e\n\n## Template types\n\nThis repo contains two types of templates:\n\n- **Starters:** Runnable Encore applications to use as they are or to take inspiration from.\n- **Bits:** Small re-usable parts solving common development patterns or integrating Encore applications with\n  third-party APIs and services.\n\n## Prerequisite: Install Encore\n\nIf this is the first time you're using Encore, you first need to install the CLI that runs the local development\nenvironment. Use the appropriate command for your system:\n\n- **macOS:** `brew install encoredev/tap/encore`\n- **Linux:** `curl -L https://encore.dev/install.sh | bash`\n- **Windows:** `iwr https://encore.dev/install.ps1 | iex`\n\n## Starters\n\nCreate a local app from a template by running:\n\n```bash\nencore app create [app-name] --example=[folder-name]\n```\n\nE.g. `encore app create my-app --example=ts/hello-world`\n\n### TypeScript starters\n\n| Name                                                             | Description                                                                                                              | Primitives                                                             |\n|------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------|\n| [ts/hello-world](ts/hello-world)                                 | REST API Starter                                                                                                         | APIs                                                                   |\n| [ts/saas-starter](ts/saas-starter)                               | SaaS Starter (Encore.ts backend, Next.js frontend, Clerk, Stripe)\n| [ts/ai-chat](ts/ai-chat)                                         | LLM chat application which let's you create and chat with personalized bots. Integrates with OpenAI, Anthropic and Slack | Microservices, APIs, SQL Database, Pub/Sub, External Requests, Configs |\n| [ts/streaming](ts/streaming)                                     | Examples of the different WebSocket Streaming APIs                                                                       | Streaming API, Static Endpoint, Frontend                               |\n| [ts/react-starter](ts/react-starter)                             | Encore + React Web App Starter                                                                                           | APIs, Frontend                                                         |\n| [ts/nextjs-starter](ts/nextjs-starter)                           | Encore + Next.js Web App Starter                                                                                         | Microservices, APIs, Frontend                                          |\n| [https://github.com/encoredev/nextjs-starter/](nextjs-starter) † | Encore + Next.js Web App Starter (separate dependencies)                                                                 | Microservices, APIs, Frontend                                          |\n| [ts/graphql](ts/graphql)                                         | Apollo GraphQL Server Starter                                                                                            | APIs, GraphQL                                                          |\n| [ts/streaming-chat](ts/streaming-chat)                           | Simple Chat app using the Streaming API to create a WebSocket stream                                                     | Streaming API, Static Endpoint, Frontend                               |\n| [ts/simple-event-driven](ts/simple-event-driven)                 | Simple Event-Driven Application                                                                                          | Microservices, SQL Database, Pub/Sub, Secrets                          |\n| [ts/uptime](ts/uptime)                                           | Event-Driven Architecture Starter (Uptime Monitor)                                                                       | Microservices, SQL Databases, Pub/Sub, Cron Jobs                       |\n| [ts/gpt-functions](ts/gpt-functions)                             | ChatGPT Functions with Encore Example                                                                                    | APIs                                                                   |\n| [ts/url-shortener](ts/url-shortener)                             | Basic url shortener                                                                                                      | APIs, SQL Database                                                     |\n| [ts/nestjs](ts/nestjs)                                           | Encore + NestJS Example                                                                                                  | APIs, SQL Database, Auth                                               |\n| [ts/slack-bot](ts/slack-bot)                                     | Slack Bot Starter                                                                                                        | APIs, Raw Endpoint                                                     |\n| [ts/auth0-react-sdk](ts/auth0-react-sdk)                         | Auth0 React SDK Authentication + Encore Example                                                                          | APIs, Auth, Frontend                                                   |\n| [ts/clerk](ts/clerk)                                             | Clerk React SDK Authentication + Encore Example                                                                          | APIs, Auth, Frontend                                                   |\n| [ts/supabase](ts/supabase)                                       | Supabase Authentication + Encore Example                                                                                 | APIs, Auth, Frontend                                                   |\n| [ts/elevenlabs](ts/elevenlabs)                                   | ElevenLabs AI Speech SDK + Encore Example                                                                                | APIs, Raw Endpoints, Frontend                                          |\n| [ts/sequelize](ts/sequelize)                                     | Encore + Sequelize TypeScript Example                                                                                    | APIs, SQL Database                                                     |\n| [ts/drizzle](ts/drizzle)                                         | Encore + Drizzle TypeScript Example                                                                                      | APIs, SQL Database                                                     |\n| [ts/knex](ts/knex)                                               | Encore + Knex TypeScript Example                                                                                         | APIs, SQL Database                                                     |\n| [ts/prisma](ts/prisma)                                           | Encore + Prisma TypeScript Example                                                                                       | APIs, SQL Database                                                     |\n| [ts/expressjs-migration](ts/expressjs-migration)                 | Express.js migration guide examples                                                                                      | APIs, Raw Endpoints, Auth, Databases                                   |\n| [ts/file-upload](ts/file-upload)                                 | Upload files from frontend example                                                                                       | Raw Endpoints                                                          |\n| [ts/static-files](ts/static-files)                               | Serving static files example                                                                                             | Static Endpoints                                                       |\n| [ts/middleware](ts/middleware)                                   | Rate limiting and Authorization middleware examples                                                                      | APIs, Auth, Middleware                                                           |\n| [ts/template-engine](ts/template-engine)                         | Using a templating engine                                                                                                | Raw Endpoints, Static Endpoints                                        |\n\n### Go starters\n\n| Name                                       | Description                                                                                                                         | Primitives                                                                                  |\n| ------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |\n| [hello-world](hello-world)                 | REST API Starter                                                                                                                    | APIs                                                                                        |\n| [sql-database](sql-database)               | PostgreSQL database Starter                                                                                                         | APIs, SQL Database                                                                          |\n| [ai-chat](ai-chat)                         | LLM chat room application which let's you create and chat with personalized bots. Integrates with OpenAI, Gemini, Slack and Discord | Microservices, APIs, SQL Database, Pub/Sub, Cron Jobs, Frontend, External Requests, Configs |\n| [assembly-ai](assemblyai-starter)          | AssemblyAI Starter - Conversational Intelligence app that lets you upload and transcribe voice data.                                | APIs, SQL Database, Frontend, External Requests, Configs                                    |\n| [slack-bot](slack-bot)                     | Slack Bot Starter                                                                                                                   | APIs, Webhooks                                                                              |\n| [trello-clone](trello-clone)               | Microservices Starter (Trello Clone)                                                                                                | Microservices, APIs, SQL Database                                                           |\n| [uptime](uptime)                           | Event-Driven Architecture Starter (Uptime Monitor)                                                                                  | Microservices, SQL Databases, Pub/Sub, Cron Jobs                                            |\n| [graphql](graphql)                         | GraphQL Server Starter                                                                                                              | APIs, SQL Database, GraphQL                                                                 |\n| [url-shortener](url-shortener)             | Basic url shortener                                                                                                                 | APIs, SQL Database                                                                          |\n| [sqlc-database](sqlc-database)             | Simple sqlc implementation                                                                                                          | APIs, SQL Database                                                                          |\n| [next-starter](nextjs-starter)             | Next.js + Encore Web App Starter                                                                                                    | APIs, Auth, Frontend                                                                        |\n| [next-auth0-starter](nextjs-auth0-starter) | Next.js + Auth0 + Encore Web App Starter                                                                                            | Microservices, APIs, Auth, Frontend                                                         |\n| [react-starter](react-starter)             | React + Encore Web App Starter                                                                                                      | APIs, Auth, Frontend                                                                        |\n| [booking-system](booking-system)           | Appointment Booking System Starter using data scrubbing and sqlc                                                                    | Microservices, APIs, Auth, SQL Database, Frontend                                           |\n| [meeting-notes](meeting-notes)             | Meeting Notes App deployed to GitHub Pages                                                                                          | APIs, SQL Database, External Requests                                                       |\n| [auth0](auth0)                             | Auth0 Authentication + React + Encore Example                                                                                       | APIs, Auth, Frontend                                                                        |\n| [auth0-react-sdk](auth0-react-sdk)         | Auth0 React SDK Authentication + Encore Example                                                                                     | APIs, Auth, Frontend                                                                        |\n| [clerk](clerk)                             | Clerk React SDK Authentication + Encore Example                                                                                     | APIs, Auth, Frontend                                                                        |\n| [firebase-auth](firebase-auth)             | Firebase Authentication + Encore Example                                                                                            | APIs, Auth, Frontend                                                                        |\n| [logto-react-sdk](logto-react-sdk)         | Logto React SDK Authentication + Encore Example                                                                                     | APIs, Auth, Frontend                                                                        |\n\n† = Cannot be installed using `encore app create --example`, create an empty app and clone the repo instead.\n\n## Bits\n\n### Go Bits\n\nThe [bits](bits) sub-folder contains reusable code samples that can be copied directly into your own application.\n\n| Name                          | Description                                                                          | Primitives             | Requirements                                                                              |\n|-------------------------------|--------------------------------------------------------------------------------------|------------------------|-------------------------------------------------------------------------------------------|\n| [elevenlabs](bits/elevenlabs) | Getting text to speech from [ElevenLabs](https://elevenlabs.io/) generative voice AI | APIs, Secrets          | [ElevenLabs API key](https://docs.elevenlabs.io/api-reference/quick-start/authentication) |\n| [pexels](bits/pexels)         | Searching and retrieving photos and videos from [Pexels](https://www.pexels.com/)    | APIs, Secrets          | [Pexels API key](https://www.pexels.com/api/)                                             |\n| [sendgrid](bits/sendgrid)     | Asynchronous sending emails via [SendGrid](https://sendgrid.com/)                    | APIs, Secrets, Pub/Sub | [SendGrid API key](https://docs.sendgrid.com/ui/account-and-settings/api-keys)            |\n\n## Contribute your templates\n\nContribute a template by submitting a Pull Request to\nthe [Open Source Examples Repo](https://github.com/encoredev/examples): `https://github.com/encoredev/examples`\n\n### Submitting Starters\n\nFollow these steps to submit a **Starter**:\n\n1. Fork the repo.\n2. Create a new folder in the root directory of the repo, this is where you will place your template. Use a short folder\n   name as your template will be installable via the CLI, like\n   so: `encore app create APP-NAME --example=\u003cTEMPLATE_FOLDER_NAME\u003e`\n3. Include a `README.md` with instructions for how to use the template. We recommend\n   following [this format](https://github.com/encoredev/examples/blob/8c7e33243f6bfb1b2654839e996e9a924dcd309e/uptime/README.md).\n\nOnce your Pull Request has been approved, it may be featured on the [Templates page](/templates) on the Encore website.\n\n### Submitting Bits\n\nFollow these steps to submit your **Bits**:\n\n1. Fork the repo.\n2. Create a new folder inside the `bits` folder in the repo and place your template inside it. Use a short folder name\n   as your template will soon be installable via the CLI.\n3. Include a `README.md` with instructions for how to use the template.\n\nOnce your Pull Request has been approved, it may be featured on the [Templates page](/templates) on the Encore website.\n\n### Dynamic Encore AppID\n\nIn most cases, you should avoid hardcoding an `AppID` in your template's source code. Instead, use the\nnotation `{{ENCORE_APP_ID}}`.\n\nWhen a developer creates an app using the template, `{{ENCORE_APP_ID}}` will be dymically replaced with their new and\nunique `AppID`, meaning they will not need to make any manual code adjustments.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencoredev%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fencoredev%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fencoredev%2Fexamples/lists"}