diff --git a/.env.development b/.env.development index 168d95143..25247117d 100644 --- a/.env.development +++ b/.env.development @@ -119,14 +119,14 @@ STRIPE_PORTAL_CONFIG_ID=bpc_1T1PFdAZjQCYS0ZJEhF9ob7q # ============================================ # UMAMI ANALYTICS # ============================================ -# All app modules are tracked under the unified ManaCore website ID. +# All app modules are tracked under the unified Mana website ID. # Module segmentation happens via the `module` event property (see analytics.ts). # Register new sites at https://stats.mana.how -UMAMI_WEBSITE_ID_MANACORE=32777167-e026-4618-933a-3429120b479b +UMAMI_WEBSITE_ID_MANA=32777167-e026-4618-933a-3429120b479b # Landing Page Website IDs (separate Astro sites, each needs its own ID) UMAMI_WEBSITE_ID_CHAT_LANDING=a264b165-80d2-47ab-91f4-2efc01de0b66 -UMAMI_WEBSITE_ID_MANACORE_LANDING=cef3798d-85ae-47df-a44a-e9bee09dbcf9 +UMAMI_WEBSITE_ID_MANA_LANDING=cef3798d-85ae-47df-a44a-e9bee09dbcf9 UMAMI_WEBSITE_ID_CARDS_LANDING=2ac83d50-107f-4d4e-ac23-5540946e96e3 UMAMI_WEBSITE_ID_CALENDAR_LANDING=84862d98-727e-4e25-8645-639241dd1544 UMAMI_WEBSITE_ID_CLOCK_LANDING=0332b471-a022-46af-a726-0f45932bfd58 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1115af66..632e4bc99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -229,8 +229,8 @@ jobs: done # mana-web: apps/mana/apps/web + shared packages - MANACORE_WEB_CHANGED=$(check_pattern "apps/mana/apps/web/|apps/mana/packages/") - if [ "$COMMON_CHANGED" == "true" ] || [ "$SHARED_AUTH_CHANGED" == "true" ] || [ "$SHARED_UI_CHANGED" == "true" ] || [ "$SHARED_WEB_CHANGED" == "true" ] || [ "$MANACORE_WEB_CHANGED" == "true" ]; then + MANA_WEB_CHANGED=$(check_pattern "apps/mana/apps/web/|apps/mana/packages/") + if [ "$COMMON_CHANGED" == "true" ] || [ "$SHARED_AUTH_CHANGED" == "true" ] || [ "$SHARED_UI_CHANGED" == "true" ] || [ "$SHARED_WEB_CHANGED" == "true" ] || [ "$MANA_WEB_CHANGED" == "true" ]; then echo "mana-web=true" >> $GITHUB_OUTPUT else echo "mana-web=false" >> $GITHUB_OUTPUT diff --git a/.prettierignore b/.prettierignore index 4176575c8..767bb069d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -35,10 +35,10 @@ TESTING_STRATEGY_AUTH_CREDITS.md .prettiercache # Astro files with JSX-style comments (valid Astro but Prettier can't parse) -apps/manacore/apps/landing/src/components/content/HeroSection.astro -apps/manacore/apps/landing/src/components/sections/ManaPrinciple.astro -apps/manacore/apps/landing/src/pages/apps/index.astro -apps/manacore/apps/landing/src/pages/privacy/index.astro +apps/mana/apps/landing/src/components/content/HeroSection.astro +apps/mana/apps/landing/src/components/sections/ManaPrinciple.astro +apps/mana/apps/landing/src/pages/apps/index.astro +apps/mana/apps/landing/src/pages/privacy/index.astro games/mana-games/apps/web/src/layouts/Layout.astro games/mana-games/apps/web/src/pages/games/[slug].astro games/mana-games/apps/web/src/pages/games/*.astro diff --git a/CLAUDE.md b/CLAUDE.md index 8872a1fa0..d8575c217 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -28,7 +28,7 @@ For comprehensive guidelines on code patterns and conventions, see the `.claude/ | [`.claude/guidelines/error-handling.md`](.claude/guidelines/error-handling.md) | Go-style Result types, error codes | | [`.claude/guidelines/sveltekit-web.md`](.claude/guidelines/sveltekit-web.md) | Svelte 5 runes, stores | | [`.claude/guidelines/expo-mobile.md`](.claude/guidelines/expo-mobile.md) | React Native, NativeWind | -| [`.claude/guidelines/authentication.md`](.claude/guidelines/authentication.md) | Mana Core Auth integration | +| [`.claude/guidelines/authentication.md`](.claude/guidelines/authentication.md) | Mana Auth integration | | [`.claude/guidelines/design-ux.md`](.claude/guidelines/design-ux.md) | UI patterns, animations, a11y | **Always consult these guidelines before making changes.** @@ -276,7 +276,7 @@ Parent workspace packages (e.g., `apps/chat/package.json`, `apps/zitare/package. - SvelteKit 2.x + Svelte 5 - Tailwind CSS -- Mana Core Auth (Better Auth + EdDSA JWT) +- Mana Auth (Better Auth + EdDSA JWT) - Local-first data (Dexie.js + mana-sync) - svelte-i18n (5 languages: de, en, it, fr, es) @@ -294,7 +294,7 @@ Parent workspace packages (e.g., `apps/chat/package.json`, `apps/zitare/package. ### Authentication Architecture -All projects use **mana-core-auth** as the central authentication service: +All projects use **mana-auth** as the central authentication service: ``` ┌─────────────┐ ┌─────────────┐ ┌────────────────┐ @@ -383,9 +383,9 @@ curl http://localhost:3033/api/v1/import/vcard \ When adding a new app that should participate in cross-app SSO, update **all three** locations: -1. `trustedOrigins` in `services/mana-core-auth/src/auth/better-auth.config.ts` +1. `trustedOrigins` in `services/mana-auth/src/auth/better-auth.config.ts` 2. `CORS_ORIGINS` for mana-auth in `docker-compose.macmini.yml` -3. Run `pnpm test -- src/auth/sso-config.spec.ts` (from `services/mana-core-auth/`) to verify +3. Run `pnpm test -- src/auth/sso-config.spec.ts` (from `services/mana-auth/`) to verify Missing any of these will silently break SSO for that app. @@ -868,8 +868,8 @@ pnpm dev:landing-builder ``` **How it works:** -1. Org admin configures landing page at `/organizations/{id}/landing` in the Manacore web dashboard -2. Config is stored in `organizations.metadata.landingPage` (mana-core-auth) +1. Org admin configures landing page at `/organizations/{id}/landing` in the Mana web dashboard +2. Config is stored in `organizations.metadata.landingPage` (mana-auth) 3. On publish, the builder service generates a static Astro site from the config 4. Site is deployed to Cloudflare Pages as `org-{slug}` → `{slug}.mana.how` @@ -1074,7 +1074,7 @@ Each project has its own `CLAUDE.md` with detailed information: - `apps/cards/CLAUDE.md` - Card/deck management - `apps/chat/CLAUDE.md` - Chat API endpoints, AI models - `apps/picture/CLAUDE.md` - AI image generation -- `services/mana-core-auth/` - Central authentication service +- `services/mana-auth/` - Central authentication service - `services/mana-search/CLAUDE.md` - Search & content extraction service (Go) - `services/mana-crawler/CLAUDE.md` - Web crawler service (Go) - `services/mana-notify/CLAUDE.md` - Notification service (Go) diff --git a/NewAppIdeas/Roblox Reimagined/GAME-PLAN.md b/NewAppIdeas/Roblox Reimagined/GAME-PLAN.md index 6ee29ae37..a91e4fe30 100644 --- a/NewAppIdeas/Roblox Reimagined/GAME-PLAN.md +++ b/NewAppIdeas/Roblox Reimagined/GAME-PLAN.md @@ -401,7 +401,7 @@ Garten: ║ Server-autoritative Physik + Script-Execution ║ ║ Orchestriert von Go-Service ║ ╠═══════════════════════════════════════════════════════════╣ -║ BACKEND (bestehende Manacore-Services) ║ +║ BACKEND (bestehende Mana-Services) ║ ║ Go: Orchestrator, Matchmaker, Sync, Notify, Search ║ ║ Hono: Auth, Credits, User, Subscriptions, Analytics ║ ║ Python: LLM (NPCs), Image Gen, STT, TTS ║ @@ -791,9 +791,9 @@ DIREKT NUTZBAR (0 Aufwand): ANPASSBAR (geringer Aufwand): mana-sync (+ Chunk-Sync, Item-Sync) - @manacore/local-store (+ Voxel Collections) - @manacore/shared-auth (unveraendert) - @manacore/shared-ui (+ Editor-Komponenten) + @mana/local-store (+ Voxel Collections) + @mana/shared-auth (unveraendert) + @mana/shared-ui (+ Editor-Komponenten) NEU ZU BAUEN: Bevy Voxel Engine (Client + Server) @@ -1016,4 +1016,4 @@ BUDGET: ~50 MB RAM, ~1.8M Dreiecke, 60fps Desktop, 30fps Mobile --- *Erstellt: 28. Maerz 2026* -*Projekt: ManaVoxel -- Teil des Manacore-Oekosystems* +*Projekt: ManaVoxel -- Teil des Mana-Oekosystems* diff --git a/NewAppIdeas/Roblox Reimagined/Optimaler-Stack.md b/NewAppIdeas/Roblox Reimagined/Optimaler-Stack.md index 8d80958ba..6b9c2bb00 100644 --- a/NewAppIdeas/Roblox Reimagined/Optimaler-Stack.md +++ b/NewAppIdeas/Roblox Reimagined/Optimaler-Stack.md @@ -345,7 +345,7 @@ Transaktion: Alice kauft Item in Bobs Game fuer 100 Mana │ TypeScript (30%) │ │ ├── Svelte 5 UI (Editor, Marketplace, Social) │ │ ├── Hono Services (auth, credits, user, subs) │ -│ ├── Shared Packages (@manacore/*) │ +│ ├── Shared Packages (@mana/*) │ │ ├── User Game Scripts (→ WASM kompiliert) │ │ └── Local-First Layer (Dexie.js) │ │ │ diff --git a/NewAppIdeas/Roblox Reimagined/PROJEKT-PLAN-2D.md b/NewAppIdeas/Roblox Reimagined/PROJEKT-PLAN-2D.md index 51196a5b6..2a09c9aa0 100644 --- a/NewAppIdeas/Roblox Reimagined/PROJEKT-PLAN-2D.md +++ b/NewAppIdeas/Roblox Reimagined/PROJEKT-PLAN-2D.md @@ -927,4 +927,4 @@ NEUER CODE: ~15.000-25.000 Zeilen TypeScript + ~5.000 Zeilen Go --- *Erstellt: 28. Maerz 2026* -*Projekt: ManaVoxel 2D -- Teil des Manacore-Oekosystems* +*Projekt: ManaVoxel 2D -- Teil des Mana-Oekosystems* diff --git a/NewAppIdeas/Roblox Reimagined/Stack-Optionen-Manacore.md b/NewAppIdeas/Roblox Reimagined/Stack-Optionen-Manacore.md index eb77c8837..ddfffd9d0 100644 --- a/NewAppIdeas/Roblox Reimagined/Stack-Optionen-Manacore.md +++ b/NewAppIdeas/Roblox Reimagined/Stack-Optionen-Manacore.md @@ -1,4 +1,4 @@ -# Roblox Reimagined: Stack-Optionen fuer Manacore +# Roblox Reimagined: Stack-Optionen fuer Mana ## Welche Technologien koennten wir nutzen -- und was haben wir bereits? @@ -29,7 +29,7 @@ Wir betreiben bereits ein komplexes, polyglot, selbst-gehostetes Oekosystem: | **Hono Services (5)** | Hono 4.7 + Bun, Drizzle ORM | auth, credits, user, subscriptions, analytics | | **Python AI (5+)** | FastAPI, MLX, Whisper, FLUX | llm, image-gen, stt, tts, voice-bot | | **Frontend (19 Apps)** | SvelteKit 2 + Svelte 5 + Tailwind 4 | Todo, Chat, Calendar, Photos, etc. | -| **Mobile** | Expo 55 + React Native 0.83 + NativeWind | Mana, Traces | +| **Mobile** | Expo 55 + React Native 0.83 + NativeWind | Mana, Traces | | **Local-First** | Dexie.js + mana-sync (Go WebSocket) | 19 Apps migriert | | **Datenbank** | PostgreSQL 16 | Alle Services | | **Cache** | Redis 7 | Rate Limiting, Sessions | @@ -657,16 +657,16 @@ Option B ("Ambitioniert") ist der beste Kompromiss: ### Anpassbar (moderater Umbau) -| Komponente | Basis | Aenderung | -| ---------------- | --------------------------- | ------------------------------------------- | -| Local-First Sync | mana-sync | Game-World-Sync + Asset-Sync hinzufuegen | -| Local Store | @manacore/local-store | Game-Collections (worlds, assets, progress) | -| Shared Auth | @manacore/shared-auth | Unveraendert, in neuer App nutzen | -| Shared UI | @manacore/shared-ui | Editor-Komponenten ergaenzen | -| API Client | @manacore/shared-api-client | Game-Server-Endpoints hinzufuegen | -| PWA | @manacore/shared-pwa | Offline-Game-Support | -| i18n | @manacore/shared-i18n | Game-spezifische Strings | -| Analytics | mana-analytics | Game-Metriken (Plays, Retention) | +| Komponente | Basis | Aenderung | +| ---------------- | ----------------------- | ------------------------------------------- | +| Local-First Sync | mana-sync | Game-World-Sync + Asset-Sync hinzufuegen | +| Local Store | @mana/local-store | Game-Collections (worlds, assets, progress) | +| Shared Auth | @mana/shared-auth | Unveraendert, in neuer App nutzen | +| Shared UI | @mana/shared-ui | Editor-Komponenten ergaenzen | +| API Client | @mana/shared-api-client | Game-Server-Endpoints hinzufuegen | +| PWA | @mana/shared-pwa | Offline-Game-Support | +| i18n | @mana/shared-i18n | Game-spezifische Strings | +| Analytics | mana-analytics | Game-Metriken (Plays, Retention) | ### Neu zu bauen diff --git a/README.md b/README.md index 5a1335659..4581d966c 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# Manacore Monorepo +# Mana Monorepo -Monorepo containing all Manacore projects — a self-hosted multi-app ecosystem with shared packages and unified tooling. +Monorepo containing all Mana projects — a self-hosted multi-app ecosystem with shared packages and unified tooling. ## Projects | Project | Description | Apps | |---------|-------------|------| -| **manacore** | Multi-app ecosystem platform | Expo mobile, SvelteKit web | +| **mana** | Multi-app ecosystem platform | Expo mobile, SvelteKit web | | **chat** | AI chat application | NestJS backend, Expo mobile, SvelteKit web, Astro landing | | **todo** | Task management | NestJS backend, SvelteKit web, Astro landing | | **calendar** | Calendar & scheduling | NestJS backend, SvelteKit web, Astro landing | @@ -62,7 +62,7 @@ See [CLAUDE.md](./CLAUDE.md) for comprehensive development documentation. ## Architecture ``` -manacore-monorepo/ +mana-monorepo/ ├── apps/ # Product applications ├── services/ # Microservices (auth, search, LLM, bots) ├── packages/ # Shared packages diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 2cb07ef7f..0f24ac676 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -1,6 +1,6 @@ # Troubleshooting Guide -Common issues and solutions for the manacore-monorepo. +Common issues and solutions for the mana-monorepo. ## Table of Contents @@ -242,7 +242,7 @@ pnpm turbo run lint --filter=presi ```bash # Add shared config - pnpm add -D @manacore/eslint-config --filter @myapp/backend + pnpm add -D @mana/eslint-config --filter @myapp/backend ``` 2. **Incompatible ESLint versions** @@ -297,7 +297,7 @@ Using **type-only imports** (`import {X }`) for classes that need to be injected ### ❌ WRONG - Type-Only Import ```typescript -// services/mana-core-auth/src/ai/ai.service.ts - DON'T DO THIS! +// services/mana-auth/src/ai/ai.service.ts - DON'T DO THIS! import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; // ❌ Type-only import @@ -320,7 +320,7 @@ export class AiService { ### ✅ CORRECT - Regular Import ```typescript -// services/mana-core-auth/src/ai/ai.service.ts - CORRECT +// services/mana-auth/src/ai/ai.service.ts - CORRECT import { Injectable } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; // ✅ Regular import @@ -361,8 +361,8 @@ export class AiService { 4. Rebuild and test: ```bash -pnpm --filter mana-core-auth build -pnpm --filter mana-core-auth start:dev +pnpm --filter mana-auth build +pnpm --filter mana-auth start:dev ``` ### Debugging @@ -384,10 +384,10 @@ export class AiModule {} ```bash # Build the service -pnpm --filter mana-core-auth build +pnpm --filter mana-auth build # Check the compiled output -cat services/mana-core-auth/dist/ai/ai.service.js | grep "require" +cat services/mana-auth/dist/ai/ai.service.js | grep "require" # Should see: # const config_1 = require("@nestjs/config"); ✅ Good @@ -401,7 +401,7 @@ If the error only happens in Docker but not locally: ```bash # Build Docker image without cache -docker build --no-cache -f services/mana-core-auth/Dockerfile -t test . +docker build --no-cache -f services/mana-auth/Dockerfile -t test . # Check the compiled code in the image docker run --rm --entrypoint cat test /app/dist/ai/ai.service.js @@ -409,7 +409,7 @@ docker run --rm --entrypoint cat test /app/dist/ai/ai.service.js ### Related Issues -- [Commit d69cc607](https://github.com/Memo-2023/manacore-monorepo/commit/d69cc607) - Fixed type-only ConfigService import in AiService +- [Commit d69cc607](https://github.com/Memo-2023/mana-monorepo/commit/d69cc607) - Fixed type-only ConfigService import in AiService - TypeScript `import type` vs `import {}` - both erase at compile time - Docker layer caching can hide fixes if source wasn't properly copied @@ -425,7 +425,7 @@ docker run --rm --entrypoint cat test /app/dist/ai/ai.service.js If you encounter an issue not covered here: -1. Check the [GitHub Issues](https://github.com/Memo-2023/manacore-monorepo/issues) +1. Check the [GitHub Issues](https://github.com/Memo-2023/mana-monorepo/issues) 2. Review recent commits that may have introduced the issue 3. Run `pnpm clean` and `pnpm install` to reset 4. Create a new issue with full error logs diff --git a/apps/calendar/CLAUDE.md b/apps/calendar/CLAUDE.md index ccdd97fea..3773b7c16 100644 --- a/apps/calendar/CLAUDE.md +++ b/apps/calendar/CLAUDE.md @@ -162,7 +162,7 @@ pnpm preview # Preview build | **Web** | SvelteKit 2.x, Svelte 5 (runes mode), Tailwind CSS 4 | | **Landing** | Astro 5.x, Tailwind CSS | | **Mobile** | React Native 0.81 + Expo SDK 54, NativeWind [TODO] | -| **Auth** | Mana Core Auth (JWT) | +| **Auth** | Mana Auth (JWT) | | **i18n** | svelte-i18n (DE, EN, FR, ES, IT) | | **Dates** | date-fns | | **Sync** | ical.js, tsdav (CalDAV) | @@ -406,7 +406,7 @@ FREQ=WEEKLY;UNTIL=20241231T235959Z # Wöchentlich bis Ende 2024 ```env NODE_ENV=development PORT=3014 -DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/calendar +DATABASE_URL=postgresql://mana:devpassword@localhost:5432/calendar MANA_AUTH_URL=http://localhost:3001 CORS_ORIGINS=http://localhost:5173,http://localhost:5179,http://localhost:8081 @@ -536,7 +536,7 @@ Priority: explicit duration in text > history estimate > default fallback > 1h ( docker compose -f docker-compose.dev.yml up -d postgres # Datenbank erstellen -PGPASSWORD=devpassword psql -h localhost -U manacore -d postgres -c "CREATE DATABASE calendar;" +PGPASSWORD=devpassword psql -h localhost -U mana -d postgres -c "CREATE DATABASE calendar;" # Schema pushen pnpm calendar:db:push @@ -615,7 +615,7 @@ curl -X POST http://localhost:3014/api/v1/events \ | **Accessibility** | ✅ | Focus trapping in all modals, ARIA roles, keyboard navigation | | **Rate Limiting** | ✅ | ThrottlerGuard global (100 req/min) | | **API Validation** | ✅ | DTOs with class-validator, whitelist + forbidNonWhitelisted | -| **Auth** | ✅ | JWT via mana-core-auth, guards on all controllers | +| **Auth** | ✅ | JWT via mana-auth, guards on all controllers | | **Toast System** | ✅ | All toast messages localized via svelte-i18n | | **Docker** | ✅ | Multi-stage build, health checks, entrypoint script | | **Tests** | ✅ | 13 unit tests, 7 E2E test suites (Playwright) | @@ -652,7 +652,7 @@ pnpm --filter @calendar/web test:e2e ## Important Notes -1. **Authentication**: Nutzt Mana Core Auth (JWT im Authorization Header) +1. **Authentication**: Nutzt Mana Auth (JWT im Authorization Header) 2. **Database**: PostgreSQL mit Drizzle ORM (Port 5432) 3. **Port**: Server läuft auf Port 3014 4. **Recurrence**: Verwendet RFC 5545 RRULE Format diff --git a/apps/calendar/README.md b/apps/calendar/README.md index b2c714c2f..0b978affb 100644 --- a/apps/calendar/README.md +++ b/apps/calendar/README.md @@ -21,7 +21,7 @@ Eine vollständige Kalender-Anwendung mit persönlichen und geteilten Kalendern, docker compose -f docker-compose.dev.yml up -d postgres # 2. Datenbank erstellen -PGPASSWORD=devpassword psql -h localhost -U manacore -d postgres -c "CREATE DATABASE calendar;" +PGPASSWORD=devpassword psql -h localhost -U mana -d postgres -c "CREATE DATABASE calendar;" # 3. Schema pushen pnpm calendar:db:push @@ -44,7 +44,7 @@ pnpm dev:calendar:app - **Backend**: NestJS, Drizzle ORM, PostgreSQL - **Web**: SvelteKit, Svelte 5, Tailwind CSS - **Landing**: Astro, Tailwind CSS -- **Auth**: Mana Core Auth (JWT) +- **Auth**: Mana Auth (JWT) ## Dokumentation @@ -76,4 +76,4 @@ pnpm calendar:db:studio # Drizzle Studio öffnen ## Lizenz -Proprietär - Manacore +Proprietär - Mana diff --git a/apps/calendar/apps/landing/src/components/Footer.astro b/apps/calendar/apps/landing/src/components/Footer.astro index 417c8da15..5781486ef 100644 --- a/apps/calendar/apps/landing/src/components/Footer.astro +++ b/apps/calendar/apps/landing/src/components/Footer.astro @@ -102,7 +102,7 @@ const links = { © {currentYear} Kalender. Alle Rechte vorbehalten.
- Ein Manacore Produkt + Ein Mana Produkt
diff --git a/apps/cards/CI_CD_SETUP_GUIDE.md b/apps/cards/CI_CD_SETUP_GUIDE.md index 7fd77a403..e0ebb26f9 100644 --- a/apps/cards/CI_CD_SETUP_GUIDE.md +++ b/apps/cards/CI_CD_SETUP_GUIDE.md @@ -178,7 +178,7 @@ Or create manually: # Use the SAME project as Cloud Run deployment PROJECT_ID="mana-core-453821" -# Generate service key (used for Mana Core authentication) +# Generate service key (used for Mana authentication) SERVICE_KEY=$(openssl rand -base64 32) # Create secrets in the SAME project where Cloud Run will be deployed @@ -944,7 +944,7 @@ Health check failed with HTTP 503 **Common Causes**: 1. Missing environment variables 2. Can't connect to Supabase -3. Can't connect to Mana Core +3. Can't connect to Mana 4. Application error on startup **Debugging**: @@ -1174,9 +1174,9 @@ Adjust in workflow: | Variable | Location | Purpose | |----------|----------|---------| | `NODE_ENV` | Cloud Run | Set to `production` | -| `MANA_SERVICE_URL` | GCP Secret | Mana Core API URL | +| `MANA_SERVICE_URL` | GCP Secret | Mana API URL | | `APP_ID` | GCP Secret | Cards app identifier | -| `SERVICE_KEY` | GCP Secret | Mana Core auth key | +| `SERVICE_KEY` | GCP Secret | Mana auth key | | `SUPABASE_URL` | GCP Secret | Supabase project URL | | `SUPABASE_ANON_KEY` | GCP Secret | Supabase anonymous key | | `SUPABASE_SERVICE_KEY` | GCP Secret | Supabase service role key | diff --git a/apps/cards/CREDIT_SYSTEM.md b/apps/cards/CREDIT_SYSTEM.md index dd97a067b..d21b6a1a3 100644 --- a/apps/cards/CREDIT_SYSTEM.md +++ b/apps/cards/CREDIT_SYSTEM.md @@ -1,10 +1,10 @@ # Cards Credit System -This document explains how the Mana Core credit system is integrated into Cards. +This document explains how the Mana credit system is integrated into Cards. ## Overview -Cards uses **Mana** as its credit currency to charge for operations like deck creation, card generation, and AI features. The credit system is powered by [Mana Core](https://github.com/Memo-2023/mana-core-nestjs-package), which provides: +Cards uses **Mana** as its credit currency to charge for operations like deck creation, card generation, and AI features. The credit system is powered by [Mana](https://github.com/Memo-2023/mana-core-nestjs-package), which provides: - Credit validation before operations - Credit consumption after successful operations @@ -51,7 +51,7 @@ These costs are defined in `backend/src/config/credit-operations.ts`. │ ▼ ┌─────────────┐ -│ Mana Core │ - Validate balance +│ Mana │ - Validate balance │ Service │ - Deduct credits │ │ - Record transaction └─────────────┘ @@ -61,7 +61,7 @@ These costs are defined in `backend/src/config/credit-operations.ts`. ### 1. Service Key Configuration -The backend needs a service key from Mana Core to perform credit operations. +The backend needs a service key from Mana to perform credit operations. **backend/.env**: ```env @@ -500,7 +500,7 @@ SERVICE_KEY=your-actual-service-key-from-mana-core ## Resources -- [Mana Core Documentation](https://docs.mana-core.com) -- [Mana Core NestJS Package](https://github.com/Memo-2023/mana-core-nestjs-package) +- [Mana Documentation](https://docs.mana-core.com) +- [Mana NestJS Package](https://github.com/Memo-2023/mana-core-nestjs-package) - [Integration Guide](./MANA_CORE_INTEGRATION_GUIDE.md) - [Example Implementation](./apps/mobile/examples/DeckCreationExample.tsx) diff --git a/apps/cards/DEPLOYMENT_CHECKLIST.md b/apps/cards/DEPLOYMENT_CHECKLIST.md index 3a35785c4..60a4917f3 100644 --- a/apps/cards/DEPLOYMENT_CHECKLIST.md +++ b/apps/cards/DEPLOYMENT_CHECKLIST.md @@ -109,7 +109,7 @@ for SECRET in MANA_SERVICE_URL CARDS_APP_ID CARDS_SERVICE_KEY CARDS_SUPABASE_URL done ``` -**IMPORTANT**: Add the generated `SERVICE_KEY` to mana-core-middleware's `APP_SERVICE_KEYS`: +**IMPORTANT**: Add the generated `SERVICE_KEY` to mana-middleware's `APP_SERVICE_KEYS`: ``` APP_SERVICE_KEYS=existing-apps,YOUR_APP_ID:YOUR_SERVICE_KEY @@ -219,7 +219,7 @@ gcloud secrets add-iam-policy-binding CARDS_APP_ID \ 1. Missing environment variables/secrets 2. Can't connect to Supabase -3. Can't connect to Mana Core +3. Can't connect to Mana **Debug**: diff --git a/apps/cards/MANA_CORE_ARCHITECTURE.md b/apps/cards/MANA_CORE_ARCHITECTURE.md index 1ecccb8c0..5ae3a9b5e 100644 --- a/apps/cards/MANA_CORE_ARCHITECTURE.md +++ b/apps/cards/MANA_CORE_ARCHITECTURE.md @@ -1,6 +1,6 @@ -# Mana Core Architecture in Storyteller +# Mana Architecture in Storyteller -This document explains the architecture and data flow of the Mana Core integration in the Storyteller project. +This document explains the architecture and data flow of the Mana integration in the Storyteller project. ## System Architecture @@ -32,7 +32,7 @@ This document explains the architecture and data flow of the Mana Core integrati ├─────────────────────────────────────────────────────────────────┤ │ │ │ ┌───────────────────────────────────────────────────────────┐ │ -│ │ Mana Core NestJS Integration │ │ +│ │ Mana NestJS Integration │ │ │ ├───────────────────────────────────────────────────────────┤ │ │ │ │ │ │ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ │ @@ -73,7 +73,7 @@ This document explains the architecture and data flow of the Mana Core integrati │ Credit Operations) ▼ ┌─────────────────────────────────────────────────────────────────┐ -│ Mana Core Service │ +│ Mana Service │ │ (Authentication & Credits) │ ├─────────────────────────────────────────────────────────────────┤ │ │ @@ -383,7 +383,7 @@ const CREDIT_COSTS = { } ``` -3. **Mana Core**: Processes credit operations +3. **Mana**: Processes credit operations - Validates user has sufficient credits - Deducts credits from user's balance - Records transaction in ledger @@ -476,8 +476,8 @@ async getCharacters( ### Backend `.env` ```env -# Mana Core (Required) -MANA_SERVICE_URL=https://mana-core-middleware-111768794939.europe-west3.run.app +# Mana (Required) +MANA_SERVICE_URL=https://mana-middleware-111768794939.europe-west3.run.app APP_ID=8d2f5ddb-e251-4b3b-8802-84022a7ac77f MANA_SUPABASE_SECRET_KEY=your-service-key @@ -504,7 +504,7 @@ EXPO_PUBLIC_STORYTELLER_BACKEND_URL=http://localhost:3002 ## Key Takeaways -### What Mana Core Provides +### What Mana Provides 1. **Authentication System** - ✅ Email/password sign-in/sign-up diff --git a/apps/cards/MANA_CORE_INTEGRATION_CHECKLIST.md b/apps/cards/MANA_CORE_INTEGRATION_CHECKLIST.md index 1d89c838b..767f726ab 100644 --- a/apps/cards/MANA_CORE_INTEGRATION_CHECKLIST.md +++ b/apps/cards/MANA_CORE_INTEGRATION_CHECKLIST.md @@ -1,4 +1,4 @@ -# Mana Core Integration Checklist +# Mana Integration Checklist Use this checklist when integrating `@mana-core/nestjs-integration` into a new NestJS project. @@ -7,7 +7,7 @@ Use this checklist when integrating `@mana-core/nestjs-integration` into a new N - [ ] NestJS v10+ application set up - [ ] `@nestjs/config` installed - [ ] Node.js v18+ and npm/yarn -- [ ] Mana Core credentials obtained: +- [ ] Mana credentials obtained: - [ ] `MANA_SERVICE_URL` - [ ] `APP_ID` - [ ] `MANA_SUPABASE_SECRET_KEY` (service key) @@ -329,7 +329,7 @@ Use this checklist when integrating `@mana-core/nestjs-integration` into a new N } ``` -- [ ] Create integration tests with real Mana Core module +- [ ] Create integration tests with real Mana module - [ ] Test credit validation flow @@ -412,7 +412,7 @@ Use this checklist when integrating `@mana-core/nestjs-integration` into a new N ## Documentation -- [ ] Update README with Mana Core setup instructions +- [ ] Update README with Mana setup instructions - [ ] Document custom operation types and credit costs @@ -443,7 +443,7 @@ If something doesn't work, check: ## Support Resources - **Full Integration Guide**: See `MANA_CORE_INTEGRATION_GUIDE.md` -- **Mana Core Docs**: https://docs.mana-core.com +- **Mana Docs**: https://docs.mana-core.com - **GitHub Issues**: https://github.com/Memo-2023/mana-core-nestjs-package/issues - **Example Code**: Check Storyteller project for working implementation @@ -451,7 +451,7 @@ If something doesn't work, check: ## Integration Complete! 🎉 -Once all items are checked, your application is fully integrated with Mana Core. +Once all items are checked, your application is fully integrated with Mana. **Estimated Time**: 2-4 hours for basic integration, 1-2 days for complete implementation with testing. diff --git a/apps/cards/MANA_CORE_INTEGRATION_GUIDE.md b/apps/cards/MANA_CORE_INTEGRATION_GUIDE.md index 644f1b0d9..7aa7ecc84 100644 --- a/apps/cards/MANA_CORE_INTEGRATION_GUIDE.md +++ b/apps/cards/MANA_CORE_INTEGRATION_GUIDE.md @@ -1,4 +1,4 @@ -# Mana Core NestJS Integration Guide +# Mana NestJS Integration Guide This document provides a comprehensive guide on how the `@mana-core/nestjs-integration` package was integrated into the Storyteller project. Use this guide to integrate the same authentication and credit system into your own NestJS application. @@ -18,7 +18,7 @@ This document provides a comprehensive guide on how the `@mana-core/nestjs-integ ## Overview -The Mana Core NestJS integration package provides: +The Mana NestJS integration package provides: - **Complete Authentication System**: Email/password, Google OAuth, Apple Sign-in - **JWT Token Management**: Automatic validation, refresh, and storage - **Credit Management**: Pre-flight validation and consumption with app-level tracking @@ -33,7 +33,7 @@ Frontend (React Native/Web) ↓ HTTP Requests with JWT Backend (NestJS) ↓ Token Validation & Credit Checks -Mana Core Service +Mana Service ↓ Authentication & Credit Management ``` @@ -41,11 +41,11 @@ Mana Core Service ## Prerequisites -Before integrating Mana Core, ensure you have: +Before integrating Mana, ensure you have: -1. **Mana Core Credentials**: - - `MANA_SERVICE_URL`: URL of your Mana Core instance - - `APP_ID`: Your application ID from Mana Core +1. **Mana Credentials**: + - `MANA_SERVICE_URL`: URL of your Mana instance + - `APP_ID`: Your application ID from Mana - `MANA_SUPABASE_SECRET_KEY`: Service key for backend operations (optional but recommended) 2. **NestJS Application**: @@ -106,8 +106,8 @@ Create or update your `.env` file in the backend directory: NODE_ENV=development PORT=3002 -# Mana Core Configuration -MANA_SERVICE_URL=https://mana-core-middleware-111768794939.europe-west3.run.app +# Mana Configuration +MANA_SERVICE_URL=https://mana-middleware-111768794939.europe-west3.run.app APP_ID=your-app-id-from-mana-core MANA_SUPABASE_SECRET_KEY=your-service-role-key @@ -116,8 +116,8 @@ SIGNUP_REDIRECT_URL=https://yourapp.com/welcome ``` **Important Notes**: -- `MANA_SERVICE_URL`: Your Mana Core instance URL -- `APP_ID`: Obtained from Mana Core admin panel +- `MANA_SERVICE_URL`: Your Mana instance URL +- `APP_ID`: Obtained from Mana admin panel - `MANA_SUPABASE_SECRET_KEY`: Required for credit operations and service-level auth - `SIGNUP_REDIRECT_URL`: Optional redirect after successful signup @@ -138,12 +138,12 @@ import { ManaModule } from '@mana-core/nestjs-integration'; validationSchema: validationSchema, // Optional: Joi validation }), - // Mana Core Module - async configuration + // Mana Module - async configuration ManaModule.forRootAsync({ imports: [ConfigModule], useFactory: (configService: ConfigService) => ({ // Required: Mana service URL - manaServiceUrl: 'https://mana-core-middleware-111768794939.europe-west3.run.app', + manaServiceUrl: 'https://mana-middleware-111768794939.europe-west3.run.app', // Required: Your app ID appId: '8d2f5ddb-e251-4b3b-8802-84022a7ac77f', @@ -172,7 +172,7 @@ export class AppModule {} ``` **Configuration Options**: -- `manaServiceUrl` (required): URL of your Mana Core service +- `manaServiceUrl` (required): URL of your Mana service - `appId` (required): Your application ID - `serviceKey` (recommended): Service role key for backend operations - `signupRedirectUrl` (optional): URL to redirect users after signup @@ -596,7 +596,7 @@ if (response.ok) { ## Credit Management -The Mana Core package includes a complete credit consumption system for tracking and billing user operations. +The Mana package includes a complete credit consumption system for tracking and billing user operations. ### Step 1: Inject CreditClientService @@ -847,7 +847,7 @@ try { ### Unit Testing -Mock the Mana Core services in your tests: +Mock the Mana services in your tests: ```typescript import { Test, TestingModule } from '@nestjs/testing'; @@ -895,7 +895,7 @@ describe('CharacterController', () => { ### Integration Testing -Test with the Mana Core module: +Test with the Mana module: ```typescript import { ManaModule } from '@mana-core/nestjs-integration'; @@ -1042,7 +1042,7 @@ ManaModule.forRootAsync({ ### Support Resources -- **Mana Core Documentation**: https://docs.mana-core.com +- **Mana Documentation**: https://docs.mana-core.com - **GitHub Issues**: https://github.com/Memo-2023/mana-core-nestjs-package/issues - **Storyteller Example**: Check this repository for working examples @@ -1093,7 +1093,7 @@ After following this guide, your application now has: | File | Purpose | |------|---------| -| `backend/src/app.module.ts` | Mana Core module configuration | +| `backend/src/app.module.ts` | Mana module configuration | | `backend/src/character/character.controller.ts` | Example of AuthGuard and CreditClientService usage | | `backend/src/story/story.controller.ts` | Example of credit validation and consumption | | `backend/src/decorators/user.decorator.ts` | Custom @UserToken() decorator | @@ -1107,7 +1107,7 @@ After following this guide, your application now has: If you have questions or run into issues: -1. Check the [Mana Core Documentation](https://docs.mana-core.com) +1. Check the [Mana Documentation](https://docs.mana-core.com) 2. Review the Storyteller codebase for working examples 3. Open an issue on the [GitHub repository](https://github.com/Memo-2023/mana-core-nestjs-package) diff --git a/apps/cards/MANA_CORE_README.md b/apps/cards/MANA_CORE_README.md index 377b06f4a..a5f19b101 100644 --- a/apps/cards/MANA_CORE_README.md +++ b/apps/cards/MANA_CORE_README.md @@ -1,4 +1,4 @@ -# Mana Core Integration Documentation +# Mana Integration Documentation Complete documentation for integrating the `@mana-core/nestjs-integration` package into your NestJS application, based on the Storyteller project implementation. @@ -19,7 +19,7 @@ Start here for a high-level understanding and quick reference. - Testing strategies - Troubleshooting common issues -**Use this when**: You're implementing Mana Core for the first time or need detailed explanations. +**Use this when**: You're implementing Mana for the first time or need detailed explanations. ### 3. **[Integration Checklist](./MANA_CORE_INTEGRATION_CHECKLIST.md)** - Step-by-Step Checklist ✅ **Actionable checklist** with checkboxes covering: @@ -47,9 +47,9 @@ Start here for a high-level understanding and quick reference. ## 🚀 Quick Start -### What is Mana Core? +### What is Mana? -Mana Core is a centralized authentication and credit management system that provides: +Mana is a centralized authentication and credit management system that provides: - **Authentication**: Email/password, Google OAuth, Apple Sign-in - **JWT Token Management**: Automatic validation, refresh, and multi-device support - **Credit System**: Pre-flight validation, consumption tracking, and billing @@ -88,7 +88,7 @@ npm install git+https://github.com/Memo-2023/mana-core-nestjs-package.git **Backend `.env`**: ```env -MANA_SERVICE_URL=https://mana-core-middleware-111768794939.europe-west3.run.app +MANA_SERVICE_URL=https://mana-middleware-111768794939.europe-west3.run.app APP_ID=your-app-id MANA_SUPABASE_SECRET_KEY=your-service-key NODE_ENV=development @@ -111,7 +111,7 @@ import { ManaModule } from '@mana-core/nestjs-integration'; ManaModule.forRootAsync({ imports: [ConfigModule], useFactory: (configService: ConfigService) => ({ - manaServiceUrl: 'https://mana-core-middleware-111768794939.europe-west3.run.app', + manaServiceUrl: 'https://mana-middleware-111768794939.europe-west3.run.app', appId: '8d2f5ddb-e251-4b3b-8802-84022a7ac77f', serviceKey: configService.get('MANA_SUPABASE_SECRET_KEY'), debug: configService.get('NODE_ENV') === 'development', @@ -324,9 +324,9 @@ Mobile App (React Native) ▼ Backend (NestJS) │ - │ 2. Forward to Mana Core + │ 2. Forward to Mana ▼ -Mana Core Service +Mana Service │ │ 3. Validate & Generate Tokens ▼ @@ -358,7 +358,7 @@ Mobile App ### Sign In -**Backend** (Auto-provided by Mana Core): +**Backend** (Auto-provided by Mana): ``` POST /auth/signin { @@ -516,7 +516,7 @@ MANA_CORE_README.md ← You are here (Quick start) | File | Purpose | |------|---------| -| `backend/src/app.module.ts` | Mana Core module configuration | +| `backend/src/app.module.ts` | Mana module configuration | | `backend/src/character/character.controller.ts` | AuthGuard + Credit usage example | | `backend/src/story/story.controller.ts` | Credit validation + consumption | | `backend/src/decorators/user.decorator.ts` | Custom @UserToken() for RLS | @@ -533,8 +533,8 @@ MANA_CORE_README.md ← You are here (Quick start) ## 🔗 Resources -- **Mana Core Package**: https://github.com/Memo-2023/mana-core-nestjs-package -- **Mana Core Docs**: https://docs.mana-core.com +- **Mana Package**: https://github.com/Memo-2023/mana-core-nestjs-package +- **Mana Docs**: https://docs.mana-core.com - **NestJS Docs**: https://docs.nestjs.com - **Storyteller Source**: This repository @@ -559,7 +559,7 @@ MANA_CORE_README.md ← You are here (Quick start) 1. **Documentation**: Check all four documentation files 2. **Code Examples**: Study Storyteller implementation -3. **Mana Core Docs**: https://docs.mana-core.com +3. **Mana Docs**: https://docs.mana-core.com 4. **GitHub Issues**: https://github.com/Memo-2023/mana-core-nestjs-package/issues ### Contributing @@ -573,7 +573,7 @@ If you find issues or improvements in this documentation: ## ✨ Summary -This documentation provides everything you need to integrate Mana Core into your NestJS application: +This documentation provides everything you need to integrate Mana into your NestJS application: - **Complete integration guide** with step-by-step instructions - **Actionable checklist** to track progress diff --git a/apps/cards/README.md b/apps/cards/README.md index ca9b87ca9..27e06e2e9 100644 --- a/apps/cards/README.md +++ b/apps/cards/README.md @@ -1,10 +1,10 @@ # Cards -A deck management system with Mana Core authentication and credit system integration. +A deck management system with Mana authentication and credit system integration. ## Features -- 🔐 **Mana Core Authentication** - Complete auth system with JWT tokens, device tracking, and automatic token refresh +- 🔐 **Mana Authentication** - Complete auth system with JWT tokens, device tracking, and automatic token refresh - ⚡ **Credit System** - Mana-based billing for operations (10 mana to create a deck, 5 for AI features, etc.) - 📱 **React Native/Expo** - Cross-platform mobile app (iOS, Android, Web) - 🚀 **NestJS Backend** - Type-safe API with AuthGuard protection @@ -19,7 +19,7 @@ A deck management system with Mana Core authentication and credit system integra - npm or yarn - Expo CLI (`npm install -g expo-cli`) - Supabase account -- Mana Core credentials (APP_ID, SERVICE_KEY) +- Mana credentials (APP_ID, SERVICE_KEY) ### Backend Setup @@ -40,8 +40,8 @@ A deck management system with Mana Core authentication and credit system integra Edit `.env` and add your credentials: ```env - # Mana Core - MANA_SERVICE_URL=https://mana-core-middleware-111768794939.europe-west3.run.app + # Mana + MANA_SERVICE_URL=https://mana-middleware-111768794939.europe-west3.run.app APP_ID=your-app-id-from-mana-core SERVICE_KEY=your-service-key-from-mana-core # Required for credits @@ -123,7 +123,7 @@ A deck management system with Mana Core authentication and credit system integra │ │ ▼ ▼ ┌─────────────────┐ ┌──────────────────┐ -│ Mana Core │ │ Supabase │ +│ Mana │ │ Supabase │ │ - Auth │ │ - Database │ │ - Credits │ │ - Storage │ │ - Transactions │ │ - Real-time │ @@ -181,7 +181,7 @@ function MyScreen() { ## API Endpoints -### Authentication (via Mana Core) +### Authentication (via Mana) - `POST /v1/auth/signin` - Sign in - `POST /v1/auth/signup` - Sign up @@ -220,7 +220,7 @@ cards/ │ │ │ └── health.controller.ts # Health checks │ │ ├── services/ │ │ │ └── supabase.service.ts # Supabase integration -│ │ ├── app.module.ts # Main module (Mana Core config) +│ │ ├── app.module.ts # Main module (Mana config) │ │ └── main.ts # Entry point │ ├── .env # Environment variables │ └── package.json @@ -315,9 +315,9 @@ npm run build:prod # Production build | Variable | Description | Example | |----------|-------------|---------| -| `MANA_SERVICE_URL` | Mana Core service URL | `https://mana-core-middleware-*.run.app` | -| `APP_ID` | Your app ID from Mana Core | `cea4bfc6-a4de-4e17-91e2-54275940156e` | -| `SERVICE_KEY` | Service key for credit operations | Get from Mana Core | +| `MANA_SERVICE_URL` | Mana service URL | `https://mana-middleware-*.run.app` | +| `APP_ID` | Your app ID from Mana | `cea4bfc6-a4de-4e17-91e2-54275940156e` | +| `SERVICE_KEY` | Service key for credit operations | Get from Mana | | `SUPABASE_URL` | Supabase project URL | `https://abc.supabase.co` | | `SUPABASE_ANON_KEY` | Supabase anonymous key | Your anon key | | `PORT` | Backend port | `8080` | @@ -393,14 +393,14 @@ import { CreditClientService } from '@mana-core/nestjs-integration/services'; ### Backend won't start - Check all environment variables are set -- Verify Mana Core credentials are correct +- Verify Mana credentials are correct - Check if port 8080 is available ### Credits not working - Ensure `SERVICE_KEY` is set in backend `.env` - Check backend logs for credit validation errors -- Verify user has credits in Mana Core dashboard +- Verify user has credits in Mana dashboard ### Frontend can't connect to backend @@ -417,16 +417,16 @@ import { CreditClientService } from '@mana-core/nestjs-integration/services'; ## Documentation - **[Credit System](./CREDIT_SYSTEM.md)** - Complete credit system documentation -- **[Mana Core Integration Guide](./MANA_CORE_INTEGRATION_GUIDE.md)** - Step-by-step integration +- **[Mana Integration Guide](./MANA_CORE_INTEGRATION_GUIDE.md)** - Step-by-step integration - **[Integration Checklist](./MANA_CORE_INTEGRATION_CHECKLIST.md)** - Checkboxes for tracking - **[Architecture Guide](./MANA_CORE_ARCHITECTURE.md)** - System architecture and flows -- **[Mana Core README](./MANA_CORE_README.md)** - Quick reference +- **[Mana README](./MANA_CORE_README.md)** - Quick reference - **[Example Implementation](./apps/mobile/examples/DeckCreationExample.tsx)** - Working code example ## Resources -- [Mana Core Documentation](https://docs.mana-core.com) -- [Mana Core NestJS Package](https://github.com/Memo-2023/mana-core-nestjs-package) +- [Mana Documentation](https://docs.mana-core.com) +- [Mana NestJS Package](https://github.com/Memo-2023/mana-core-nestjs-package) - [Expo Documentation](https://docs.expo.dev) - [NestJS Documentation](https://docs.nestjs.com) - [Supabase Documentation](https://supabase.com/docs) @@ -438,5 +438,5 @@ Private project - All rights reserved ## Support For issues related to: -- **Mana Core**: https://github.com/Memo-2023/mana-core-nestjs-package/issues +- **Mana**: https://github.com/Memo-2023/mana-core-nestjs-package/issues - **This project**: Contact the development team diff --git a/apps/cards/SETUP_GUIDE.md b/apps/cards/SETUP_GUIDE.md index d6428c344..96f00a76e 100644 --- a/apps/cards/SETUP_GUIDE.md +++ b/apps/cards/SETUP_GUIDE.md @@ -2,7 +2,7 @@ ## What's Been Completed -Your Mana Core integration is now **100% complete** with a fully functional credit system! 🎉 +Your Mana integration is now **100% complete** with a fully functional credit system! 🎉 ### ✅ Backend (Complete) - [x] ManaModule configured with environment variables @@ -35,14 +35,14 @@ Your Mana Core integration is now **100% complete** with a fully functional cred ### 1. Add Your Service Key (5 minutes) ⚠️ REQUIRED -The backend needs a service key from Mana Core to validate and consume credits. +The backend needs a service key from Mana to validate and consume credits. **backend/.env**: ```env SERVICE_KEY=your-actual-service-key-here ``` -**Where to get it**: Contact Mana Core admin or check your Mana Core dashboard. +**Where to get it**: Contact Mana admin or check your Mana dashboard. Without this key, credit operations will fail with authentication errors. @@ -267,7 +267,7 @@ Before deploying to production: ### Backend - [ ] Set `NODE_ENV=production` in production environment -- [ ] Add real `SERVICE_KEY` from Mana Core +- [ ] Add real `SERVICE_KEY` from Mana - [ ] Configure proper CORS for your frontend domain - [ ] Set up proper logging/monitoring - [ ] Add rate limiting @@ -323,7 +323,7 @@ Add `onPurchase` handler to modal in your screens 2. **Integration**: See [MANA_CORE_INTEGRATION_GUIDE.md](./MANA_CORE_INTEGRATION_GUIDE.md) 3. **Architecture**: See [MANA_CORE_ARCHITECTURE.md](./MANA_CORE_ARCHITECTURE.md) 4. **Example Code**: See [apps/mobile/examples/DeckCreationExample.tsx](./apps/mobile/examples/DeckCreationExample.tsx) -5. **Mana Core**: https://github.com/Memo-2023/mana-core-nestjs-package +5. **Mana**: https://github.com/Memo-2023/mana-core-nestjs-package ## Summary diff --git a/apps/cards/apps/mobile/CLAUDE.md b/apps/cards/apps/mobile/CLAUDE.md index 354ed4412..204f33b59 100644 --- a/apps/cards/apps/mobile/CLAUDE.md +++ b/apps/cards/apps/mobile/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -Cards is a React Native/Expo application using Expo Router for navigation, TypeScript for type safety, NativeWind (Tailwind CSS) for styling, and Mana Core Auth for authentication. The app uses Zustand for state management and connects to the NestJS backend (port 3009). +Cards is a React Native/Expo application using Expo Router for navigation, TypeScript for type safety, NativeWind (Tailwind CSS) for styling, and Mana Auth for authentication. The app uses Zustand for state management and connects to the NestJS backend (port 3009). ## Essential Commands @@ -69,7 +69,7 @@ Uses Expo Router v5 with file-based routing: ### Authentication -- Mana Core Auth via `@manacore/shared-auth` in `services/authService.ts` +- Mana Auth via `@mana/shared-auth` in `services/authService.ts` - Zustand auth store in `store/authStore.ts` - Tokens stored in Expo SecureStore (encrypted) - Supports email/password, Google, and Apple sign-in diff --git a/apps/chat/CLAUDE.md b/apps/chat/CLAUDE.md index e483a1e82..04bc87a02 100644 --- a/apps/chat/CLAUDE.md +++ b/apps/chat/CLAUDE.md @@ -72,7 +72,7 @@ pnpm preview # Preview production build - **Web**: SvelteKit 2.x, Svelte 5, Tailwind CSS 4 - **Landing**: Astro 5.16, Tailwind CSS - **Server**: Hono + Bun, OpenRouter AI + mana-llm (local), Drizzle ORM, PostgreSQL -- **Auth**: Mana Core Auth (JWT) +- **Auth**: Mana Auth (JWT) - **Types**: TypeScript 5.x ## Architecture @@ -103,7 +103,7 @@ MANA_LLM_URL=http://localhost:3025 # mana-llm service URL LLM_TIMEOUT=120000 # Timeout in ms (default: 120s) # Database (uses shared Docker PostgreSQL) -DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/chat +DATABASE_URL=postgresql://mana:devpassword@localhost:5432/chat # Auth MANA_AUTH_URL=http://localhost:3001 @@ -172,7 +172,7 @@ pnpm --filter @chat/server db:add-local-models 2. **Create `.env`** in `apps/chat/apps/server/`: ```env OPENROUTER_API_KEY=sk-or-v1-xxx - DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/chat + DATABASE_URL=postgresql://mana:devpassword@localhost:5432/chat MANA_AUTH_URL=http://localhost:3001 PORT=3002 ``` @@ -190,6 +190,6 @@ pnpm --filter @chat/server db:add-local-models ## Important Notes 1. **Security**: API keys are stored in the server only - never in client apps -2. **Authentication**: Uses Mana Core Auth (JWT tokens) +2. **Authentication**: Uses Mana Auth (JWT tokens) 3. **Database**: PostgreSQL with Drizzle ORM (uses shared Docker container) 4. **Deployment**: Server runs on port 3002 diff --git a/apps/chat/INTEGRATION_COMPLETE.md b/apps/chat/INTEGRATION_COMPLETE.md index fe4dc4fcf..f63f0412b 100644 --- a/apps/chat/INTEGRATION_COMPLETE.md +++ b/apps/chat/INTEGRATION_COMPLETE.md @@ -1,4 +1,4 @@ -# ✅ Mana Core Auth Integration - COMPLETE +# ✅ Mana Auth Integration - COMPLETE **Date:** 2025-11-25 **Status:** 🎉 All code changes implemented @@ -8,25 +8,25 @@ ## 🎯 Summary -The Chat project has been **fully migrated** from Supabase Auth to **Mana Core Auth**! All three apps (backend, web, mobile) now use the centralized authentication system with built-in credit management. +The Chat project has been **fully migrated** from Supabase Auth to **Mana Auth**! All three apps (backend, web, mobile) now use the centralized authentication system with built-in credit management. --- ## ✅ What Was Done -### 1. **Updated `@manacore/shared-auth` Package** ✅ +### 1. **Updated `@mana/shared-auth` Package** ✅ **Location:** `/packages/shared-auth/src/core/authService.ts` **Changes:** -- Updated API endpoints to match Mana Core Auth (`/api/v1/auth/*`) +- Updated API endpoints to match Mana Auth (`/api/v1/auth/*`) - Fixed login response handling (`accessToken` instead of `appToken`) - Fixed signup flow (register then login separately) - Updated refresh token endpoint - Updated credits balance endpoint -**Status:** Package is now 100% compatible with Mana Core Auth API +**Status:** Package is now 100% compatible with Mana Auth API --- @@ -43,7 +43,7 @@ The Chat project has been **fully migrated** from Supabase Auth to **Mana Core A **Changes:** -- Created JWT Auth Guard that validates tokens with Mana Core Auth +- Created JWT Auth Guard that validates tokens with Mana Auth - Created CurrentUser decorator to inject user data into controllers - Updated all controllers to use JwtAuthGuard - Removed userId from request body (now extracted from JWT) @@ -54,7 +54,7 @@ The Chat project has been **fully migrated** from Supabase Auth to **Mana Core A - All endpoints now protected with JWT validation - User context automatically injected via @CurrentUser decorator -- Token validation happens via Mana Core Auth API +- Token validation happens via Mana Auth API - Proper error handling for invalid/expired tokens --- @@ -68,7 +68,7 @@ The Chat project has been **fully migrated** from Supabase Auth to **Mana Core A **Changes:** -- Completely rewrote auth store to use `@manacore/shared-auth` +- Completely rewrote auth store to use `@mana/shared-auth` - Removed Supabase auth dependencies - Added `initializeWebAuth()` initialization - Added `getCredits()` method for credit balance @@ -92,7 +92,7 @@ The Chat project has been **fully migrated** from Supabase Auth to **Mana Core A **Changes:** -- Rewrote AuthProvider to use `@manacore/shared-auth` +- Rewrote AuthProvider to use `@mana/shared-auth` - Created SecureStore adapter for token storage - Created React Native device adapter - Created React Native network adapter @@ -165,12 +165,12 @@ EXPO_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key ## 🚀 How to Run -### 1. Start Mana Core Auth (Terminal 1) +### 1. Start Mana Auth (Terminal 1) ```bash -cd mana-core-auth +cd mana-auth cp .env.example .env -# Edit .env and add JWT keys (see mana-core-auth/QUICKSTART.md) +# Edit .env and add JWT keys (see mana-auth/QUICKSTART.md) pnpm start:dev ``` @@ -221,7 +221,7 @@ pnpm dev - [ ] Start backend on port 3002 - [ ] Try accessing `/api/chat/models` without token → Should return 401 -- [ ] Login via Mana Core Auth +- [ ] Login via Mana Auth - [ ] Access `/api/chat/models` with token → Should work - [ ] Access `/api/conversations` with token → Should work @@ -271,10 +271,10 @@ const credits = await authService.getUserCredits(); ## 🔄 What Changed for Users -| Aspect | Before (Supabase) | After (Mana Core) | Impact | +| Aspect | Before (Supabase) | After (Mana) | Impact | | ----------------- | ----------------- | ------------------------ | ------------------------------ | | **Registration** | Immediate session | Register → Login | Minimal (auto-login in mobile) | -| **Login** | Supabase JWT | Mana Core JWT | None (transparent) | +| **Login** | Supabase JWT | Mana JWT | None (transparent) | | **Token Storage** | Supabase cookies | localStorage/SecureStore | None (same security) | | **Sessions** | Supabase sessions | JWT + refresh tokens | Better (token rotation) | | **Credits** | ❌ None | ✅ 150 initial + 5 daily | **NEW FEATURE!** | @@ -283,23 +283,23 @@ const credits = await authService.getUserCredits(); ## 📊 Port Configuration -| Service | Port | URL | -| ------------------ | ---- | --------------------- | -| **Mana Core Auth** | 3001 | http://localhost:3001 | -| **Chat Backend** | 3002 | http://localhost:3002 | -| **Web App** | 5173 | http://localhost:5173 | -| **Mobile App** | 8081 | exp://localhost:8081 | +| Service | Port | URL | +| ---------------- | ---- | --------------------- | +| **Mana Auth** | 3001 | http://localhost:3001 | +| **Chat Backend** | 3002 | http://localhost:3002 | +| **Web App** | 5173 | http://localhost:5173 | +| **Mobile App** | 8081 | exp://localhost:8081 | --- ## 🐛 Potential Issues & Solutions -### Issue: "Connection refused" to Mana Core Auth +### Issue: "Connection refused" to Mana Auth -**Solution:** Make sure Mana Core Auth is running on port 3001 +**Solution:** Make sure Mana Auth is running on port 3001 ```bash -cd mana-core-auth && pnpm start:dev +cd mana-auth && pnpm start:dev ``` ### Issue: "Invalid token" errors @@ -317,10 +317,10 @@ await SecureStore.deleteItemAsync('@auth/refreshToken'); ### Issue: CORS errors from web app -**Solution:** Add web app URL to Mana Core Auth CORS config +**Solution:** Add web app URL to Mana Auth CORS config ```env -# In mana-core-auth/.env +# In mana-auth/.env CORS_ORIGINS=http://localhost:5173,http://localhost:8081 ``` @@ -336,7 +336,7 @@ MANA_AUTH_URL=http://localhost:3001 ## 📚 API Endpoint Reference -### Mana Core Auth (Port 3001) +### Mana Auth (Port 3001) - POST `/api/v1/auth/register` - Register new user - POST `/api/v1/auth/login` - Login with email/password @@ -388,15 +388,15 @@ MANA_AUTH_URL=http://localhost:3001 ## 📖 Documentation - **Integration Guide:** `/chat/MANA_AUTH_INTEGRATION.md` -- **Mana Core Auth README:** `/mana-core-auth/README.md` -- **Quick Start:** `/mana-core-auth/QUICKSTART.md` +- **Mana Auth README:** `/mana-auth/README.md` +- **Quick Start:** `/mana-auth/QUICKSTART.md` - **Master Plan:** `/.hive-mind/MASTER_PLAN_CENTRAL_AUTH_SYSTEM.md` --- ## ✨ Benefits of Migration -1. **✅ Centralized Authentication** - Single auth system for all Mana Core apps +1. **✅ Centralized Authentication** - Single auth system for all Mana apps 2. **✅ Built-in Credits** - No need to build separate credit system 3. **✅ Better Security** - RS256 JWT, refresh token rotation, optimistic locking 4. **✅ Cost Savings** - Self-hosted, no per-user charges diff --git a/apps/chat/MANA_CORE_AUTH_INTEGRATION.md b/apps/chat/MANA_CORE_AUTH_INTEGRATION.md index 80a0fb030..4333fb455 100644 --- a/apps/chat/MANA_CORE_AUTH_INTEGRATION.md +++ b/apps/chat/MANA_CORE_AUTH_INTEGRATION.md @@ -1,14 +1,14 @@ -# Mana Core Auth Integration Guide - Chat Project +# Mana Auth Integration Guide - Chat Project -This guide explains how to integrate the Chat project with the new **Mana Core Auth** system, replacing Supabase Auth. +This guide explains how to integrate the Chat project with the new **Mana Auth** system, replacing Supabase Auth. ## Overview -The Chat project currently uses **Supabase Auth** across all apps. We're migrating to **Mana Core Auth**, our centralized authentication system with built-in credit management. +The Chat project currently uses **Supabase Auth** across all apps. We're migrating to **Mana Auth**, our centralized authentication system with built-in credit management. ### Benefits -- ✅ **Unified Authentication** - Single auth system for all Mana Core apps +- ✅ **Unified Authentication** - Single auth system for all Mana apps - ✅ **Built-in Credits** - Automatic credit balance management (150 signup bonus + 5 daily) - ✅ **Better Security** - RS256 JWT, refresh token rotation, optimistic locking - ✅ **Cost Savings** - Self-hosted, no per-user charges @@ -19,9 +19,9 @@ The Chat project currently uses **Supabase Auth** across all apps. We're migrati ``` Chat Apps (Web, Mobile, Landing) ↓ -@manacore/shared-auth (Client Library) +@mana/shared-auth (Client Library) ↓ -Mana Core Auth Service (NestJS) +Mana Auth Service (NestJS) ↓ PostgreSQL (Users, Sessions, Credits) ``` @@ -30,7 +30,7 @@ PostgreSQL (Users, Sessions, Credits) ### 1. Shared Auth Package Updated ✅ -The `@manacore/shared-auth` package has been updated to work with Mana Core Auth endpoints: +The `@mana/shared-auth` package has been updated to work with Mana Auth endpoints: **Updated endpoints:** @@ -56,7 +56,7 @@ The `@manacore/shared-auth` package has been updated to work with Mana Core Auth # SUPABASE_URL=... # SUPABASE_SERVICE_KEY=... -# Add Mana Core Auth URL +# Add Mana Auth URL MANA_AUTH_URL=http://localhost:3001 ``` @@ -114,7 +114,7 @@ export class JwtAuthGuard implements CanActivate { } try { - // Get public key from Mana Core Auth + // Get public key from Mana Auth const authUrl = this.configService.get- Ein Manacore Produkt + Ein Mana Produkt
diff --git a/apps/contacts/package.json b/apps/contacts/package.json index 6bd060717..70bc074a8 100644 --- a/apps/contacts/package.json +++ b/apps/contacts/package.json @@ -2,7 +2,7 @@ "name": "contacts", "version": "1.0.0", "private": true, - "description": "Contacts App - Contact Management with Manacore Integration", + "description": "Contacts App - Contact Management with Mana Integration", "scripts": { "dev": "pnpm run --filter=@contacts/* --parallel dev", "dev:server": "pnpm --filter @contacts/server dev", diff --git a/apps/context/CLAUDE.md b/apps/context/CLAUDE.md index b36976c14..8335a1269 100644 --- a/apps/context/CLAUDE.md +++ b/apps/context/CLAUDE.md @@ -64,7 +64,7 @@ pnpm setup:db:context # Create DB + push schema | **Backend** | Hono + Bun, Drizzle ORM, PostgreSQL | | **Web** | SvelteKit 2.x, Svelte 5 (runes mode), Tailwind CSS 4 | | **Mobile** | React Native 0.76 + Expo SDK 52, NativeWind | -| **Auth** | Mana Core Auth (JWT) | +| **Auth** | Mana Auth (JWT) | | **AI** | Azure OpenAI (GPT-4.1), Google Gemini (Pro, Flash) | | **i18n** | svelte-i18n (DE, EN) | @@ -187,7 +187,7 @@ pnpm setup:db:context # Create DB + push schema ```env NODE_ENV=development PORT=3020 -DATABASE_URL=postgresql://manacore:devpassword@localhost:5432/context +DATABASE_URL=postgresql://mana:devpassword@localhost:5432/context MANA_AUTH_URL=http://localhost:3001 AZURE_OPENAI_API_KEY=your-key AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com/ @@ -202,7 +202,7 @@ PUBLIC_MANA_AUTH_URL=http://localhost:3001 ## Important Patterns -1. **API Client pattern** - All web services use `@manacore/shared-api-client` (Go-style `{ data, error }`) +1. **API Client pattern** - All web services use `@mana/shared-api-client` (Go-style `{ data, error }`) 2. **Svelte 5 runes** - `$state`, `$derived`, `$effect` throughout 3. **Server-side AI keys** - API keys only on backend, never in frontend 4. **Auto word/token count** - Backend calculates on create/update diff --git a/apps/docs/astro.config.mjs b/apps/docs/astro.config.mjs index dd385183b..e0da9e726 100644 --- a/apps/docs/astro.config.mjs +++ b/apps/docs/astro.config.mjs @@ -7,9 +7,9 @@ export default defineConfig({ site: 'https://docs.mana.how', integrations: [ starlight({ - title: 'Manacore Docs', + title: 'Mana Docs', description: - 'Documentation for the Manacore ecosystem - a multi-app platform with shared infrastructure.', + 'Documentation for the Mana ecosystem - a multi-app platform with shared infrastructure.', logo: { light: './src/assets/logo-light.svg', dark: './src/assets/logo-dark.svg', diff --git a/apps/docs/src/content/docs/api/index.mdx b/apps/docs/src/content/docs/api/index.mdx index 4825848ae..8148e88bd 100644 --- a/apps/docs/src/content/docs/api/index.mdx +++ b/apps/docs/src/content/docs/api/index.mdx @@ -1,11 +1,11 @@ --- title: API Reference -description: API documentation for Manacore services. +description: API documentation for Mana services. --- # API Reference -This section contains API documentation for all Manacore backend services. +This section contains API documentation for all Mana backend services. ## Authentication diff --git a/apps/docs/src/content/docs/architecture/authentication.mdx b/apps/docs/src/content/docs/architecture/authentication.mdx index 406689b9c..7933eda93 100644 --- a/apps/docs/src/content/docs/architecture/authentication.mdx +++ b/apps/docs/src/content/docs/architecture/authentication.mdx @@ -7,7 +7,7 @@ import { Aside, Tabs, TabItem, Steps } from '@astrojs/starlight/components'; # Authentication -All Manacore applications use **Mana Core Auth** as the central authentication service, providing EdDSA JWT-based authentication. +All Mana applications use **Mana Core Auth** as the central authentication service, providing EdDSA JWT-based authentication. ## Overview @@ -36,8 +36,8 @@ Mana Core Auth uses **EdDSA (Ed25519)** for JWT signing: "role": "user", "sid": "session-uuid", "exp": 1764606251, - "iss": "manacore", - "aud": "manacore" + "iss": "mana", + "aud": "mana" } ``` @@ -48,18 +48,18 @@ Mana Core Auth uses **EdDSA (Ed25519)** for JWT signing: | `role` | User role (`user`, `admin`) | | `sid` | Session ID for invalidation | | `exp` | Expiration timestamp | -| `iss` | Issuer (`manacore`) | -| `aud` | Audience (`manacore`) | +| `iss` | Issuer (`mana`) | +| `aud` | Audience (`mana`) | ## Backend Integration ### Option 1: Simple Auth Only -Use `@manacore/shared-nestjs-auth` for JWT validation: +Use `@mana/shared-nestjs-auth` for JWT validation: ```typescript // app.module.ts -import { JwtAuthModule } from '@manacore/shared-nestjs-auth'; +import { JwtAuthModule } from '@mana/shared-nestjs-auth'; @Module({ imports: [ @@ -73,7 +73,7 @@ export class AppModule {} ```typescript // controller.ts -import { JwtAuthGuard, CurrentUser, CurrentUserData } from '@manacore/shared-nestjs-auth'; +import { JwtAuthGuard, CurrentUser, CurrentUserData } from '@mana/shared-nestjs-auth'; @Controller('api') @UseGuards(JwtAuthGuard) @@ -140,7 +140,7 @@ export class ApiController { ```typescript // src/lib/auth.ts -import { createAuthService } from '@manacore/shared-auth'; +import { createAuthService } from '@mana/shared-auth'; export const auth = createAuthService({ authUrl: import.meta.env.PUBLIC_MANA_AUTH_URL, @@ -157,7 +157,7 @@ if (data) { ```typescript // src/services/auth.ts -import { createAuthService } from '@manacore/shared-auth'; +import { createAuthService } from '@mana/shared-auth'; export const auth = createAuthService({ authUrl: process.env.EXPO_PUBLIC_MANA_AUTH_URL, @@ -277,7 +277,7 @@ Never enable auth bypass in production! | Backend | Package | Port | |---------|---------|------| | Chat | `@mana-core/nestjs-integration` | 3002 | -| Picture | `@manacore/shared-nestjs-auth` | 3006 | -| Zitare | `@manacore/shared-nestjs-auth` | 3007 | +| Picture | `@mana/shared-nestjs-auth` | 3006 | +| Zitare | `@mana/shared-nestjs-auth` | 3007 | | Cards | `@mana-core/nestjs-integration` | 3009 | -| Contacts | `@manacore/shared-nestjs-auth` | 3015 | +| Contacts | `@mana/shared-nestjs-auth` | 3015 | diff --git a/apps/docs/src/content/docs/architecture/backend.mdx b/apps/docs/src/content/docs/architecture/backend.mdx index 32d147275..ea74449a6 100644 --- a/apps/docs/src/content/docs/architecture/backend.mdx +++ b/apps/docs/src/content/docs/architecture/backend.mdx @@ -1,13 +1,13 @@ --- title: Backend (NestJS) -description: NestJS backend architecture patterns in Manacore. +description: NestJS backend architecture patterns in Mana. --- import { Aside, Tabs, TabItem } from '@astrojs/starlight/components'; # Backend Architecture -All Manacore backends use **NestJS 10-11** with consistent patterns for structure, validation, and error handling. +All Mana backends use **NestJS 10-11** with consistent patterns for structure, validation, and error handling. ## Project Structure @@ -75,7 +75,7 @@ import { HttpCode, HttpStatus, } from '@nestjs/common'; -import { JwtAuthGuard, CurrentUser, CurrentUserData } from '@manacore/shared-nestjs-auth'; +import { JwtAuthGuard, CurrentUser, CurrentUserData } from '@mana/shared-nestjs-auth'; import { UsersService } from './users.service'; import { CreateUserDto } from './dto/create-user.dto'; @@ -109,7 +109,7 @@ Services contain business logic and database operations: ```typescript import { Injectable, NotFoundException } from '@nestjs/common'; import { Inject } from '@nestjs/common'; -import { DRIZZLE } from '@manacore/shared-drizzle'; +import { DRIZZLE } from '@mana/shared-drizzle'; import { eq, and } from 'drizzle-orm'; import { users } from '../drizzle/schema'; diff --git a/apps/docs/src/content/docs/architecture/mobile.mdx b/apps/docs/src/content/docs/architecture/mobile.mdx index 968f38d11..cecb67d1a 100644 --- a/apps/docs/src/content/docs/architecture/mobile.mdx +++ b/apps/docs/src/content/docs/architecture/mobile.mdx @@ -1,13 +1,13 @@ --- title: Mobile (Expo) -description: Expo React Native mobile application patterns in Manacore. +description: Expo React Native mobile application patterns in Mana. --- import { Aside, Tabs, TabItem } from '@astrojs/starlight/components'; # Mobile Architecture -Manacore mobile apps use **Expo SDK 52+** with React Native, Expo Router, and NativeWind for styling. +Mana mobile apps use **Expo SDK 52+** with React Native, Expo Router, and NativeWind for styling. ## Project Structure diff --git a/apps/docs/src/content/docs/architecture/overview.mdx b/apps/docs/src/content/docs/architecture/overview.mdx index 663ffa7be..f2fec64f5 100644 --- a/apps/docs/src/content/docs/architecture/overview.mdx +++ b/apps/docs/src/content/docs/architecture/overview.mdx @@ -1,13 +1,13 @@ --- title: Architecture Overview -description: High-level architecture of the Manacore ecosystem. +description: High-level architecture of the Mana ecosystem. --- import { Card, CardGrid } from '@astrojs/starlight/components'; # Architecture Overview -Manacore is a multi-app ecosystem with shared infrastructure, enabling rapid development of interconnected applications. +Mana is a multi-app ecosystem with shared infrastructure, enabling rapid development of interconnected applications. ## System Architecture diff --git a/apps/docs/src/content/docs/architecture/search.mdx b/apps/docs/src/content/docs/architecture/search.mdx index 1f005a9fa..0cad30474 100644 --- a/apps/docs/src/content/docs/architecture/search.mdx +++ b/apps/docs/src/content/docs/architecture/search.mdx @@ -7,7 +7,7 @@ import { Tabs, TabItem, Aside } from '@astrojs/starlight/components'; # Search Service -**Mana Search** provides web search and content extraction capabilities for Manacore applications. +**Mana Search** provides web search and content extraction capabilities for Mana applications. ## Architecture diff --git a/apps/docs/src/content/docs/architecture/storage.mdx b/apps/docs/src/content/docs/architecture/storage.mdx index ac09ceb81..ada630877 100644 --- a/apps/docs/src/content/docs/architecture/storage.mdx +++ b/apps/docs/src/content/docs/architecture/storage.mdx @@ -1,13 +1,13 @@ --- title: Storage -description: S3-compatible object storage for files and media in Manacore. +description: S3-compatible object storage for files and media in Mana. --- import { Tabs, TabItem, Aside } from '@astrojs/starlight/components'; # Storage -Manacore uses S3-compatible object storage for file uploads, generated images, and other media. +Mana uses S3-compatible object storage for file uploads, generated images, and other media. ## Architecture @@ -50,7 +50,7 @@ import { createPictureStorage, generateUserFileKey, getContentType, -} from '@manacore/shared-storage'; +} from '@mana/shared-storage'; const storage = createPictureStorage(); @@ -101,7 +101,7 @@ import { createChatStorage, createCardsStorage, createContactsStorage, -} from '@manacore/shared-storage'; +} from '@mana/shared-storage'; // Each creates a client configured for that bucket const pictureStorage = createPictureStorage(); @@ -111,7 +111,7 @@ const chatStorage = createChatStorage(); ### Custom Storage Client ```typescript -import { createStorageClient } from '@manacore/shared-storage'; +import { createStorageClient } from '@mana/shared-storage'; const customStorage = createStorageClient({ bucket: 'my-custom-bucket', diff --git a/apps/docs/src/content/docs/architecture/web.mdx b/apps/docs/src/content/docs/architecture/web.mdx index 449d097ab..ac61c587b 100644 --- a/apps/docs/src/content/docs/architecture/web.mdx +++ b/apps/docs/src/content/docs/architecture/web.mdx @@ -1,13 +1,13 @@ --- title: Web (SvelteKit) -description: SvelteKit web application patterns in Manacore. +description: SvelteKit web application patterns in Mana. --- import { Aside, Tabs, TabItem } from '@astrojs/starlight/components'; # Web Architecture -All Manacore web applications use **SvelteKit 2** with **Svelte 5** (runes mode) and Tailwind CSS. +All Mana web applications use **SvelteKit 2** with **Svelte 5** (runes mode) and Tailwind CSS. ## Project Structure diff --git a/apps/docs/src/content/docs/deployment/cloudflare-pages.mdx b/apps/docs/src/content/docs/deployment/cloudflare-pages.mdx index ebb5676cd..054d634ba 100644 --- a/apps/docs/src/content/docs/deployment/cloudflare-pages.mdx +++ b/apps/docs/src/content/docs/deployment/cloudflare-pages.mdx @@ -15,10 +15,10 @@ All landing pages and static sites are deployed to **Cloudflare Pages** using Di |---------|---------|-------------------|-----| | Chat | `@chat/landing` | `chat-landing` | chat.mana.how | | Picture | `@picture/landing` | `picture-landing` | picture.mana.how | -| Manacore | `@manacore/landing` | `manacore-landing` | mana.how | +| Mana | `@mana/landing` | `mana-landing` | mana.how | | Cards | `@cards/landing` | `cards-landing` | cards.mana.how | | Zitare | `@zitare/landing` | `zitare-landing` | zitare.mana.how | -| Docs | `@manacore/docs` | `manacore-docs` | docs.mana.how | +| Docs | `@mana/docs` | `mana-docs` | docs.mana.how | ## Quick Deploy diff --git a/apps/docs/src/content/docs/deployment/mac-mini-server.mdx b/apps/docs/src/content/docs/deployment/mac-mini-server.mdx index 07f9c0bb4..9c4e4fbbb 100644 --- a/apps/docs/src/content/docs/deployment/mac-mini-server.mdx +++ b/apps/docs/src/content/docs/deployment/mac-mini-server.mdx @@ -1,6 +1,6 @@ --- title: Mac Mini Server -description: Production server setup and management for Manacore backends. +description: Production server setup and management for Mana backends. --- import { Steps, Aside, Tabs, TabItem } from '@astrojs/starlight/components'; @@ -37,7 +37,7 @@ Requires `cloudflared` installed: `brew install cloudflare/cloudflare/cloudflare ## Directory Structure ``` -~/projects/manacore-monorepo/ +~/projects/mana-monorepo/ ├── docker-compose.macmini.yml # Production compose file ├── .env.production # Production environment ├── scripts/mac-mini/ # Server management scripts @@ -53,7 +53,7 @@ Requires `cloudflared` installed: `brew install cloudflare/cloudflare/cloudflare ```bash ssh mana-server -cd ~/projects/manacore-monorepo +cd ~/projects/mana-monorepo ./scripts/mac-mini/status.sh ``` @@ -71,7 +71,7 @@ chat-backend running (healthy) ```bash ssh mana-server -cd ~/projects/manacore-monorepo +cd ~/projects/mana-monorepo ./scripts/mac-mini/deploy.sh ``` @@ -117,12 +117,12 @@ services: postgres: image: postgres:16-alpine environment: - POSTGRES_USER: manacore + POSTGRES_USER: mana POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} volumes: - postgres_data:/var/lib/postgresql/data healthcheck: - test: ["CMD-SHELL", "pg_isready -U manacore"] + test: ["CMD-SHELL", "pg_isready -U mana"] interval: 10s timeout: 5s retries: 5 @@ -143,7 +143,7 @@ services: context: . dockerfile: services/mana-core-auth/Dockerfile environment: - - DATABASE_URL=postgresql://manacore:${POSTGRES_PASSWORD}@postgres:5432/manacore + - DATABASE_URL=postgresql://mana:${POSTGRES_PASSWORD}@postgres:5432/mana_platform - REDIS_URL=redis://:${REDIS_PASSWORD}@redis:6379 depends_on: postgres: @@ -161,7 +161,7 @@ services: context: . dockerfile: apps/chat/apps/backend/Dockerfile environment: - - DATABASE_URL=postgresql://manacore:${POSTGRES_PASSWORD}@postgres:5432/chat + - DATABASE_URL=postgresql://mana:${POSTGRES_PASSWORD}@postgres:5432/chat - MANA_AUTH_URL=http://mana-auth:3001 depends_on: - mana-auth @@ -234,7 +234,7 @@ tail -f /var/log/cloudflared.log ```bash # Manual backup -docker exec postgres pg_dump -U manacore manacore > backup_$(date +%Y%m%d).sql +docker exec postgres pg_dump -U mana mana_platform > backup_$(date +%Y%m%d).sql # Automated daily backups (via cron) 0 2 * * * /home/till/scripts/backup-databases.sh @@ -247,7 +247,7 @@ docker exec postgres pg_dump -U manacore manacore > backup_$(date +%Y%m%d).sql docker compose -f docker-compose.macmini.yml stop chat-backend # Restore -docker exec -i postgres psql -U manacore manacore < backup_20240115.sql +docker exec -i postgres psql -U mana mana_platform < backup_20240115.sql # Start services docker compose -f docker-compose.macmini.yml start chat-backend @@ -309,7 +309,7 @@ docker image prune -a docker compose -f docker-compose.macmini.yml ps postgres # Test connection -docker exec -it postgres psql -U manacore -c "SELECT 1" +docker exec -it postgres psql -U mana -c "SELECT 1" # Check logs docker compose -f docker-compose.macmini.yml logs postgres diff --git a/apps/docs/src/content/docs/deployment/overview.mdx b/apps/docs/src/content/docs/deployment/overview.mdx index e6c803333..4b925bc2e 100644 --- a/apps/docs/src/content/docs/deployment/overview.mdx +++ b/apps/docs/src/content/docs/deployment/overview.mdx @@ -1,13 +1,13 @@ --- title: Deployment Overview -description: Deployment strategies and infrastructure for Manacore applications. +description: Deployment strategies and infrastructure for Mana applications. --- import { Card, CardGrid, Aside } from '@astrojs/starlight/components'; # Deployment Overview -Manacore uses multiple deployment strategies depending on the application type. +Mana uses multiple deployment strategies depending on the application type. ## Deployment Targets @@ -92,7 +92,7 @@ pnpm deploy:docs ssh mana-server # Pull latest changes -cd ~/projects/manacore-monorepo +cd ~/projects/mana-monorepo git pull # Restart services @@ -135,7 +135,7 @@ npx wrangler pages deployment tail
diff --git a/apps/mana/apps/landing/src/pages/es/index.astro b/apps/mana/apps/landing/src/pages/es/index.astro
index 4a7e0eee3..3eb6899ee 100644
--- a/apps/mana/apps/landing/src/pages/es/index.astro
+++ b/apps/mana/apps/landing/src/pages/es/index.astro
@@ -83,7 +83,7 @@ const apps = [
];
---
-
diff --git a/apps/mana/apps/landing/src/pages/fr/index.astro b/apps/mana/apps/landing/src/pages/fr/index.astro
index 4a7e0eee3..3eb6899ee 100644
--- a/apps/mana/apps/landing/src/pages/fr/index.astro
+++ b/apps/mana/apps/landing/src/pages/fr/index.astro
@@ -83,7 +83,7 @@ const apps = [
];
---
-
diff --git a/apps/mana/apps/landing/src/pages/index.astro b/apps/mana/apps/landing/src/pages/index.astro
index 629a902e6..4369bfc2f 100644
--- a/apps/mana/apps/landing/src/pages/index.astro
+++ b/apps/mana/apps/landing/src/pages/index.astro
@@ -106,7 +106,7 @@ const apps = [
];
---
-
diff --git a/apps/mana/apps/landing/src/pages/it/index.astro b/apps/mana/apps/landing/src/pages/it/index.astro
index 4a7e0eee3..3eb6899ee 100644
--- a/apps/mana/apps/landing/src/pages/it/index.astro
+++ b/apps/mana/apps/landing/src/pages/it/index.astro
@@ -83,7 +83,7 @@ const apps = [
];
---
-
diff --git a/apps/mana/apps/landing/src/pages/mission/index.astro b/apps/mana/apps/landing/src/pages/mission/index.astro
index 8b4ba2bfa..70f1c95ab 100644
--- a/apps/mana/apps/landing/src/pages/mission/index.astro
+++ b/apps/mana/apps/landing/src/pages/mission/index.astro
@@ -39,7 +39,7 @@ const categoryIcons = {
background="gradient"
minHeight="large"
sideImage={true}
- imageSrc="/images/Mana_Sea_Sun_Manacore_AI_Credits.jpg"
+ imageSrc="/images/Mana_Sea_Sun_Mana_AI_Credits.jpg"
imageAlt="Mana Nautilus - Evolution der KI-Nutzung"
containerClass=""
debug={false}
diff --git a/apps/mana/apps/landing/src/pages/release-plan.astro b/apps/mana/apps/landing/src/pages/release-plan.astro
index 16c7b5a5e..8dba45f18 100644
--- a/apps/mana/apps/landing/src/pages/release-plan.astro
+++ b/apps/mana/apps/landing/src/pages/release-plan.astro
@@ -2,7 +2,7 @@
import Layout from '../layouts/Layout.astro';
---
-