Bun-Powered Full StackWith SST

A complete SST template with authentication, Next.js, PostgreSQL with Drizzle ORM, Expo mobile, API routes, and more. All powered by SST and Bun, deployed to AWS with ease.

Everything You Need

A complete stack for modern applications, ready to deploy to AWS.

Authentication

Integrated OpenAuth for secure user authentication across all services

Next.js Platform

Modern frontend with SSR, file-based routing, and TypeScript

Drizzle ORM

Type-safe database access with PostgreSQL on AWS RDS

Expo Mobile

Share SST secrets with your mobile app for seamless integration

API Routes

Bun-powered API endpoints deployed as ECS services

Coming Soon

Telegram bot (ECS), webhooks (Lambda), and Polar payments

Smart Architecture

Deploy to AWS with confidence using SST's infrastructure as code and Bun's JavaScript runtime.

AWS-Powered Infrastructure

  • Deploy your entire stack with a single command
  • ECS services for API and bot applications
  • RDS PostgreSQL for reliable data storage
  • CloudFront CDN for lightning-fast content delivery
  • Lambda functions for auth and webhooks
  • S3 storage for all your static assets
SST + AWS

Infrastructure as code

Technical Details

A modern monorepo structure with a clean separation of concerns, all powered by Bun.

Bun-Powered Development

StackForge leverages Bun as the JavaScript runtime for the entire stack, delivering improved performance and a streamlined developer experience.

  • Faster package installations with bun install
  • Bun as the runtime for all services
  • Improved performance over Node.js
  • Simplified development with SST
  • Smaller memory footprint
  • Faster startup times for API endpoints
SST + Bun Workflow
# Start the development environment
$ bunx sst dev

# Local development
- Next.js, API routes, and more running simultaneously
- SST connects all parts of your stack  
- Live reloading across all services

# Deploy to production
$ bunx sst deploy --stage prod

# Database commands
$ bun db migrate           # Run database migrations  
$ bun dev:db migrate       # Run migrations in dev

# Tunnel for local testing
$ bun dev:tunnel           # Create secure tunnel

Monorepo Architecture

StackForge uses a carefully organized monorepo structure that enables code sharing and consistent development practices across all parts of your application.

  • Centralized dependency management
  • Cross-package type safety
  • Simplified CI/CD workflows
  • Atomic commits across related changes
  • Coordinated versioning between components
  • Code reuse and shared utilities
stackforge/
├── apps/                # Application packages
│   ├── platform/        # Next.js web application
│   ├── mobile/          # Expo mobile application 
│   └── api/             # Bun-powered API routes
├── core/                # Shared business logic
│   ├── auth/            # Authentication utilities
│   ├── db/              # Database schema & queries
│   └── utils/           # Shared utilities
├── functions/           # Serverless functions
├── infra/               # SST infrastructure code
└── package.json         # Workspace configuration

Technical Stack

Frontend
  • Next.js 15 with App Router (Bun-powered)
  • TypeScript for type safety
  • TailwindCSS for styling
  • Server-side rendering
  • Client and server components
Backend
  • Bun for API runtime and development
  • OpenAuth for authentication (Lambda)
  • Drizzle ORM with migrations and type safety
  • API and bot deployed as ECS services
  • Zod/Valibot for validations
Mobile
  • Expo framework
  • React Native
  • SST secrets integration
  • TypeScript for type safety
  • Shared authentication flow

Advanced Infrastructure

StackForge leverages SST to deploy and manage complex infrastructure with minimal effort.

// Infrastructure as TypeScript code
export default $config({
  app(input) {
    return {
      name: "stackforge",
      removal: input?.stage === "prod" ? "retain" : "remove",
      protect: ["prod"].includes(input?.stage),
      home: "aws",
      providers: { /*...*/ }
    };
  },
  async run() {
    // Define infrastructure components
    const { vpc } = await import("./infra/vpc");
    const { cluster } = await import("./infra/cluster");
    const { database } = await import("./infra/database");
    // ...more components
  }
});
  • Infrastructure as code using TypeScript
  • Multi-environment support (dev, staging, prod)
  • Automatic secret management
  • Database migration tooling
  • Lambda functions for auth and webhooks
  • ECS services for API and Telegram bot
  • Payment processing via Polar

Ready To Launch

Get your Bun-powered project running in minutes, not days.

Quick Setup with Git

git clone https://github.com/nitishxyz/stackforge.git

Deploy To AWS with Bun

bun run deploy
💻
Demo Coming Soon

Watch this space for an interactive demo

Support Options

Support ongoing development and unlock additional benefits.

Community

Free

Support the project through GitHub contributions

  • Access to documentation
  • GitHub issue support
  • Community Discord
  • Use in personal projects

Sponsor

$10/mo

Fund ongoing development and maintenance

  • All Community features
  • Priority GitHub issue support
  • Name in sponsors list
  • Vote on feature prioritization
  • Email support

Enterprise

$99/mo

For companies using StackForge in production

  • All Sponsor features
  • Dedicated support channel
  • Private support hours (2hr/month)
  • Priority bugfixes
  • Commercial use license

Professional Services

Need help with your project? I offer professional development services.

Consultation

$200 one-time

Expert guidance for your SST-powered project

  • 2-hour consultation session
  • Architecture review
  • Best practices guidance
  • Security recommendations
  • Follow-up summary report

Custom Development

Custom

Professional development services for your project

  • Custom feature development
  • SST & AWS implementation
  • Tailored to your requirements
  • Thorough documentation
  • Deployment and handover

Why Support StackForge?

Faster Development

Your support enables more features and improvements.

Sustainable Future

Help keep the project maintained and secure long-term.

Better Quality

Funding allows for more testing and quality assurance.

Share Your Feedback

Help us improve StackForge by sharing your experience with our template.

Leave a Review

Share your thoughts about StackForge

StackForge

A complete SST template for building and deploying full-stack applications to AWS.

© 2025 StackForge. All rights reserved.