HomeProjectsAI FilesBlog

© 2026 Matheus Pires. All rights reserved.

AI Tools/Monorepo Template

Monorepo Template

A full product starting point — Bun + Turborepo monorepo with backend, web, mobile, database, auth, queues and payments already decided, plus a rule system that keeps AI agents on those conventions.

Repository
Installation
git clone https://github.com/mpires-dev/template-app-mpires.git my-project
Summary

A full product starting point — Bun + Turborepo monorepo with backend, web, mobile, database, auth, queues and payments already decided, plus a rule system that keeps AI agents on those conventions.

Details

Overview

Not a boilerplate to copy snippets from — the entire starting point. Clone it, run bun run init, and you have a project with conventions, a quality gate and documentation already in place.

The interesting part is not the stack. It is that the conventions are enforced rather than described: whatever CI can check becomes a lint rule, a GritQL plugin or a step in the gate, and only what cannot be automated stays as prose. AI agents read AGENTS.md first, then a per-domain skill in .claude/ carrying the pattern and its known traps.

Presets

Pick one at init; none of them is a dead end.

  • solo — server, web. A single product with auth inside the app.
  • platform — adds auth and backoffice. Several frontends sharing one session.
  • full — adds mobile and landing. The complete product.

Stack

  • Runtime and monorepo: Bun, Turborepo
  • Backend: Elysia
  • Web: Next.js 16 (App Router), React 19
  • Mobile: Expo + React Native, iOS-first
  • Database: PostgreSQL + Drizzle, with PostGIS and pgvector available
  • Cache and queues: Redis/Valkey + BullMQ
  • Auth: Better Auth
  • Email: Resend + React Email
  • Design system: COSS UI (shadcn + Base UI) + Tailwind 4 on web, HeroUI Native on mobile
  • Storage: S3 in production, MinIO in development
  • Payments: Asaas for Brazil, Stripe internationally
  • Quality: Ultracite (Biome)

Optional capabilities

What not every project needs is not installed by default. Each capability is a recipe an agent applies on its own — payments, vector search, geolocation, video transcoding, landing pages, or the mobile app.

/add-recipe payments-asaas
/add-recipe search-vector
/add-recipe geo
/add-recipe media-video
Related tools
  • Deep Research

    A research harness that fans out parallel web searches, fetches the sources, adversarially verifies every claim, and synthesizes a cited report.

  • Elysia Modular Backend Skill

    An AI skill to develop modular backends with Elysia with ease

Install
git clone https://github.com/mpires-dev/template-app-mpires.git my-project
Repository
mpires-dev/template-app-mpires