Skip to content

Getting started

This page is the on-ramp: install the toolchain, create or adopt a project, then follow the learning path in the sidebar (same idea as Flutter documentation — start here, then branch by topic).


1. Install the toolchain

A. Global CLI (so omega is available everywhere):

bash
dart pub global activate omega_architecture

Bleeding edge from Git:

bash
dart pub global activate --source git https://github.com/yefersonSegura/omega_architecture.git

Add Pub’s bin to your PATH:

OSTypical path
Windows%LOCALAPPDATA%\Pub\Cache\bin → e.g. C:\Users\<you>\AppData\Local\Pub\Cache\bin
macOS / Linux$HOME/.pub-cache/bin

Verify:

bash
omega --help

If the shell cannot find omega, use dart run omega_architecture:omega … from a project that lists the package in pubspec.yaml, or invoke omega.bat by full path on Windows. Pub does not support dart pub global run for Flutter-dependent globals — see the README for details.


2. New application

bash
omega create app my_app
cd my_app && flutter run

Optional AI kickstart (requires env + keys):

bash
omega create app my_store --kickstart "e-commerce with cart" --provider-api

3. Existing Flutter app

Add the dependency (pick the current version on pub.dev):

yaml
dependencies:
  omega_architecture: ^1.0.5

From the app root:

bash
dart run omega_architecture:omega init

Then align lib/omega/omega_setup.dart with your modules — see omega_setup.dart and the example/ tree on GitHub.


StepGuideWhy
1Vision & why OmegaFit and trade-offs
2Core conceptsGlossary
3Data flowEnd-to-end path
4Total architectureOne map of the whole stack
5omega_setup.dartComposition + cold start
6Channel & eventsIntents & flowsAgentsCore library
7Navigation & routesnavigate.* and typed routes
8Omega CLIEvery command + omega ai
9InspectorDebug UX
10TestingTests without heavy UI
11Contracts / Time travel / Offline-firstAdvanced topics
12Comparisonvs BLoC / Riverpod

5. API reference

Generated API docs live on pub.dev: omega_architecture API.

The API reference page in this site explains how to navigate them.