How rohit1kumar/shareclaude works
Main Components
A. Client-Side Components:
• Chrome Extension Component
• Content Script (content.js)
• Extension Manifest
• Web Application (React)
• Frontend UI Components
• Routing System
• Markdown/Code Rendering
B. Server-Side Components:
• Cloudflare Workers (Backend API)
• Cloudflare D1 Database
• Database Migration System
[Client Layer]
• ↓↑
[API Layer]
• ↓↑
[Data Layer]
Detailed Component Breakdown
A. Client Layer (Top):
• Content Script (interfaces with Claude.ai)
• Share Button Integration
• Components (Header, ChatViewer, CodeBlock, etc.)
• Pages (Home, Privacy Policy)
• Assets & Styling
B. API Layer (Middle):
• Cloudflare Workers API:
• API Routes (/api/chats/*)
• Middleware
• Request/Response Handling
C. Data Layer (Bottom):
• Cloudflare D1 Database:
• Chat Storage
• Migration System
• Schema Definition
Additional Elements
• Security layer (showing private URL generation)
• Static asset handling (Cloudflare Pages)
• Build/Deploy pipeline
Technical Details to Note
Annotations for:
• React + TailwindCSS frontend
• Cloudflare Workers serverless architecture
• Database migration system
• API endpoints structure