Skip to content

Ashish-1910/chat-to-notes

Repository files navigation

Chat to Notes Converter 📝

Project Overview

  • Name: Chat to Notes Converter
  • Goal: Transform AI conversations from ChatGPT, Gemini, Claude, and Grok into beautifully formatted study notes
  • Features:
    • Smart content parsing and structure detection
    • Color-coded sections (definitions, examples, code blocks, lists)
    • PDF and DOCX export functionality
    • User consent for data collection to improve AI models
    • Responsive design with modern UI

🚀 Live Demo

📋 Features Status

✅ Currently Implemented

  1. Chat URL Processing: Supports ChatGPT, Gemini, Claude, and Grok URL formats
  2. Smart Content Extraction: Automatically detects and formats:
    • Definitions and explanations
    • Code blocks with syntax highlighting
    • Lists and bullet points
    • Examples and use cases
    • Questions and answers
  3. Beautiful UI:
    • Gradient header design
    • Color-coded content sections
    • Responsive layout with TailwindCSS
    • FontAwesome icons for visual enhancement
  4. Export Functions: PDF and DOCX download capabilities
  5. Data Collection Consent: Optional user agreement for model training
  6. Demo Mode: Working sample data for immediate testing

🔄 API Endpoints

  • POST /api/process-chat - Process chat URLs and return formatted notes
    • Parameters: { url: string, allowDataCollection: boolean }
    • Response: Structured notes with sections, metadata, and formatting
  • GET /api/platforms - Get list of supported AI platforms

🎯 Content Structure

The converter intelligently organizes chat content into:

  • Title: Extracted from first user question
  • Summary: Brief overview from first AI response
  • Sections:
    • Questions (blue theme)
    • Definitions (blue theme)
    • Explanations (yellow theme)
    • Examples (green theme)
    • Lists/Key Points (purple theme)
    • Code Blocks (red theme with syntax highlighting)

🛠️ Tech Stack

  • Backend: Hono Framework (TypeScript)
  • Frontend: Vanilla JavaScript with TailwindCSS
  • Platform: Cloudflare Workers/Pages
  • Icons: FontAwesome 6.4.0
  • PDF Generation: html2pdf.js
  • HTTP Client: Axios

🏗️ Data Architecture

  • Data Models:
    • ChatMessage (role, content, timestamp)
    • FormattedContent (title, summary, sections, metadata)
  • Storage: Currently in-memory processing (designed for Cloudflare D1 integration)
  • Processing Pipeline: URL extraction → Content parsing → Intelligent formatting → Export generation

📚 User Guide

  1. Paste Chat URL: Copy your AI chat share link into the input field
  2. Optional Data Consent: Check if you want to help improve AI models
  3. Try Demo: Click "Try Demo" for instant preview with sample data
  4. Review Notes: See your formatted notes with color-coded sections
  5. Export: Download as PDF or DOCX for studying or sharing

🚀 Deployment

  • Platform: Cloudflare Pages (edge deployment)
  • Status: ✅ Active (local development complete)
  • Environment: Development server running on PM2
  • Build: Vite build process generates optimized bundles
  • Last Updated: October 2, 2024

🔧 Development Setup

# Install dependencies
npm install

# Start development server
npm run build
pm2 start ecosystem.config.cjs

# Test locally
curl http://localhost:3000

# Check PM2 status
pm2 logs --nostream

🎨 Design Features

  • Gradient Header: Modern purple-to-blue gradient design
  • Interactive Elements: Hover effects and smooth transitions
  • Loading States: Animated spinner with pulse effect
  • Responsive Design: Mobile-first approach with Tailwind utilities
  • Color Coding: Each content type has distinct color theme for easy scanning

🔮 Future Enhancements

  • Real chat URL parsing (currently using demo data)
  • Advanced content detection (tables, images, references)
  • Multiple export formats (Markdown, HTML, LaTeX)
  • User accounts and saved notes history
  • Collaborative note sharing features
  • Integration with note-taking apps (Notion, Obsidian)

🤝 Contributing

This project demonstrates modern web development with:

  • Edge-first deployment strategy
  • TypeScript for type safety
  • Clean separation of frontend/backend logic
  • Modern CSS framework integration
  • Accessibility considerations in UI design

About

Making notes pdf from your AI models chat (ChatGPT , Gemini etc)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors