Back to Projects

SpunkAI

2024|Lead Architect & Mobile Engineer|Completed|React NativeAI/ML
React NativeExpoTamaguiNode.jsHonoSupabasePostgreSQLGCP Vertex AIRevenueCat
SpunkAI screenshot 1
SpunkAI screenshot 2
SpunkAI screenshot 3
SpunkAI screenshot 4
SpunkAI screenshot 5
SpunkAI screenshot 6
SpunkAI screenshot 7
SpunkAI screenshot 8
SpunkAI screenshot 9
SpunkAI screenshot 10
SpunkAI screenshot 11
SpunkAI screenshot 12
SpunkAI screenshot 13
SpunkAI screenshot 14
SpunkAI screenshot 15

// overview

SpunkAI is a mobile-native AI coach marketplace and assistant app that allows users to create, deploy, and monetize specialized AI agents known as "Coaches". Each Coach functions as a personalized digital assistant with a predefined role and structured permissions. To solve privacy concerns, the app implements a permission-based architecture that restricts LLM tool usage to specific authorized mobile actions, enabling safe and autonomous execution in a controlled environment.

// key features

  • Intelligent Coach MarketplaceAllows creators to design specialized AI personas with custom system prompts and monetize them using RevenueCat for entitlement checks.
  • Skill Toggle ArchitectureDynamically injects system tool definitions into Vertex AI API calls based on Supabase database configurations, strictly adhering to the principle of least privilege.
  • Proactive Action ExecutionEnables AI agents to proactively trigger mobile device actions such as creating reminders, alarms, notes, timers, and calendar events rather than simply responding to chat prompts.
  • Contextual Isolation & RAGSupports uploading PDF files or raw text to give each coach isolated knowledge, utilizing Supabase with pgvector for secure localized embeddings.

// architecture

SpunkAI is built on a multi-tiered architecture. The frontend is built using React Native with Expo and styled with Tamagui for native fluid UI rendering. The backend is a decoupled Node.js and Hono middleware running as a secure orchestrator. Database configurations and memory context are stored in Supabase (PostgreSQL), utilizing pgvector for RAG vector embeddings, while GCP Vertex AI powers the core agent inference.

// tech decisions

A decoupled React Native storefront with Tamagui was chosen for cross-platform efficiency and fluid design aesthetics. Supabase and pgvector were selected for low-overhead database management and semantic search capabilities. Hono was chosen as the API gateway for its light footprint and speedy middleware validation, ensuring tool invocation checks happen in sub-milliseconds.

// role

Lead Architect & Mobile Engineer — Designed the mobile application and permission controller