Skip to content

Latest commit

Β 

History

460 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Noosphere Reflect

Noosphere Reflect

Note

100% Agent-Engineered Architecture
This project was developed entirely through AI agent collaboration utilizing the AGENT framework from Noosphere Steward. It stands as a real-world demonstration of autonomous agent capabilities: taking complex software specificationsβ€”from client-side storage boundaries to multi-platform Chrome Extension bridgesβ€”and executing them into production-ready software. Every parser, state transition, and security boundary in this repository was built to demonstrate that structured agent workflows can deliver robust, sovereign software without manual code authoring.

License: AGPL3.0 Version Build Status Node TypeScript

Unified WebChat Workspace Projects & Context Hub In-Chat Document Builder Artifacts
Unified WebChat Canvas Projects & Context Hub Document Builder Artifacts

Preserve Meaning Through Memory β€” A highly secure, client-side AI chat archival and workspace system featuring a companion Chrome Extension for high-fidelity capture across Claude, ChatGPT, Gemini, LeChat, Grok, Llamacoder, Kimi, Google AI Studio, and Brave.


Why This Exists?

The AI conversational ecosystem is highly fragmented. Power users routinely jump between Claude, ChatGPT, Gemini, and local LLMsβ€”leaving valuable ideas, code snippets, and intellectual workflows trapped in isolated vendor silos. Traditional conversation history disappears behind platform updates, export formats change without notice, and cloud synchronization compromises privacy.

Noosphere Reflect was created to restore total data sovereignty to personal AI interactions. Built around a familiar, webchat-native canvas, it provides a unified client-side workspace where retroactive session history, prompt templates, memories, skills, workflows, agents, artifacts, and projects are captured with high fidelity and preserved entirely locally.

Core System Mandates

To fulfill true preservation, Noosphere Reflect adheres to four strict principles:

  • Zero-Telemetry Client Sovereignty: All session files, memories, and prompt artifacts remain inside local browser storage (IndexedDB). No external databases or analytics tracking.
  • Universal Multi-Platform Parsing: Modular DOM scrapers seamlessly ingest structured chats and raw thinking chains from commercial and open-weight AI web clients via a companion Chrome extension.
  • High-Fidelity Document Synthesis: An integrated in-chat Markdown document workspace to extract, organize, and synthesize model turns into clean deliverables.
  • Off-Thread High-Speed Search: Instant full-text indexing and query execution across thousands of conversations without main-thread UI lag.

Features

πŸ’¬ Unified WebChat Canvas

  • Familiar Chat Architecture: Designed after modern AI interfaces for intuitive interaction, complete with retroactive conversation replay and turn-level attachments.
  • Thinking Block Rendering: Native support for hidden or expanded model reasoning chains ("Thinking Blocks"), preserving full execution fidelity from high-reasoning LLMs.
  • Rich HTML & Code Rendering: In-line sandbox supporting full HTML preview, interactive code snippets, and custom console styling locked to 65ch reading widths.
  • Turn Controls & Feedback: Hover actions on every message turn for Copy, Fork, Edit, and Save As (Memory, Prompt, Skill, or Workflow) with instant visual verification cues (βœ“).

πŸ“ Projects & Context Hub

  • Isolated Workspaces: Group related chats, uploaded artifacts, static files, and prompts inside dedicated Project containers (similar to Claude Projects / GPTs).
  • Context Injection: Attach project-level knowledge directly into conversation turns to maintain topic alignment across long-running sessions.

πŸ‘€ Custom Profiles & Instructions

  • Global & Local Preferences: Define custom system instructions, user background context, and persona constraints across chats.
  • Behavioral Profiles: Quickly toggle instruction profiles to tailor model responses for coding, technical writing, or creative brainstorming.

🧩 Modular Scrapers & Granular Export System

  • Updated Extension Scrapers: High-fidelity capture engine targeting major web interfaces with individual styling support:
    • Claude (claude.ai) β€” 🟠 Orange Theme
    • ChatGPT (chatgpt.com) β€” 🟒 Green Theme
    • Gemini (gemini.google.com) β€” πŸ”΅ Blue Theme
    • LeChat (chat.mistral.ai) β€” 🟑 Amber Theme
    • Grok (x.ai) β€” ⚫ Black Theme
    • Llamacoder (llamacoder.together.ai) β€” βšͺ White Theme
    • Google AI Studio (aistudio.google.com) β€” πŸ”΅ Blue Theme
    • Kimi (kimi.moonshot.cn) β€” 🟣 Purple Theme
    • Brave (brave.com) β€” 🦁 Lion Theme
  • Granular Export Utilities: Export full sessions or specific sub-trees to JSON, Markdown, or raw database backups with full structural metadata.

πŸ“ In-Chat Document Builder & Artifacts

  • Sliding Workspace Pane: Dynamic split-screen panel (30vw to 90vw) with real-time Markdown rendering.
  • Direct Segment Insertion: Select text snippets directly from chat responses and append them directly into your draft document.
  • Centralized Artifact Reader: Drawer interface to review, inspect, and download image attachments, code artifacts, and session files.

