# Macro Engineering Documentation > Technical documentation for the Macro monorepo: SolidJS app, Rust services, sync worker, AI tooling, infrastructure, local development, APIs, configuration, and operations. This is a Grok-Wiki source-grounded repository documentation set. Use the complete Markdown link when an agent needs the full repo context. ## Context Links - [Complete Markdown docs](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/llms-full.txt) - [Complete Markdown alias](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e.md) - [Human interactive docs](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e) - [GitHub repository](https://github.com/macro-inc/macro) ## Repository - Repository: macro-inc/macro - Generated: 2026-06-01T01:07:41.847Z - Updated: 2026-06-01T02:14:57.236Z - Runtime: Pi · Codex · gpt-5.5 - Format: Documentation - Pages: 29 ## Pages - [Overview](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/01-overview.md): Overview: Public entry points, repository surfaces, runtime assumptions, and the shortest successful path through the docs. - [Installation](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/02-installation.md): Install: Required tools, Nix option, encrypted environment setup, Docker resources, LocalStack, FusionAuth, and first setup command. - [Local development quickstart](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/03-local-development-quickstart.md): Quickstart: Bring up local services with just recipes, shared Compose resources, database initialization, and expected health signals. - [Frontend quickstart](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/04-frontend-quickstart.md): Quickstart: Run the SolidJS app, choose local or remote services, understand app routing, and start Tauri development. - [Local E2E smoke tests](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/05-local-e2e-smoke-tests.md): Guide: Run deterministic Playwright and ignored Rust smoke tests against the local-only stack and shared seed fixtures. - [Monorepo map](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/06-monorepo-map.md): Concept: Workspace boundaries, package managers, major runtime folders, generated documentation, and where source-of-truth manifests live. - [Runtime environments and service URLs](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/07-runtime-environments-and-service-urls.md): Concept: Environment values, local versus dev versus production URL resolution, CORS rules, and frontend service selection. - [Service topology](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/08-service-topology.md): Concept: Rust services, workers, queues, storage dependencies, ports, and deployment boundaries used by the local and cloud stacks. - [Entities and blocks](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/09-entities-and-blocks.md): Concept: Item types, document-backed and non-document blocks, aliases, load sources, nesting rules, and file type resolution. - [Split layout and navigation](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/10-split-layout-and-navigation.md): Concept: Route encoding, component registry entries, split history, navigation causes, popovers, and desktop versus mobile split behavior. - [Real-time document sync](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/11-real-time-document-sync.md): Concept: Sync-service worker routes, Durable Object sessions, permission tokens, Bebop messages, snapshot lifecycle, and client reconnect behavior. - [Run backend services locally](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/12-run-backend-services-locally.md): Guide: Start databases, LocalStack, FusionAuth, Rust services, optional processor profiles, and local health checks. - [Develop SolidJS and Tauri apps](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/13-develop-solidjs-and-tauri-apps.md): Guide: Use Bun and Vite, run local service overrides, build app bundles, start Tauri targets, and avoid iOS worker deadlocks. - [Change a Rust service API](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/14-change-a-rust-service-api.md): Guide: Update Axum handlers, OpenAPI emitters, generated client specs, Orval output, and CI checks for service API changes. - [Generate service clients and tool schemas](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/15-generate-service-clients-and-tool-schemas.md): Guide: Regenerate OpenAPI JSON, TypeScript clients, DCS model types, AI tool schemas, and MCP documentation pages from Rust sources. - [Work with local seed data](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/16-work-with-local-seed-data.md): Guide: Use seed_cli, local_e2e fixtures, manifest aliases, reset SQL, and shared Playwright and Rust fixture loaders. - [Storage and workspace APIs](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/17-storage-and-workspace-apis.md): Reference: Document, channel, project, call, CRM, soup, pin, history, permissions, properties, and search endpoints. - [Auth and team APIs](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/18-auth-and-team-apis.md): Reference: Login, OAuth callbacks, JWT refresh, account links, team membership, invites, permissions, billing, and user endpoints. - [Email and notification APIs](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/19-email-and-notification-apis.md): Reference: Gmail init and sync, drafts, threads, labels, attachments, notification preferences, unread state, and unsubscribe routes. - [AI chat streaming API](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/20-ai-chat-streaming-api.md): Reference: DCS chat endpoints, stream payloads, toolset selection, model identifiers, extraction statuses, structured completion, and stop semantics. - [MCP server and tool registry](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/21-mcp-server-and-tool-registry.md): Reference: Remote MCP endpoint, OAuth-backed server, toolset composition, SendEmail boundary, generated schemas, and docs tool pages. - [Environment variables reference](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/22-environment-variables-reference.md): Reference: Required and optional service environment variables, defaults, secrets, queue names, ports, and provider-specific keys. - [Database migrations and SQLx cache](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/23-database-migrations-and-sqlx-cache.md): Operations: MacroDB migrations, local database just recipes, SQLx offline cache, fixture data, and migration validation workflow. - [Feature flags and server selection](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/24-feature-flags-and-server-selection.md): Reference: Vite environment overrides, feature flag defaults, local service selection syntax, sync-service host selection, and runtime host helpers. - [Infrastructure stacks reference](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/25-infrastructure-stacks-reference.md): Reference: Pulumi stack layout, reusable resources, service stacks, buckets, queues, Datadog sidecars, FusionAuth, and deployment inputs. - [Build, test, and quality gates](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/26-build-test-and-quality-gates.md): Operations: Rust checks, clippy, SQLx preparation, TypeScript checks, Biome, Tailwind hygiene, Vitest, Playwright, and CI path filters. - [Deploy services and web app](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/27-deploy-services-and-web-app.md): Operations: Generic service deployment, web app deployment, production release workflow, database migrations, Pulumi stacks, and deployment concurrency. - [Observability and debugging](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/28-observability-and-debugging.md): Operations: Backend tracing initialization, Datadog ECS sidecars, browser RUM and logs, sourcemaps, local debug signals, and iOS WebView freeze diagnosis. - [Documentation site maintenance](https://grok-wiki.com/public/docs/macro-inc-macro-bb988e1a448e/pages/29-documentation-site-maintenance.md): Contribution: Maintain the Mintlify docs site, navigation manifest, generated MCP pages, local preview, broken-link checks, and writing conventions. ## Source Files - `.github/workflows/code-check-cloud-storage.yml` - `.github/workflows/deploy-service-generic.yml` - `.github/workflows/deploy-web-app.yml` - `.github/workflows/migrate-macro-db.yml` - `.github/workflows/release-production.yml` - `.github/workflows/reusable-deploy-service.yml` - `.github/workflows/web-app-check-main.yml` - `docker-compose-databases.yml` - `docker-compose.local-e2e.yml` - `docker-compose.yml` - `docs/AGENTS.md` - `docs/AI/mcp/overview.mdx` - `docs/AI/mcp/tools/index.mdx` - `docs/config/tool-pages.json` - `docs/CONTRIBUTING.md` - `docs/docs.json` - `docs/package.json` - `docs/README.md` - `docs/scripts/generate-mcp-tool-pages.ts` - `flake.nix` - `infra/packages/lambda/src/index.ts` - `infra/packages/resources/src/index.ts` - `infra/packages/resources/src/resources/datadog.ts` - `infra/packages/service/src/index.ts` - `infra/packages/shared/src/ai_tools.ts` - `infra/README.md` - `infra/stacks/document-storage/index.ts` - `infra/stacks/fusionauth-instance/README.md` - `infra/stacks/mcp-server/index.ts` - `js/app/AGENTS.md` - `js/app/justfile` - `js/app/package.json` - `js/app/packages/app/component/Root.tsx` - `js/app/packages/app/component/split-layout/componentRegistry.tsx` - `js/app/packages/app/component/split-layout/layout.ts` - `js/app/packages/app/component/split-layout/layoutManager.ts` - `js/app/packages/app/component/split-layout/SplitLayoutRoute.tsx` - `js/app/packages/app/component/split-layout/tests/layoutManager.test.ts` - `js/app/packages/app/index.tsx` - `js/app/packages/app/vite.config.ts` - `js/app/packages/block-md/definition.ts` - `js/app/packages/block-project/definition.ts` - `js/app/packages/core/auth/logout.ts` - `js/app/packages/core/auth/sso.ts` - `js/app/packages/core/block.ts` - `js/app/packages/core/component/AI/types/index.ts` - `js/app/packages/core/constant/allBlocks.ts` - `js/app/packages/core/constant/featureFlags.ts` - `js/app/packages/core/constant/servers.ts` - `js/app/packages/core/tests/featureFlags.test.ts` - `js/app/packages/observability/src/index.ts` - `js/app/packages/service-clients/orval.config.ts` - `js/app/packages/service-clients/service-auth/client.ts` - `js/app/packages/service-clients/service-auth/openapi.json` - `js/app/packages/service-clients/service-cognition/client.ts` - `js/app/packages/service-clients/service-cognition/openapi.json` - `js/app/packages/service-clients/service-email/client.ts` - `js/app/packages/service-clients/service-email/openapi.json` - `js/app/packages/service-clients/service-notification/client.ts` - `js/app/packages/service-clients/service-notification/openapi.json` - `js/app/packages/service-clients/service-properties/client.ts` - `js/app/packages/service-clients/service-properties/openapi.json` - `js/app/packages/service-clients/service-search/client.ts` - `js/app/packages/service-clients/service-search/openapi.json` - `js/app/packages/service-clients/service-storage/client.ts` - `js/app/packages/service-clients/service-storage/openapi.json` - `js/app/packages/service-clients/service-sync/client.ts` - `js/app/packages/service-clients/service-sync/source.ts` - `js/app/README.md` - `js/app/scripts/generate-api-schema.ts` - `js/app/scripts/generate-dcs-tools.ts` - `js/app/scripts/services.ts` - `js/app/tauri/src-tauri/README.md` - `js/app/tests/e2e/fixtures/local-e2e-seed.ts` - `js/package.json` - `justfile` - `local_stack.just` - `README.md` - `RUNNING_LOCALLY.md` - `rust/cloud-storage/agent/src/model.rs` - `rust/cloud-storage/AGENTS.md` - `rust/cloud-storage/ai_tools/src/bin/gen_tool_schemas.rs` - `rust/cloud-storage/ai_tools/src/lib.rs` - `rust/cloud-storage/authentication_service/src/config.rs` - `rust/cloud-storage/authentication_service/src/openapi.rs` - `rust/cloud-storage/Cargo.toml` - `rust/cloud-storage/chat/.sqlx/query-57fc603adf83fd7c07968425c98f9a57924573692cf0529ad021b6eef00ce99e.json` - `rust/cloud-storage/database.just` - `rust/cloud-storage/document_cognition_service/src/api/stream/chat_message/mod.rs` - `rust/cloud-storage/document_cognition_service/src/api/stream/stop.rs` - `rust/cloud-storage/document_cognition_service/src/config.rs` - `rust/cloud-storage/document_cognition_service/src/model/stream.rs` - `rust/cloud-storage/document_cognition_service/src/openapi.rs` - `rust/cloud-storage/document_storage_service/src/config.rs` - `rust/cloud-storage/document_storage_service/src/openapi.rs` - `rust/cloud-storage/email_service/src/config.rs` - `rust/cloud-storage/email_service/src/openapi.rs` - `rust/cloud-storage/integration_tests/local_e2e/README.md` - `rust/cloud-storage/justfile` - `rust/cloud-storage/local_e2e_test_support/README.md` - `rust/cloud-storage/macro_cors/src/lib.rs` - `rust/cloud-storage/macro_db_client/migrations/0001_baseline.sql` - `rust/cloud-storage/macro_db_client/README.md` - `rust/cloud-storage/macro_entrypoint/src/lib.rs` - `rust/cloud-storage/macro_env/src/lib.rs` - `rust/cloud-storage/macro_service_urls/src/lib.rs` - `rust/cloud-storage/mcp_service/src/main.rs` - `rust/cloud-storage/mcp_service/src/tool_service.rs` - `rust/cloud-storage/models_soup/src/lib.rs` - `rust/cloud-storage/notification_service/src/config.rs` - `rust/cloud-storage/notification_service/src/openapi.rs` - `rust/cloud-storage/README.md` - `rust/cloud-storage/search_service/src/config.rs` - `rust/cloud-storage/seed_cli/README.md` - `rust/cloud-storage/seed_cli/seed/local_e2e/manifest.json` - `rust/cloud-storage/seed_cli/seed/local_e2e/reset.sql` - `rust/cloud-storage/seed_cli/seed/local_e2e/users.json` - `rust/cloud-storage/seed_cli/src/main.rs` - `rust/cloud-storage/sqlx.just` - `rust/sync-service/Cargo.toml` - `rust/sync-service/src/cf_worker.rs` - `rust/sync-service/src/durable_object.rs` - `rust/sync-service/src/generated/schema.rs` - `rust/sync-service/src/websocket.rs`