ContextWeave UI Generation Prompt
Application Summary
ContextWeave is an AI-powered developer tool that provides instant, curated documentation context for any library or framework. It helps developers:
- Understand new libraries quickly
- Get relevant examples and best practices
- Reduce time spent searching documentation
The application has two core components:
- Frontend: Next.js marketing site and playground
- Backend: FastAPI service handling context generation
Marketing Content
Core Messaging
- "Stop Googling, Start Building"
- "Your AI wing-agent for shipping code that works the first time"
- "Context when you need it, not when you find it"
Feature Highlights
- Instant Library Context: Get up to speed with any library in seconds
- Curated Examples: Real-world code snippets tailored to your use case
- Best Practices: Avoid common pitfalls with expert guidance
- Seamless Integration: Works with your existing tools and workflows
Marketing Pages
- Homepage: Hero section with value proposition
- Features: Detailed feature breakdown with benefits
- Examples: Interactive demo of context generation
- Docs: Technical documentation
- Playground: Live testing environment
Frontend Architecture
Pages to Generate
/
: Marketing homepage/features
: Feature showcase/examples
: Use case examples/docs
: Technical documentation/playground
: Interactive demo/dashboard
: User dashboard (authenticated)
Components to Reuse
Header
: Global navigationFooter
: Site footer with linksHeroSection
: Landing page heroFeaturesSection
: Feature cardsMarkdownRenderer
: Docs content rendererCodeBlock
: Syntax-highlighted code snippets
Design Guidelines
- Maintain existing Tailwind CSS configuration
- Use shadcn/ui component library
- Dark/light mode support
- Monospace font for code elements
Backend Architecture
Supabase Services
Loading diagram...
Function Requirements
-
User Authentication:
- GitHub OAuth integration
- Session management
-
Library Search:
- Fuzzy search by name/description
- Filter by library type (npm/pypi/github)
-
Context Generation:
- Retrieve library metadata
- Fetch documentation chunks
- Return curated context
Best Practices
- TypeScript for type safety
- Modular function organization
- Error handling middleware
- Rate limiting for API protection