https://github.com/8syncdev/8sync-verse
8 Sync Verse - Multi-platform learning and AI agent ecosystem (Turborepo + Bun + Next.js + Encore.ts)
https://github.com/8syncdev/8sync-verse
Last synced: about 1 month ago
JSON representation
8 Sync Verse - Multi-platform learning and AI agent ecosystem (Turborepo + Bun + Next.js + Encore.ts)
- Host: GitHub
- URL: https://github.com/8syncdev/8sync-verse
- Owner: 8syncdev
- Created: 2026-04-23T14:36:34.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2026-04-29T08:00:28.000Z (3 months ago)
- Last Synced: 2026-06-14T01:34:26.416Z (about 1 month ago)
- Language: TypeScript
- Size: 752 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π 8 Sync Verse
> Multi-platform learning & AI agent ecosystem β Web, Desktop, Mobile from one codebase.
## π ChαΊ‘y nhanh
```powershell
# PowerShell (Windows)
.\dev.ps1 # ALL: BE (Encore) + FE (4 web apps)
.\dev.ps1 web # Chα» FE (4 web apps)
.\dev.ps1 be # Chα» BE (Encore)
.\dev.ps1 main # Chα» 8syncdev.com
.\dev.ps1 learn # Chα» learn-it
```
```bash
# Bash (macOS/Linux)
./dev.sh # ALL: BE + FE
./dev.sh be # Chα» BE
./dev.sh main # Chα» 8syncdev.com
```
## π¦ CΓ i ΔαΊ·t
```bash
# 1. CΓ i Bun: https://bun.sh
# 2. CΓ i Encore CLI: https://encore.dev/docs/install
# 3. Clone & install
bun install
```
## π KiαΊΏn trΓΊc
### Frontend (Next.js 16)
| App | Port | Domain |
|-----|------|--------|
| `apps/web/main` | 3000 | 8syncdev.com |
| `apps/web/learn` | 3001 | learn-it.8syncdev.com |
| `apps/web/agent` | 3002 | agent.8syncdev.com |
| `apps/web/admin` | 3003 | admin.8syncdev.com |
### Backend (Encore.ts)
| | |
|--|--|
| API | `http://localhost:4000` |
| Dashboard | `http://localhost:9400` |
| Services | auth, user, role, course, lesson, enrollment, chat |
```bash
# Test BE
curl http://localhost:4000/auth/health
# β {"success":true,"result":{"service":"auth","timestamp":"..."}}
```
### Native Apps
| App | Desktop (Tauri) | Mobile (Capacitor) |
|-----|-----------------|-------------------|
| Learn IT | `apps/desktop/learn` | `apps/mobile/learn` |
| Agent | `apps/desktop/agent` | `apps/mobile/agent` |
## π¨ Shared Packages
| Package | MΓ΄ tαΊ£ |
|---------|-------|
| `packages/ui` | Verse design system β Radix primitives, Galaxy 3D canvas, Framer Motion animations |
| `packages/core` | Auth client (auto-gen from Encore), hooks, types, constants, utils |
| `packages/ai` | LLM integration (planned) |
| `packages/config` | Shared tsconfig |
> **packages/core/src/api/client.ts** is auto-generated from the Encore backend β never edit manually.
> Regenerate: `cd apps/backend && encore gen client --target=ts --output=../../packages/core/src/api/client.ts .`
## π Lint & Format
```bash
# Web apps + packages β Biome
bunx biome check apps/web/ packages/
bunx biome check --write apps/web/ packages/ # auto-fix
# Backend β tsc (NO biome)
cd apps/backend && tsc --noEmit
```
## π Deploy Vercel
```powershell
.\deploy.ps1 # Preview all
.\deploy.ps1 main --prod # Production
```
## π Tech Stack (ALL LATEST)
| Tech | Version | Role |
|------|---------|------|
| **Bun** | 1.3+ | Runtime, pkg manager |
| **Next.js** | 16.2.3 | FE (App Router, Turbopack) |
| **Encore.ts** | 1.56.5 | BE (microservices, auto-infra) |
| **React** | 19.2.5 | UI |
| **Tailwind CSS** | 4.2.2 | Styling |
| **Framer Motion** | 12.38.0 | Animations |
| **Drizzle ORM** | 0.45.2 | DB (in Encore) |
| **Zod** | 4.3.6 | Validation |
| **TypeScript** | 6.0.2 | Type safety |
| **Biome** | 2.4.11 | Lint + format (web) |
| **Turborepo** | 2.9.6 | Monorepo build |
## π Structure
```
8sync-verse/
βββ apps/
β βββ web/ # Next.js apps (FE)
β β βββ main/ # :3000
β β βββ learn/ # :3001
β β βββ agent/ # :3002
β β βββ admin/ # :3003
β βββ backend/ # Encore.ts (BE :4000)
β βββ desktop/ # Tauri wrappers
β βββ mobile/ # Capacitor wrappers
βββ packages/
β βββ ui/ # Verse design system
β βββ core/ # Shared logic
β βββ ai/ # LLM layer
β βββ config/ # Shared configs
βββ ref/ # Reference repos (gitignored)
βββ specs/ # Architecture specs
βββ dev.ps1 # β‘ Dev runner (Windows)
βββ dev.sh # β‘ Dev runner (macOS/Linux)
βββ deploy.ps1 # π Vercel deploy
βββ biome.json # Biome config (web only)
βββ turbo.json
βββ CLAUDE.md
βββ README.md
```