Uni means one. Repo means repository. Unirepo starts with one definition of the software you are building, then carries those decisions across its applications.
Proposed configuration: this guide describes the API we are designing. The configuration loader, framework integrations, and init wizard are not implemented yet. The appearance runtime is available separately.
One product definition
Place unirepo.config.ts beside your root package.json. TypeScript is the recommended format; JavaScript support is also planned.
This is a complete illustration, not a list of mandatory fields. Defaults should make a small configuration useful. The preset ID is a placeholder, not a downloadable preset.
Shared decisions
- project: the product name, description, domain, and stable slug.
- organization: the business and maintainers behind the software.
- legal: license selection and copyright attribution.
- apps: the applications in the repository and their target platforms.
- languages: shared language support, default locale, and direction.
- design: a preset for colors, typography, Typeset, and control treatments.
- features: optional Unirepo capabilities available to those applications.
App names are yours. Web, mobile, and desktop are examples; an admin application or marketing website can have its own entry. Repository defaults should be reusable with explicit per-app overrides. The override contract is still being designed.
Configure once
Framework configuration files may still exist. The goal is for Unirepo to generate or compose them from shared intent, so you do not repeat the same decisions in Next.js, Expo, Vite, or Tauri.
A project name could supply the website title, mobile display name, and desktop product name. Languages and design tokens could be shared across those apps. Each integration must report unsupported mappings rather than silently ignore them. Platform-specific configuration still needs an explicit escape hatch.
Design and appearance
A design preset establishes the default visual foundations. Appearance provides user-facing controls for permitted customization. Brand assets remain the product's identity independently of its chosen preset.
Simple capabilities should accept a boolean and expand into options when needed:
This proposed product-level shorthand is not yet the runtime AppearanceConfig shape. A future integration would translate it into that validated runtime configuration. See Appearance for the API available today.
User-saved themes remain preferences, not edits to unirepo.config. Browser code receives only the configuration it needs, not the entire CLI configuration.
What init will ask
The planned wizard starts with the product: its name, purpose, ownership, and license. It then asks which applications and devices you need, offers suitable framework choices, and collects languages, a design preset, and optional features.
Only relevant questions should appear. Mobile and desktop selections need application identifiers; web-only projects do not. Before writing files, the wizard should present the resulting repository for review.
Adding another application later should reuse the existing identity, languages, design, and capabilities, asking only for the new platform's requirements. These CLI flows are planned, not implemented.
Apps
Read Apps for the shared direction for web, mobile, desktop, and future devices. Platform-specific configuration options will be designed later.
آخر تحديث