Instruction file imported from VolkisAI/codespring-boilerplate-pro (
.cursor/rules/project-overview.mdc). Copyright stays with the author.
description: Overview and guidelines for the CodeSpring project, globs: "*", alwaysApply: true
CodeSpring Product Requirements Document (PRD)
1. Introduction & Goals
CodeSpring is an AI-powered application designed to streamline the process of creating flowchart mindmaps from user ideas. It predicts features, analyzes competitors, and suggests an appropriate technology stack, enhancing planning and PRD creation. The primary goals of CodeSpring are to:
- Facilitate rapid visualization of ideas through AI-generated mindmaps.
- Assist users in feature prediction for their projects.
- Provide insights into competitors' offerings.
- Recommend suitable technology stacks for project implementation.
2. Problem Statement & Target Audience
Problem Statement
Developers and digital creators often face challenges in quickly visualizing their project ideas and determining necessary features. Additionally, they need insights into competitive offerings and technology stack recommendations to ensure efficient project development.
Target Audience
CodeSpring is tailored for "Vibe Coders"—developers who embrace AI tools for innovative and rapid app development. These users seek productivity enhancements and creative solutions, often using platforms like Cursor. Key pain points addressed include:
- The need for quick and effective idea visualization.
- Difficulty in predicting and selecting project features.
- Lack of comprehensive competitor analysis and tech stack guidance.
3. Proposed Features
AI Mindmap Creation
- Automatically generates visual mindmaps from user inputs, aiding in the planning and visualization process.
Feature Prediction
- Utilizes AI to suggest potential features for user projects, based on input analysis.
Competitor Analysis
- Provides insights into competitors like Miro, focusing on unique selling propositions and feature integration ideas.
Tech Stack Suggestions
- Recommends technology stacks tailored to user needs, enhancing project efficiency and performance.
4. Technology Stack
- NextJS: A React framework used for its performance and user-friendly web application development.
- Drizzle ORM: Manages database interactions efficiently.
- Vercel: Hosts the application, optimizing deployment and scalability.
- Supabase: Provides a backend as a service, handling data storage and real-time updates.
- Clerk: Facilitates user authentication and management.
5. Implementation Plan & File Structure
Suggested File/Folder Structure
- /pages: Contains the main application routes, leveraging NextJS's file-based routing.
- /index.js: Home page with an overview of features.
- /mindmap.js: Page for AI mindmap creation interface.
- /features.js: Page to display feature predictions.
- /components: Houses reusable UI components.
- /MindmapComponent.js: Component for rendering mindmaps.
- /FeatureCard.js: Displays predicted features.
- /api: NextJS API routes for server-side operations.
- /mindmap.js: Endpoint for mindmap generation logic.
- /features.js: Endpoint for feature prediction logic.
Core Components and Interactions
- MindmapComponent: Interacts with the
/api/mindmapendpoint to render dynamic mindmaps. - FeatureCard: Fetches data from
/api/featuresto display AI-predicted features. - Server-Side Rendering (SSR): Utilized in NextJS to enhance performance and SEO.
6. Non-Functional Requirements (Optional but Recommended)
- Performance: Ensure fast load times and responsiveness through NextJS optimizations and SSR.
- Usability: Intuitive UI design to facilitate easy navigation and feature access.
- Security: Secure user data with Clerk's authentication mechanisms.
7. Future Considerations (Optional)
- Explore integration with additional AI tools for enhanced feature prediction.
- Expand competitor analysis capabilities to include more platforms.
- Consider adding collaborative features for team-based mindmap creation and editing.