1. Conduid
  2. Documentation
  3. Torii Monorepo
MCP server · Documentation

Torii Monorepo

SEP490 - Torii Nihongo - WebRTC-based live classes and FastMCP-powered AI feedback solution for a Japanese Learning Center

Unclaimed docs
34Low

Scored 12 days ago · breakdown

About Torii Monorepo

Torii Monorepo is an MCP server in the Documentation category: sEP490 - Torii Nihongo - WebRTC-based live classes and FastMCP-powered AI feedback solution for a Japanese Learning Center.

The repository has 2 stars and 0 forks.

Install

From source
git clone https://github.com/Lain4504/torii-monorepo

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Torii Monorepo

Powered by Claude · Grounded in docs

I know everything about Torii Monorepo. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

🏯 Torii Nihongo Monorepo

Hệ sinh thái học tiếng Nhật thế hệ mới tích hợp công nghệ AI Tutor (FastMCP, Gemini Live) và Live Class (WebRTC). Monorepo này được thiết kế với kiến trúc Microservices hiện đại, sử dụng NATS JetStream làm xương sống giao tiếp và Turborepo để quản lý hiệu năng.

Technology Framework Message Broker Database


🌐 Hệ thống Tên miền (Domains)

Dịch vụ URL Mô tả
Backend API api.torii.sbs Điểm truy cập duy nhất (Gateway) cho toàn bộ hệ thống.
Learning Platform app.torii.sbs Cổng thông tin học tập dành cho học viên (Next.js).
Live Meet meet.torii.sbs Hệ thống lớp học trực tuyến WebRTC.
Admin Dashboard admin.torii.sbs Công cụ quản trị dành cho Giáo viên & Quản lý.

🏗 Kiến trúc Hệ thống (New Architecture)

Dự án áp dụng mô hình Hybrid Cloud Architecture kết hợp giữa tính đồng bộ của REST/gRPC và tính linh hoạt của Event-Driven Design.

🏛 Sơ đồ Luồng dữ liệu (Hub-and-Spoke Microservices)

graph TB
    subgraph Clients ["🌐 Kênh Giao diện (Frontends)"]
        Learner["Learner Web (Next.js)"]
        Admin["Admin Web (Vite)"]
        Mobile["Mobile App (Coming Soon)"]
    end

    Clients -->|HTTPS/REST/WS| Gateway

    subgraph Backend ["🗼 Torii Backend Engine"]
        Gateway["<b>API Gateway</b><br/>Registry, Proxy, Auth Guard"]
        
        subgraph Internal ["💎 Hệ sinh thái Microservices"]
            direction LR
            Identity["<b>Identity Service</b><br/>Auth, RBAC, Profile"]
            Academy["<b>Academy Service</b><br/>LMS, Exam, Commerce"]
            Meet["<b>Meet Service</b><br/>WebRTC, Recording"]
            Agents["<b>AI Agents</b><br/>Tutor, Analytics"]
            VoiceAgent["<b>Voice Agent</b><br/>Gemini Live, STT/TTS"]
        end

        Gateway <-->|NATS Request-Response| Internal
    end

    Internal <-->|Pub/Sub Events| NATS[("📡 NATS JetStream")]
    Meet <-->|Signaling| LiveKit(("🎙 LiveKit Server"))
    Internal --- DB[("🗄 PostgreSQL + Redis")]
    
    style Gateway fill:#f9f,stroke:#333,stroke-width:2px
    style NATS fill:#69f,stroke:#333,stroke-width:2px
    style DB fill:#9f9,stroke:#333,stroke-width:2px

🧩 Chi tiết các Microservices

1. 🛡 Identity Service (Định danh & Bảo mật)

Trung tâm quản lý người dùng và quyền hạn.

  • Auth Module: Đăng nhập đa phương thức (Email, Google OAuth2).
  • 2FA: Bảo mật 2 lớp qua TOTP ứng dụng.
  • RBAC: Phân quyền dựa trên vai trò (Student, Teacher, Admin).
  • Audit Logger: Lưu vết hoạt động hệ thống nhằm mục đích bảo mật và hoàn tác.
  • Notification: Tích hợp Email (SendGrid/SMTP) và In-app notification.

2. 📚 Academy Service (Lõi LMS - Học thuật)

Dịch vụ lớn nhất, quản lý toàn bộ nội dung giáo dục.

  • Content Engine: Quản lý Course, Module, Lesson đa phương tiện.
  • Assessment & Exam: Hệ thống ngân hàng câu hỏi, tạo đề thi tự động và chấm điểm Real-time.
  • Classroom Management: Quản lý lớp học, lịch học, điểm danh và tiến độ học viên.
  • Commerce (PayOS): Tích hợp thanh toán khóa học, quản lý mã giảm giá (Coupon) và hóa đơn.
  • SRS Flashcards: Thuật toán lặp lại ngắt quãng giúp ghi nhớ từ vựng hiệu quả.
  • Gamification: Hệ thống Streak, XP và Huy chương (Achievements).