⚑ Search Engine & Local Persistence

  • Off-Thread MiniSearch: Background Web Worker (SearchWorker) running MiniSearch for instant indexing across chats, memories, prompts, and skills.
  • Archive Hub: Full organization dashboard for saved sessions, project tags, search filters, and database maintenance.

Technology Stack

Core Frontend

  • Framework: React 19 & TypeScript 5.8
  • Build Tool: Vite 6.2
  • Styling: Tailwind CSS v4 (Glassmorphic dark-amber design system)
  • Icons: Lucide React

Storage & Search Engine

  • Persistence Layer: IndexedDB wrapped via idb (StorageService)
  • Full-Text Search: MiniSearch off-loaded to a Web Worker (SearchWorker)
  • Sanitization: DOMPurify enforcing multi-tier XSS protection

Cloud Backup

Feature not fully finished

  • Drive Sync: Google Drive API (optional manual OAuth2 sync.)

Project Structure


Noosphere-Reflect/
β”œβ”€β”€ public/                 # Static assets, logo, & icons
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/        # React UI components
β”‚   β”‚   β”œβ”€β”€ artifacts/     # Artifact list drawer & visual readers
β”‚   β”‚   β”œβ”€β”€ chat/          # WebChat canvas, message turns, thinking blocks, & inputs
β”‚   β”‚   β”œβ”€β”€ document/      # In-chat sliding markdown document workspace
β”‚   β”‚   β”œβ”€β”€ modal/         # Save Modals, Profile Editor, & Project dialogs
β”‚   β”‚   β”œβ”€β”€ profile/       # User profile & system instruction managers
β”‚   β”‚   β”œβ”€β”€ projects/      # Project containers & context hub views
β”‚   β”‚   └── sidebar/       # Collapsible navigation & hub view
β”‚   β”œβ”€β”€ services/          # Core operational layer
β”‚   β”‚   β”œβ”€β”€ StorageService.ts # IndexedDB interface
β”‚   β”‚   └── SearchWorker.ts   # Off-thread MiniSearch worker
β”‚   β”œβ”€β”€ styles/            # Tailwind CSS v4 themes & styles
β”‚   β”œβ”€β”€ types/             # TypeScript type definitions
β”‚   β”œβ”€β”€ App.tsx            # Root application routing & context
β”‚   └── main.tsx           # Web application entry point
β”œβ”€β”€ extension/             # Companion Chrome Extension modular DOM scrapers
β”œβ”€β”€ docs/                  # Architecture & engineering guides
β”œβ”€β”€ vite.config.ts         # Vite build configuration
β”œβ”€β”€ tsconfig.json          # TypeScript project configuration
β”œβ”€β”€ package.json           # Dependencies & scripts
└── README.md


Getting Started

Prerequisites

  • Node.js: 20.x or higher
  • npm: 10.x or higher
  • Browser: Google Chrome or Chromium-based browser (for companion Chrome Extension)

Note: This repository is a 100% client-side web application. It does not require Python, Docker, or external backend server processes.

Quick Start

  1. Clone the repository:
   git clone [https://github.com/acidgreenservers/Noosphere-Reflect.git](https://github.com/acidgreenservers/Noosphere-Reflect.git)
   cd Noosphere-Reflect
  1. Install dependencies:
npm install
  1. Start the development server:
npm run dev
  1. Access the application: Open your browser to http://localhost:3000/Noosphere-Reflect/

Build & Verification Commands

# Compile production bundle to /dist
npm run build

# Execute unit and integration tests
npm test

# Run code style and linting checks
npm run lint

Environment Variables

All settings are managed within the web UI. Optional environment variables can be provided in .env for development integrations:

Variable Description Default
VITE_GOOGLE_CLIENT_ID OAuth 2.0 Client ID for Google Drive cloud sync None
VITE_GOOGLE_CLIENT_SECRET OAuth 2.0 Client Secret for Google Drive cloud sync None

Architecture

Noosphere Reflect implements a Bridge Pattern to decouple browser extension scrapers from storage layers:

  [ AI Web Platforms ] --(Extension Bridge)--> [ Web UI Canvas ] --(StorageService)--> [ IndexedDB ]
                                                       |                                   |
                                                       +----(Markdown/JSON Import)--------+

For full schematics, schema configurations, and worker pipelines, refer to ARCHITECTURE.md.


Security Policy

Security is enforced at the local storage boundary:

  • Data Isolation: 100% of data lives locally in IndexedDB.
  • XSS Prevention: Strict DOMPurify filters run on data ingestion, HTML turns, and document rendering.
  • Input Guardrails: Dedicated modals protect against database state corruption.

Review SECURITY.md for detailed security practices and vulnerability reporting protocols.


License

This project is licensed under the AGPL-3.0 License. See the LICENSE file for complete details.

About

πŸ—ƒοΈ Preserve meaning through memory with Noosphere Reflect. A premium AI chat archival system. Organize, edit, and export conversations into high-fidelity HTML, Markdown, or JSON. Local-first, privacy-focused knowledge management designed for the AI era.

Topics

Resources

Contributing

Security policy

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages