How pr1ncegupta/blogcrafter-by-lyzrai works
Project type and purpose
• BlogCrafter is a single-page web application (SPA) built with React, TypeScript, Vite, and Tailwind CSS.
• Its primary purpose is to orchestrate four specialized AI agents—Planner, Writer, Auditor, Optimizer—via the Lyzr AI API to generate, audit, and optimize blog content.
• There is no custom backend; all “business logic” lives in the front-end, which calls out to external AI services.
File structure
• Top level: configuration files (package.json, tsconfig, tailwind.config.js, vite.config.ts).
• /src: application code
• App.tsx, main.tsx, index.css: entry point and global styles
• /components: UI components (pages, cards, modals, utility components)
• /contexts: React Context providers (ThemeContext, WorkflowContext)
• /utils: helper modules for API calls (agents.ts) and downloads (downloadHelpers.ts)
• /types: shared TypeScript types
• No /backend folder; suggests front-end–only architecture.
Additional README insights
• Describes workflows (full end-to-end, planning only, etc.).
• Environment variables configure base API URL, API key, and each agent’s ID.
• Tech stack is front-end centric, with Lyzr AI as external “backend.”