Skip to content

RMinte/Project_Cortex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ReMind - AI-Powered Screen Context Assistant

๐Ÿš€ Overview

ReMind is an intelligent assistant that captures screen context and helps you manage tasks, generate summaries, and interact with AI based on what you're working on. It features a modern SvelteKit frontend with a FastAPI backend.

โœจ Features

  • Screen Context Recording: Capture and process screen content
  • AI Chat Interface: Interactive chat with context awareness
  • Task Management: Automatic task extraction and execution
  • Smart Summaries: Generate summaries from your work context
  • Prompt Suggestions: Context-aware prompt recommendations
  • User Profiles: Personalized onboarding and settings
  • Dark Mode: Full dark mode support

๐Ÿ›  Tech Stack

  • Frontend: SvelteKit, TypeScript, Tailwind CSS
  • Backend: FastAPI (Python), Uvicorn
  • AI Integration: Support for OpenAI, Anthropic, Dify workflows
  • Task Automation: Feishu/Lark integration ready

๐Ÿ“ฆ Installation

Prerequisites

  • Node.js 18+ and npm
  • Python 3.9+
  • Git

Frontend Setup

# Install dependencies
npm install

# Run development server
npm run dev

Frontend will be available at http://localhost:5173

Backend Setup

# Navigate to backend directory
cd backend

# Install Python dependencies
pip install -r requirements.txt

# Run the server
python main.py

Backend API will be available at http://localhost:8000

๐Ÿš€ Quick Start

Using the Start Script

# Make the script executable
chmod +x start.sh

# Run both frontend and backend
./start.sh

Manual Start

  1. Start the backend server:

    cd backend && python main.py
  2. In a new terminal, start the frontend:

    npm run dev
  3. Open http://localhost:5173 in your browser

๐Ÿ”ง Configuration

Environment Variables

Create a .env file in the backend directory:

# Optional: Dify API Integration
USE_DIFY_API=false
DIFY_API_KEY=your_api_key
DIFY_USER_ID=default-user

Development Mode

The app includes a development mode that clears localStorage on refresh. Toggle this in src/routes/+page.svelte:

const DEV_MODE = false; // Set to false for production

๐Ÿ“ Project Structure

Project_Cortex/
โ”œโ”€โ”€ src/                    # Frontend source code
โ”‚   โ”œโ”€โ”€ lib/               
โ”‚   โ”‚   โ”œโ”€โ”€ components/    # Svelte components
โ”‚   โ”‚   โ”œโ”€โ”€ stores/        # Svelte stores
โ”‚   โ”‚   โ””โ”€โ”€ utils/         # Utility functions
โ”‚   โ””โ”€โ”€ routes/            # SvelteKit routes
โ”œโ”€โ”€ backend/               # Backend API server
โ”‚   โ”œโ”€โ”€ main.py           # FastAPI application
โ”‚   โ”œโ”€โ”€ dify_*.py         # Dify integration modules
โ”‚   โ””โ”€โ”€ requirements.txt  # Python dependencies
โ”œโ”€โ”€ static/                # Static assets
โ””โ”€โ”€ package.json          # Node.js dependencies

๐ŸŽฏ Key Components

Frontend Components

  • ChatPanel: Main chat interface
  • TaskPanel: Task management and execution
  • SummaryPanel: Context summaries
  • OnboardingModal: User onboarding flow
  • ProfileSettings: User profile management
  • RecordingIndicator: Screen recording status

Backend Endpoints

  • /api/record/* - Screen recording control
  • /api/context/* - Context processing
  • /api/chat - AI chat interaction
  • /api/tasks/* - Task management
  • /api/summary/* - Summary generation
  • /api/prompts/* - Prompt suggestions

๐Ÿ”Œ Integration Points

AI Services

  • OpenAI GPT models
  • Anthropic Claude
  • Google Gemini
  • Custom LLMs via Dify

Task Automation

  • Feishu/Lark
  • Email services
  • Calendar applications
  • Custom webhooks

๐Ÿงช Development

Build for Production

# Build frontend
npm run build

# Preview production build
npm run preview

Type Checking

npm run check

Code Quality

# Run type checking in watch mode
npm run check:watch

๐Ÿ“ License

MIT

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

๐Ÿ› Known Issues

  • Mock data is used by default (configure Dify for real integrations)
  • Screen recording requires platform-specific implementation

๐Ÿ“ฎ Support

For issues and questions, please use the GitHub issues tracker.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors