Skip to content

Turborepo Monorepo

Scaffolds a Turborepo monorepo workspace using pnpm. Includes a shared TypeScript base config, a Biome lint + format setup, Turborepo pipeline definitions for build/test/lint/dev, and GitHub Actions CI. Optionally includes shared utility and UI library packages under packages/.

Namemonorepo
Version0.1.0
Categoryinfrastructure
LicenseApache-2.0
Personaengineering
Tagsmonorepo, turborepo, pnpm, typescript, workspace
Sourcetemplates/monorepo

Render it

Three front doors, one catalog. Pick whichever suits the caller.

# CLI
npx @nanohype/sdk render monorepo --out ./my-app

# SDK
import { LocalSource, renderTemplate } from "@nanohype/sdk";
const result = await renderTemplate(source, "monorepo", variables);

# MCP — from an agent
get_template({ name: "monorepo" })

Prerequisites

ToolVersionWhy
pnpm>=9Workspace-aware package manager for the monorepo
node>=22Node.js runtime for TypeScript tooling and Turborepo

Variables

Required

ProjectName string
Kebab-case project name, used as the root workspace name Must be lowercase kebab-case starting with a letter.

Optional

Description string — defaults to A Turborepo monorepo workspace
Short project description for the root package.json and README
PackageManager string — defaults to pnpm
Package manager used for the workspace
IncludeSharedUi bool — defaults to false
Include a shared UI component library package
IncludeSharedUtils bool — defaults to true
Include a shared utilities library package

What it produces

20 files. Placeholder names such as __APP_NAME__ are what the renderer substitutes into.

.env.example
.github/workflows/ci.yml
.gitignore
apps/.gitkeep
biome.json
package.json
packages/shared-ui/package.json
packages/shared-ui/src/index.test.ts
packages/shared-ui/src/index.ts
packages/shared-ui/tsconfig.json
packages/shared-ui/vitest.config.ts
packages/shared-utils/package.json
packages/shared-utils/src/index.test.ts
packages/shared-utils/src/index.ts
packages/shared-utils/tsconfig.json
packages/shared-utils/vitest.config.ts
pnpm-workspace.yaml
README.md
tsconfig.base.json
turbo.json

Composites that use it

  • Agent Team — Multi-agent system with a central orchestrator, specialized agents for research and writing, an evaluation harness, and MCP tool server.
  • AI Chatbot — Full-stack AI chatbot with agentic loop, HTTP service, authentication, evaluation harness, and deployment..
  • AI Platform — Full AI platform with HTTP service, LLM gateway, vector store, data pipeline, auth, billing, and monitoring.
  • AI Web Application — Full-stack web application with Next.js frontend, RAG pipeline, authentication, database, and deployment..
  • Background Processor — Async job processing service with queue, database, storage, observability, and deployment.
  • Cost-Optimized AI Stack — Minimize LLM costs with intelligent routing, response caching, and cost monitoring.
  • Document Intelligence — Document search and question-answering system with RAG pipeline, HTTP service, file storage, database, and deployment..
  • Enterprise AI Infrastructure — Full enterprise AI stack with agents, tool servers, safety guardrails, evaluation, prompt management, observability, and Kubernetes deployment..
  • AI Evaluation Suite — Standalone evaluation infrastructure with test harness, versioned prompts, and guardrails validation.
  • Multi-Agent System — Multi-agent architecture with A2A protocol peers, MCP tool servers, and an orchestrating agent.
  • Product Launch — Full product launch kit spanning engineering, design, QA, product, marketing, and operations.
  • Production API Service — Production-grade TypeScript API service with auth, database, caching, rate limiting, background jobs, observability, and deployment..
  • RAG-Powered Agent — AI agent that uses retrieval-augmented generation as a tool.
  • Research to Prototype — Research-driven prototype pipeline.
  • Safe AI Agent — AI agent with safety guardrails, evaluation harness, and prompt management.