How carlsamma/sunopromptlastfmapi works
Project Type and Purpose
• This is a full-stack AI Studio web application.
• The root contains a Vite-powered React/TypeScript front-end (index.html, index.tsx, vite.config.ts, src/components, etc.) and a standalone Node/TypeScript microservice in multi-api-server/ that acts as the back-end API layer.
• The app’s goal is to provide an interactive UI (including a Last.fm integration component) that calls out to AI services (e.g., Google Gemini) via the micro-service.
File Structure Analysis
• Top-level directories/files
– .env / .env.local – stores GEMINI_API_KEY and other secrets
– index.html + index.tsx + vite.config.ts + src/ – front-end UI code
– multi-api-server/ – back-end microservice, with its own src/index.ts, logger.ts, config examples, and setup guides
– metadata.json – likely front-end metadata for AI-config or prompt definitions
• Patterns and Configs
– Front-end: React + TypeScript + Vite
– Back-end: Node.js + TypeScript (Express or similar HTTP server), custom logger, config-driven API connectors
– No dedicated database folder; state likely ephemeral or uses third-party APIs only
README Insights
• Describes how to install dependencies (npm install), set GEMINI_API_KEY in .env.local, and run both front-end (npm run dev) and back-end (via multi-api-server/SETUP_GUIDE.md).