Skip to content

memcontext/lifecontext

Repository files navigation

🧠 LifeContext

img

GitHub stars GitHub issues GitHub contributors GitHub license GitHub last commit 微信群 飞书群 Discord Follow on X


Navigation | Product Comparison | Core Features | Scenario Introduction | Quick Start | Development Plan | Community


中文 / English

🌍 What is Life Context

Open Source · Proactive · Free | Browser-based Digital Twin, the Best Alternative to ChatGPT Pulse

Shaped by your life. Empower yourself. Interact with the world.

  • Born from your unique life context, shaping a digital twin that truly understands you.
  • Delivers life-scale long-term retrieval, low-cost multimodal storage, precise context alignment, and efficient real-time compression as the core of Context Memory.
  • Reimagines how you connect, opening endless possibilities for interaction, connection, and creation with the world.

🎬 Product Demo

lifecontext.mp4

📊 Product Comparison

Core differences between LifeContext and similar products:

Feature LifeContext MineContext ChatGPT Pulse DayFlow Description
Deep Browser Integration Native browser extension that deeply understands current page content
Smart Insights Proactively generates supplementary insights based on browsing activities, not just summaries, helping discover hidden information and trends
Activity Summary Automatically aggregates activities and generates activity summaries by time
Daily Picks Includes activity summaries, todo reminders, news recommendations, knowledge cards, and more
Prompt Enhancement Automatically optimizes prompts on AI conversation pages like ChatGPT, Claude, Gemini
Floating Ball Chat Assistant Quick access to AI chat functionality via floating ball on any webpage
Local Data Storage All data stored locally on device, not uploaded to servers
Fully Open Source Code fully open, freely viewable, modifiable, and extensible

LifeContext's Core Advantages:

  • 🎯 Fully Open Source: Transparent code, freely customizable and extensible
  • 🔒 Privacy First: All data stored locally, never uploaded to servers
  • 🌐 Browser Native: Deep browser integration, no additional apps needed
  • 🆓 Completely Free: No subscription fees, no usage limits
  • 🚀 Continuous Iteration: Community-driven, rapid feature updates

🎯 Core Features

Proactive Push

  • Smart Insights
    Based on your browsing history and activity data, proactively push personalized smart insight cards through browser notifications or homepage display, helping you discover important information.

  • Todo Items
    Analyze your browsing content and activity patterns to proactively push todo suggestions. You can view, edit, complete, or delete these tasks on the homepage.

  • Daily Picks
    Proactively push personalized information feed cards daily, including activity summaries, todo reminders, news recommendations, knowledge cards, and more, displayed in the left panel of the homepage to help you quickly understand important information.

Intelligent Analysis

  • Smart Content Analysis
    Use large language models to automatically analyze web page content, extract key information, topic classification, summaries, and other metadata, providing the foundation for subsequent intelligent recommendations and generation.

  • Timeline Management
    View all browsing records on the timeline page of the homepage. The system automatically summarizes and categorizes your activities, supporting time filtering, content search, record deletion, and other operations to help you review and manage your digital footprint.

Interactive Tools

  • Floating Chat Assistant
    Click the floating orb on any webpage to open a chat window. The AI understands the current page content and combines your browsing history to answer questions, summarize information, or provide suggestions.

  • Prompt Optimization
    Automatically inject optimization buttons in mainstream AI websites like ChatGPT, Claude, Gemini, etc., optimizing your prompts based on current page content to help AI better understand your needs.

Privacy & Security

  • Privacy Protection
    Configure website domains you don't want recorded in the extension settings, supporting one-click add/remove. Protect your privacy without affecting other features. You can also close the extension or delete specific records at any time.

  • Privacy Policy
    All your data is stored locally on your device. We do not collect, transmit, or store your data on our servers. Learn more about how we handle your data in our Privacy Policy.

Coming Soon

  • Web Multimodal Content Analysis
    Automatically identify and analyze multimedia content such as images and videos on web pages, extract key information and generate summaries to enrich your context information base.

  • Office Application Integration
    Support integration with common office applications (such as documents, spreadsheets, emails, etc.), automatically sync and analyze your office data to help AI better understand your work context.

🌄 Scenario Introduction

1️⃣ Insight Smart Insights

On the Insight page of the homepage, the left side displays your browsing activity timeline, while the right side generates smart insights based on these activities in real-time. The system automatically analyzes your browsing patterns, content preferences, and focus areas to provide personalized insight suggestions, helping you discover hidden information and trends.

Insight Feature Demo

2️⃣ Daily Picks

The system automatically generates personalized curated content daily based on your browsing history and activity patterns. Including activity summaries, important information reminders, knowledge cards, etc., helping you quickly understand the key information of the day. The default generation time is 8:30 the next day, which you can modify in the settings.

Daily Picks Feature Demo

3️⃣ Floating Ball Assistant

On any webpage, click the floating ball in the bottom right corner to quickly access LifeContext features. The floating ball provides a convenient entry point, allowing you to interact with the AI assistant anytime without leaving the current page.

Floating Ball Feature Demo

4️⃣ Smart Chat

Click the floating ball to open the chat window and have natural conversations with AI. The AI can understand the content of the page you're browsing and combine your browsing history, activity records, and contextual information to provide accurate answers, summaries, or suggestions.

