{"id":49121976,"url":"https://github.com/suraj-phanindra/singularity","last_synced_at":"2026-04-21T12:11:51.951Z","repository":{"id":323545654,"uuid":"1092601904","full_name":"suraj-phanindra/singularity","owner":"suraj-phanindra","description":"All your AI context in one place - A cross-platform AI memory layer.  Singularity is a Chromium browser extension that aggregates user context across different AI chat platforms (Claude, ChatGPT, Gemini, Perplexity) and automatically injects relevant context into conversations.","archived":false,"fork":false,"pushed_at":"2025-12-21T00:28:29.000Z","size":167,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-22T22:05:01.657Z","etag":null,"topics":["browser-extension","context-engineering","contextual-memory","large-language-models"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suraj-phanindra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-08T23:42:06.000Z","updated_at":"2025-12-21T00:28:33.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/suraj-phanindra/singularity","commit_stats":null,"previous_names":["suraj-phanindra/singularity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/suraj-phanindra/singularity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suraj-phanindra%2Fsingularity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suraj-phanindra%2Fsingularity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suraj-phanindra%2Fsingularity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suraj-phanindra%2Fsingularity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suraj-phanindra","download_url":"https://codeload.github.com/suraj-phanindra/singularity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suraj-phanindra%2Fsingularity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32091238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T11:25:29.218Z","status":"ssl_error","status_checked_at":"2026-04-21T11:25:28.499Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["browser-extension","context-engineering","contextual-memory","large-language-models"],"created_at":"2026-04-21T12:11:51.133Z","updated_at":"2026-04-21T12:11:51.942Z","avatar_url":"https://github.com/suraj-phanindra.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Singularity\n\n\u003e All your AI context in one place - A cross-platform AI memory layer\n\nSingularity is a Chromium browser extension that aggregates user context across different AI chat platforms (Claude, ChatGPT, Gemini, Perplexity) and automatically injects relevant context into conversations.\n\n## How It Works\n\nWhen you mention preferences or information in one AI chat (e.g., \"I prefer vegetarian food\" in Claude), Singularity:\n1. Extracts and stores this context locally\n2. Automatically injects it into future conversations with other AI agents\n3. Makes every AI interaction more personalized and context-aware\n\n**Example:**\n- Chat with Claude: \"I prefer vegetarian food\"\n- Later, ask ChatGPT: \"Give me protein-rich recipes\"\n- ChatGPT receives context: \"User prefers vegetarian food\"\n- Result: You get vegetarian protein-rich recipes without re-explaining\n\n## Architecture\n\n### Components\n\n1. **Browser Extension** (Chromium Manifest v3)\n   - React-based popup UI\n   - Content scripts for each AI platform\n   - Background service worker\n   - IndexedDB for local storage\n\n2. **Python Backend** (FastAPI + LlamaIndex)\n   - Context extraction using Claude Sonnet 4\n   - Semantic search with Voyage AI embeddings\n   - LlamaIndex workflows for intelligent processing\n\n3. **Privacy-First**\n   - All data stored locally (IndexedDB)\n   - Backend runs on localhost\n   - No external data transmission\n\n## Setup Instructions\n\n### Prerequisites\n\n- Node.js 18+ and npm\n- Python 3.9+\n- Chromium-based browser (Chrome, Edge, Brave)\n- Anthropic API key\n- Voyage AI API key\n\n### 1. Backend Setup\n\n```bash\ncd backend\n\n# Create virtual environment\npython -m venv venv\n\n# Activate virtual environment\n# On Windows:\nvenv\\Scripts\\activate\n# On macOS/Linux:\nsource venv/bin/activate\n\n# Install dependencies\npip install -r requirements.txt\n\n# Configure environment variables\ncp .env.example .env\n# Edit .env and add your API keys:\n#   ANTHROPIC_API_KEY=your_key_here\n#   VOYAGE_API_KEY=your_key_here\n\n# Run the backend\npython run.py\n```\n\nThe backend will start at `http://localhost:8000`\n\n### 2. Extension Setup\n\n```bash\ncd extension\n\n# Install dependencies\nnpm install\n\n# Build the extension\nnpm run build\n```\n\n### 3. Load Extension in Browser\n\n1. Open Chrome/Edge and navigate to `chrome://extensions/`\n2. Enable \"Developer mode\" (toggle in top right)\n3. Click \"Load unpacked\"\n4. Select the `extension/dist` folder\n5. The Singularity extension should now be loaded\n\n### 4. Verify Setup\n\n1. Click the Singularity extension icon\n2. Check that \"Backend Status\" shows \"Connected\"\n3. Visit Claude.ai or ChatGPT\n4. Open browser console (F12) and look for \"[Singularity]\" logs\n\n## Development\n\n### Running in Development Mode\n\n**Backend (with auto-reload):**\n```bash\ncd backend\npython run.py\n```\n\n**Extension (with hot-reload):**\n```bash\ncd extension\nnpm run dev\n```\n\nAfter building, reload the extension in `chrome://extensions/`\n\n### Project Structure\n\n```\nsingularity/\n├── extension/              # Browser extension\n│   ├── src/\n│   │   ├── popup/         # React UI\n│   │   ├── content/       # Platform content scripts\n│   │   ├── background/    # Service worker\n│   │   └── utils/         # Shared utilities\n│   ├── manifest.json\n│   └── package.json\n│\n├── backend/               # Python FastAPI backend\n│   ├── app/\n│   │   ├── agents/       # LlamaIndex workflows\n│   │   ├── api/          # FastAPI routes\n│   │   └── models/       # Data models\n│   ├── main.py\n│   └── requirements.txt\n│\n├── README.md\n├── PRD.md                 # Product requirements\n└── CLAUDE.md             # Claude Code guidance\n```\n\n## Supported Platforms\n\n- ✅ Claude.ai (Anthropic)\n- ✅ ChatGPT (OpenAI)\n- ✅ Gemini (Google)\n- 🚧 Perplexity (Coming soon)\n\n## How to Use\n\n1. **Enable the extension** - Click the popup and ensure it's toggled on\n2. **Browse normally** - Chat with your favorite AI platforms\n3. **Context is automatic** - Singularity extracts and injects context seamlessly\n4. **View your data** - Click the extension icon to see stored facts\n5. **Clear anytime** - Use \"Clear All Data\" to reset\n\n## Privacy \u0026 Security\n\n- **Local-first**: All data stored in your browser's IndexedDB\n- **No cloud sync**: Data never leaves your machine\n- **API calls**: Only to Anthropic and Voyage AI for processing\n- **Transparent**: View all stored facts in the popup\n- **Control**: Clear your data anytime\n\n## Troubleshooting\n\n### Backend won't start\n- Check that API keys are set in `.env`\n- Verify Python virtual environment is activated\n- Check port 8000 is not already in use\n\n### Extension shows \"Backend Offline\"\n- Ensure backend is running (`python run.py`)\n- Check http://localhost:8000/health in browser\n- Verify CORS is properly configured\n\n### Context not being injected\n- Check browser console for errors\n- Ensure extension is enabled\n- Verify content script is loaded (look for \"[Singularity]\" logs)\n- Platform selectors may have changed - see content script files\n\n## Roadmap\n\n- [ ] Add Perplexity support\n- [ ] Implement Neo4j graph database (currently using IndexedDB)\n- [ ] Add context editing/management UI\n- [ ] Export/import context data\n- [ ] Privacy filters and controls\n- [ ] Cross-device sync (optional, encrypted)\n\n## License\n\nMIT\n\n## Contributing\n\nThis is currently a personal project. Issues and PRs welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuraj-phanindra%2Fsingularity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuraj-phanindra%2Fsingularity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuraj-phanindra%2Fsingularity/lists"}