3. 🎥 Meet Service (Lớp học Trực tuyến)

Xây dựng trên nền tảng LiveKit, tối ưu cho dạy học ngoại ngữ.

  • WebRTC Integration: Truyền tải âm thanh/hình ảnh độ trễ thấp.
  • Artifacts & Recording: Ghi hình buổi học, lưu trữ tài liệu đã chia sẻ.
  • Interactive Tools: Thăm dò ý kiến (Polls), chia phòng (Breakout rooms), Bảng trắng (Whiteboard).
  • AI Insights: Phân tích biểu cảm học viên, tự động tạo phụ đề (Speech-to-Text).

4. 🤖 AI Agents & Voice Agent (Trợ lý Sensei)

Sức mạnh vượt trội của Torii.

  • Sensei Agent: Giải thích ngữ pháp, sửa bài tập và dịch thuật ngữ cảnh.
  • Gemini Live Integration: Giao tiếp bằng giọng nói trực tiếp với AI để luyện phản xạ.
  • FastMCP Architecture: Cho phép AI truy cập vào database dự án để đưa ra tư vấn chính xác nhất về tiến độ học tập.
  • TTS Service: Sử dụng Microsoft Azure Neural voices cho phát âm chuẩn Nhật.

🛠 Công nghệ Sử dụng (Tech Stack)

  • Ngôn ngữ: TypeScript, Python (cho AI/TTS).
  • Framework:
  • Infrastructure:
  • AI/ML: Google Gemini (Flash/Pro/Live), Azure Cognitive Services.
  • DevOps: Docker, TurboRepo, PNPM Workspaces.

📂 Cấu trúc Thư mục

torii-monorepo/
├── apps/
│   ├── server/             # Backend Workspace (NestJS)
│   │   ├── services/       # 5 Microservices chính (Gateway, Identity, Academy, Agents, Meet)
│   │   └── libs/           # Thư viện dùng chung (Shared logic, NATS Proxy, Prisma)
│   ├── web-learner/        # 🎓 Giao diện Học viên (Next.js)
│   ├── web-admin/          # ⚙ Giao diện Quản trị (Vite + React)
│   ├── meet/               # 📹 Ứng dụng WebRTC chuyên biệt
│   └── voice-agent/        # 🎙 Dịch vụ AI Voice Agent (Gemini Live)
├── packages/               # Shared Packages (@workspace/*)
│   ├── protocol/           # Định nghĩa Protobuf cho NATS/LiveKit
│   ├── schemas/            # Zod schemas & DTO dùng chung cho BE & FE
│   ├── ui/                 # Design System (Tailwind + Shadcn/ui)
│   └── typescript-config/  # Cấu hình compiler tập trung
└── deploy/                 # Docker Compose & K8s config

🚀 Hướng dẫn Bắt đầu (Quick Start)

1. Cài đặt Cơ sở hạ tầng

docker compose up -d # Khởi chạy NATS, DB, Redis, LiveKit

2. Cài đặt Dependencies

pnpm install

3. Thiết lập Môi trường & Database

cp .env.example .env
# Đồng bộ Database schema
cd apps/server
npx prisma generate
npx prisma db push

# Build shared packages
pnpm --filter @workspace/schemas run build
pnpm --filter @workspace/protocol run generate
pnpm --filter @workspace/protocol run build

4. Khởi chạy Chế độ Phát triển

pnpm dev # Chạy toàn bộ hệ thống
# HOẶC chạy riêng Backend
pnpm --filter server dev

5. Docker Deployment (VPS)

# Cập nhật và triển khai image mới
docker compose pull
docker compose up -d
# Dọn dẹp tài nguyên thừa
docker image prune -f

📐 Nguyên tắc Thiết kế (Design Principles)

  1. Protocol-First: Mọi giao tiếp giữa các service phải được định nghĩa qua Protobuf hoặc Shared Schemas.
  2. Stateless Services: Các microservice không lưu trạng thái cục bộ, cho phép scale ngang dễ dàng.
  3. Eventual Consistency: Sử dụng NATS JetStream để đảm bảo tính nhất quán dữ liệu qua các sự kiện.
  4. Security-First: Mọi request qua Gateway đều được kiểm tra bởi JWT Guard và RBAC policy.

Torii Nihongo Team - Mang sức mạnh AI vào giáo dục tiếng Nhật. 🗼🚀

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Torii Monorepo

How do I install Torii Monorepo?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Torii Monorepo safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Torii Monorepo still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.