{"id":26236038,"url":"https://github.com/amberpixels/pho","last_synced_at":"2026-04-29T07:32:06.189Z","repository":{"id":226546416,"uuid":"765443855","full_name":"amberpixels/pho","owner":"amberpixels","description":"Seamless MongoDB in-text-editor Editor","archived":false,"fork":false,"pushed_at":"2025-07-16T07:51:38.000Z","size":431,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-30T14:35:57.773Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/amberpixels.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":"2024-02-29T23:37:09.000Z","updated_at":"2025-07-16T07:51:42.000Z","dependencies_parsed_at":"2024-03-08T07:21:57.236Z","dependency_job_id":"e0a5bee3-2452-4b21-a133-2bc7daf18355","html_url":"https://github.com/amberpixels/pho","commit_stats":null,"previous_names":["amberpixels/pho"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/amberpixels/pho","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amberpixels%2Fpho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amberpixels%2Fpho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amberpixels%2Fpho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amberpixels%2Fpho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amberpixels","download_url":"https://codeload.github.com/amberpixels/pho/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amberpixels%2Fpho/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416145,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2025-03-13T03:19:26.616Z","updated_at":"2026-04-29T07:32:06.184Z","avatar_url":"https://github.com/amberpixels.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# *pho* 🍜 — inline database editor.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.png\" alt=\"Logo\" width=\"300\"/\u003e\u003cbr\u003e\n\u003c/p\u003e\n\n\n\u003e Edit MongoDB documents right in your favorite editor\n\n⚠️ **UNSTABLE**: This project is under active development\n\nPho bridges the gap between MongoDB and your preferred text editor. Query documents, edit them with your familiar tools and hotkeys, then apply changes back to your database.\n\n## Why Pho?\n\n- **Editor Freedom**: Use Neovim, VS Code, Sublime, Zed, or any editor of your choice\n- **Familiar Workflow**: Leverage your existing macros, snippets, and muscle memory\n- **Safe Editing**: Review changes before applying them to your database\n- **Batch Operations**: Edit multiple documents simultaneously with powerful text manipulation\n\n## Quick Start\n\n```bash\n# Install\ngo install github.com/amberpixels/pho/cmd/pho@latest\n\n# Edit documents\npho --db myapp --collection users --query '{\"active\": true}' --edit nvim\n\n# Review your changes\npho review\n\n# Apply changes to database\npho apply\n```\n\n## How It Works\n\n1. **Query** → Fetch documents matching your criteria\n2. **Edit** → Documents open in your editor as JSON/JSONL\n3. **Review** → See exactly what will change\n4. **Apply** → Push changes back to MongoDB\n\n```bash\n# Query active users and edit in Neovim\npho --db shop --collection users --query '{\"status\": \"active\"}' --edit nvim\n\n# Bulk update with your editor's power\n# - Use find/replace across all documents\n# - Apply consistent formatting\n# - Leverage your custom snippets\n```\n\n## Key Features\n\n- **Smart Change Detection**: Only modified documents are updated\n- **Multiple Formats**: Work with canonical, relaxed, or shell-compatible JSON\n- **Session Management**: Resume editing sessions across multiple commands\n- **Environment Support**: Configure connection via environment variables\n- **Verbose Logging**: Track operations with `--verbose` flag\n\n## Installation\n\n```bash\n# Via Go\ngo install github.com/amberpixels/pho/cmd/pho@latest\n\n# Build from source\ngit clone https://github.com/amberpixels/pho\ncd pho\nmake install\n```\n\n## Examples\n\n```bash\n# Quick data fix\npho --uri mongodb://localhost:27017 --db shop --collection products --edit code\n\n# Complex query with projection\npho --db analytics --collection events \\\n    --query '{\"timestamp\": {\"$gte\": \"2024-01-01\"}}' \\\n    --projection '{\"_id\": 1, \"data\": 1}' \\\n    --edit nvim\n\n# Environment-based connection\nexport MONGODB_URI=\"mongodb://localhost:27017\"\nexport MONGODB_DB=\"myapp\"\npho --collection sessions --query '{}' --limit 50\n```\n\n## Coming Soon\n\n- Support for PostgreSQL, MySQL, and other databases\n- Advanced query builders\n- Change previews with syntax highlighting\n\n---\n\n**Pho** • Edit databases like text files • [Report Issues](https://github.com/amberpixels/pho/issues)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famberpixels%2Fpho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famberpixels%2Fpho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famberpixels%2Fpho/lists"}