Add v2 rewrite: monorepo with desktop and web apps, shared packages, docs, and wireframes

This commit is contained in:
2026-05-14 13:13:21 -04:00
parent 6d7eed9230
commit 379c07b50c
49 changed files with 11607 additions and 0 deletions

12
docs/architecture.md Normal file
View File

@@ -0,0 +1,12 @@
# Architecture
MosaicIQ is split into a small workspace that mirrors the same boundaries used by larger Electron/web monorepos.
- `apps/web`: React and Vite renderer app.
- `apps/desktop`: Electron main process, preload bridge, and local RPC handler.
- `packages/contracts`: shared typed contracts for the renderer/preload/main RPC boundary.
- `packages/shared`: shared runtime data and utilities that are not app-specific.
The renderer never imports Electron directly. It calls the preload bridge through `window.mosaic`, and the Electron main process handles those calls through typed RPC methods from `packages/contracts`.
pnpm is the default package manager for this repo. The committed lockfile is `pnpm-lock.yaml`, and `pnpm-workspace.yaml` owns the Electron/esbuild build-script allowlist needed by pnpm 11.