Chat Feature Demo

5️⃣ Privacy Protection

In the extension settings, you can flexibly configure privacy protection options. Support adding URL blacklists to block websites you don't want recorded with one click; you can also view, search, or delete saved browsing records at any time, giving you complete control over your data privacy.

Privacy Protection Feature Demo

🚀 Quick Start

📋 Prerequisites

1️⃣ Python Environment

2️⃣ Node.js Environment

  • Install Node.js (version 18 or higher recommended)
  • Ensure both node and npm commands are available

🛠️ Backend & Frontend Setup

1️⃣ Configure the LLM and Vector Services

📦 Navigate to the backend directory and copy the .env.example file as .env:

cd backend
cp .env.example .env

✅ Fill in your API in the newly created .env file. Example configuration:

# LLM API 
LLM_API_KEY = "sk-1234abcd5678efgh9012ijkl"
LLM_BASE_URL = "https://api.openai.com/v1"
LLM_MODEL = "gpt-4o-mini"

# Embedding API 
EMBEDDING_API_KEY = "sk-embed-9876mnop4321qrst"
EMBEDDING_BASE_URL = "https://api.openai.com/v1"
EMBEDDING_MODEL = "text-embedding-3-small"

2️⃣ Create the Conda Environment (first run only)

📦 Inside the backend directory, create the environment from environment.yml:

cd backend
conda env create -f environment.yml

3️⃣ Start All Services

Windows

Run the scripts inside your activated Conda environment:

deploy.bat

To stop all services:

stop.bat
Linux / macOS

Grant execute permissions on first use:

chmod +x deploy.sh stop.sh

Start all services:

./deploy.sh

Stop all services:

./stop.sh

🎉 Open your browser and visit http://localhost:3000/.

Having issues? Check out deploy_guide.md for a step-by-step walkthrough.

🧩 Browser Extension Configuration

1️⃣ Import the Browser Extension

📦 Follow these steps:

  1. Open your browser (recommended: Chrome or Edge).
  2. Go to the Manage Extensions page and enable Developer Mode (top-right corner).
  3. Click Load unpacked extension and select the folder ./Extension/extension in the project directory.
  4. Once loaded, the extension icon will appear in your browser toolbar.
  5. After enabling the extension, you may disable Developer Mode for better security.

🎉 Open the browser and visit http://localhost:3000/

If you still run into issues, refer to deploy_guide.md.

🤖 Development Plan

LifeContext’s evolution roadmap unfolds across three dimensions:

  1. Breadth of context: We begin with the browser and will gradually incorporate your PC, mobile devices, application data, and eventually smart hardware to build a seamless, end-to-end life context.
  2. Depth of AI capabilities: We will deliver life-scale long-horizon retrieval, low-cost multi-modal context storage, precise context alignment, and efficient real-time compression across the Context Memory stack.
  3. Height of connection: Ultimately, we aim to empower a digital twin that serves as your trusted agent, interacting with the world—under your authorization—to unlock boundless opportunities for engagement, connection, and creation.

🧰 Context Source Expansion Roadmap

To enable AI to understand users better, we will integrate the following context sources in phases, based on priority.

  • P0: Browser web data
  • P1: Documents
  • P2: Common application MCP and PC screenshots
  • P3: Audio/Video files and smart hardware
  • P4: DeepResearch and RSS
  • P5: Mobile phone screenshots
  • P6: Community knowledge base
Priority Integration Method Content Progress
P0 Browser Extension AI Chat
P0 Browser Extension General Webpages
P0 Browser Extension Video Webpages
P1 File Upload Unstructured Documents
P1 File Upload Structured Documents
P1 File Upload Images
P1 User Input Notes
P2 App MCP/API App Information
P2 PC Screenshot User PC Information
P3 File Upload Video/Audio
P3 Browser Extension Meeting Records
P3 Smart Devices (Watch) Health Data
P3 Smart Devices (Audio) Audio
P3 Smart Devices (Video) Video
P4 RSS Subscribed Web Updates
P4 Deep Research High-Quality Research Analysis
P4 File Upload Code
P5 Mobile Screenshot User Mobile Information
P6 Community/Imported Knowledge Base Official/User-Selected Knowledge Base
P6 Brain-Computer Interface (BCI) Neural Encoding

🧰 Agent Capability Expansion Roadmap

Based on the constantly enriched context, we will gradually unlock the core capabilities of the Agent.

  • P0: Proactive information pushing
  • P1: Document generation
  • P2: Common application operations and task generation
  • P3: Multi-modal generation and editing
  • P4: Segmented scenario capabilities
Priority Feature Progress
P0 Proactive Daily Report Push
P0 Proactive Insights Push
P0 Proactive To-do List Push
P0 Digital Avatar Interaction
P1 Knowledge Base
P1 Internet Search
P1 Multi-modal Proactive Push
P1 Document Generation (PDF, EXCEL, PPT, WORD)
P1 Mind Map
P1 Notes
P2 Application Operations (MCP)
P2 Timed/Conditional Triggered Tasks
P2 Webpage Generation (html)
P3 Image Generation, Editing
P3 Audio Generation, Editing
P3 Video Generation, Editing
P4 Segmented Scenario Capabilities

Community

Feishu Community WeChat Community

Star History

Star History Chart