Documentation Index
Fetch the complete documentation index at: https://docs.moodmnky.com/llms.txt
Use this file to discover all available pages before exploring further.
MNKY VERSE Application
MNKY VERSE is the web experiential portal within the mood-mnky-command monorepo. It is not a separate application—it lives inside the single Next.js app atapps/web/ under the storefront route group.
All MNKY VERSE routes are served from
apps/web/app/(storefront)/verse/. The same app also hosts The Dojo (/dojo) and MNKY LABZ (/ dashboard). Deployment is a single Vercel project.Architecture
Directory Structure
Technology Stack
| Layer | Technology |
|---|---|
| Frontend | Next.js 14+ (App Router), React, TypeScript |
| UI | shadcn/ui, Tailwind CSS |
| E-commerce | Hydrogen React (@shopify/hydrogen-react), Storefront API |
| Backend | Supabase (Auth, PostgreSQL, Realtime, Storage) |
| Deployment | Vercel |
Shopify Integration
Storefront API
- Client:
lib/shopify/storefront-client.ts—createStorefrontClientfrom@shopify/hydrogen-react - Queries:
lib/shopify/storefront-queries.ts— products, collections, cart operations - API version: 2026-01
- Credentials: Storefront API tokens from Shopify Admin → Hydrogen or Headless channel
Providers
Verse pages useVerseProviders (components/verse/verse-providers.tsx) wrapping ShopifyProvider and CartProvider for cart state and checkout.
App Proxy (Theme ↔ Verse)
The Shopify Liquid theme can call the MNKY VERSE backend via the App Proxy. Requests tohttps://{shop}.myshopify.com/apps/mnky/* are proxied to the app.
| Route | Purpose |
|---|---|
GET /apps/mnky/session | Short-lived JWT for theme JS to call Verse APIs |
GET /apps/mnky/api/issues | List published manga issues |
GET /apps/mnky/api/quests | List active quests |
extensions/mood-mnky-theme/blocks/mnky-verse-issue-teaser.liquid) use App Proxy to fetch issues and quests. See MNKY-VERSE-APP-PROXY-SETUP.md and Shopify Store.
Theme Integration and Cross-Linking
The Shopify theme and MNKY VERSE share navigation and CTAs:- Theme → Verse: Header/main-menu links to Blending Lab, Dojo, Explore, Blog, Agents, Community; app blocks use App base URL (
NEXT_PUBLIC_APP_URL) for CTAs - Verse → Theme: Verse footer and product pages link back to the Shopify store for checkout and collections
- Featured blog: Theme featured-blog section has “View all in the MNKY VERSE” linking to
/verse/blog
Customer Account API (Login with Shopify)
MNKY VERSE supports Authenticate with Shopify (OAuth 2.0 PKCE) so customers can link their Shopify account for perks and order history.- Flow: User signs in (Supabase) →
GET /api/customer-account-api/auth→ Shopify OAuth → callback → tokens stored in Supabase - Env:
PUBLIC_CUSTOMER_ACCOUNT_API_CLIENT_ID,NEXT_PUBLIC_STORE_DOMAIN,NEXT_PUBLIC_APP_URL,SHOP_ID - Redirect URLs: Add
https://mnky-command.moodmnky.com/api/customer-account-api/callbackin Shopify Admin → Allowed redirect URLs
Supabase Integration
MNKY VERSE uses Supabase for:- Verse blog:
verse_blog_posts(synced from Notion) - Profiles:
profiles(extends Supabase Auth) - Gamification:
xp_state,xp_ledger,quests,quest_progress - Agent profiles:
agent_profiles - Chat:
chat_sessions,chat_messages,storefront_chat_sessions - Music:
verse_music_playlist
Getting Started
Prerequisites
- Node.js (LTS) and pnpm
- Shopify CLI (for theme/extension work)
- Supabase project
Setup
-
Clone and install:
-
Configure environment (see
.env.example):NEXT_PUBLIC_SUPABASE_URL,NEXT_PUBLIC_SUPABASE_ANON_KEY- Shopify Storefront API keys (
NEXT_PUBLIC_STORE_DOMAIN,NEXT_PUBLIC_STOREFRONT_API_TOKEN) - Optional: Notion, OpenAI, ElevenLabs for blog sync and agents
-
Run development server:
App runs at
http://localhost:3000. MNKY VERSE routes:/verse,/verse/blog,/verse/shop, etc.
Vercel Deployment
- Root directory: Set to
apps/webin Vercel project settings - Build: Turborepo build from repo root;
pnpm turbo build --filter=web - Environment variables: Configure in Vercel dashboard
API Routes
Verse-specific API routes underapps/web/app/api/verse/:
GET /api/verse/blog— Blog postsGET /api/verse/chat— Chat messagesGET /api/verse/agents— Agent profilesGET /api/verse/profile— User profileGET /api/verse/music— Music tracksPOST /api/verse/upload-attachment— File uploads
Related Resources
- MNKY VERSE Experience — Product/UX overview
- The Dojo — Private member hub
- MNKY LABZ — Admin dashboard
- Technology Stack — Stack overview
- API Hub — API documentation