examples  by encoredev

Backend app templates for Encore

created 4 years ago
383 stars

Top 75.7% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides a comprehensive collection of starter templates and reusable code snippets ("Bits") for building backend applications using the Encore framework. It targets developers looking for practical examples and best practices for various backend patterns, including REST APIs, microservices, authentication, databases, and integrations with third-party services. The primary benefit is accelerated backend development through readily available, well-structured examples.

How It Works

The repository is organized into "Starters" and "Bits." Starters are complete, runnable Encore applications demonstrating specific architectures or use cases, such as SaaS platforms, AI chat applications, or event-driven systems. Bits are smaller, modular code examples for common tasks like integrating with ElevenLabs for text-to-speech or SendGrid for email. Applications can be created directly from these templates using the Encore CLI.

Quick Start & Requirements

  • Install Encore CLI: Follow instructions for macOS, Linux, or Windows.
  • Create App: encore app create [app-name] --example=[folder-name]
  • Example: encore app create my-app --example=ts/hello-world
  • Dependencies: Varies by template; may include API keys (e.g., OpenAI, Stripe, ElevenLabs), specific databases (PostgreSQL), or frontend frameworks (React, Next.js).
  • Resources: Templates cover a wide range of primitives including APIs, Microservices, SQL Databases, Pub/Sub, Auth, Frontend, Cron Jobs, and External Requests.

Highlighted Details

  • Extensive coverage of TypeScript and Go starters.
  • Templates demonstrate integrations with Auth0, Clerk, Supabase, Stripe, OpenAI, Anthropic, and more.
  • Includes examples for GraphQL, WebSockets, event-driven architectures, and database ORMs (Sequelize, Drizzle, Knex, Prisma).
  • "Bits" offer copy-pasteable solutions for specific functionalities.

Maintenance & Community

  • Contribute templates via Pull Requests to the encoredev/examples repository.
  • Templates can be dynamically configured with {{ENCORE_APP_ID}} for seamless integration.

Licensing & Compatibility

  • The repository itself is not explicitly licensed in the README. Individual templates may have their own licenses or dependencies. Compatibility for commercial use depends on the specific template and its dependencies.

Limitations & Caveats

  • One starter (https://github.com/encoredev/nextjs-starter/) requires manual cloning instead of direct installation via the CLI.
  • The licensing status of the repository and its contents requires further investigation for commercial applications.
Health Check
Last commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
71 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Travis Fischer Travis Fischer(Founder of Agentic), and
1 more.

fastmcp by punkpeye

3.7%
2k
TypeScript framework for building MCP servers handling client sessions
created 7 months ago
updated 2 days ago
Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Taranjeet Singh Taranjeet Singh(Cofounder of Mem0), and
1 more.

fragments by e2b-dev

0.6%
6k
Next.js template for AI-generated apps
created 1 year ago
updated 1 week ago
Feedback? Help us improve.