Dojo Platform Features

Overview
The Dojo is the members’ private hub in the MNKY VERSE. This document details the core features implemented in the current application.The Dojo integrates with MNKY VERSE for gamification (quests, profile), shopping, and content. Future roadmap items (mood tracking, fragrance studio, wellness rituals) may expand these capabilities.
Implemented Features
XP & Level
Gamification progress displayed on the Dojo home. Fetches from
xp_state; links to profile.Quests
Active quests and completed count. Links to
/verse/quests.Blending Lab
Create and save custom fragrance blends. Access via Crafting context.
Saved Blends
User’s saved fragrance blends, stored in Supabase.
MNKY CHAT
Chat interface with Flowise integration. New chat, saved chats, Flowise config.
Preferences
Default agent selection and user settings.
Navigation Contexts
The Dojo sidebar supports four contexts (Team Switcher):| Context | Focus | Nav Items |
|---|---|---|
| Home | Dojo hub | Home, MNKY CHAT, Preferences; MNKY VERSE links |
| Crafting | Blending | Blending Lab, Saved Blends, MNKY CHAT; Glossary, Shop |
| Verse | MNKY VERSE | Verse Home, Shop, Chat, Profile, Issues, UGC; Dojo links |
| Chat | MNKY CHAT | New chat, Saved chats, Folders, Flowise config, Settings |
Quick Actions
From the Dojo home, members can quickly access:- Preferences
- MNKY VERSE Shop
- Chat
- Issues (manga)
- UGC (user-generated content)
APIs
| Endpoint | Purpose |
|---|---|
GET /api/xp/state | XP and level state |
GET /api/xp/award | Award XP (internal) |
GET /api/xp/rules | XP rules |
GET /api/quests | Quests list |
GET /api/quests/my-progress | User quest progress |
GET /api/dojo/profile | Dojo profile |
GET /api/dojo/music | Music playlists |
Auth Model
- Required: All Dojo routes require Supabase Auth.
- Redirect: Unauthenticated users →
/auth/login. - RLS: Dojo data (profiles, saved_blends, xp_state, quest_progress) protected by Row Level Security.
Components
Key components inapps/web/components/dojo/:
dojo-dashboard-layout.tsx— Layout with SidebarProviderdojo-sidebar.tsx— Sidebar with nav groupsdojo-xp-card.tsx,dojo-quests-card.tsx— Gamification cardsdojo-quick-actions-card.tsx— Quick action buttonsdojo-blending-lab.tsx,dojo-saved-blends-list.tsx— Craftingdojo-chat-sidebar.tsx,dojo-flowise-chatbot.tsx— Chatdojo-auth-context.tsx— Auth and redirect