{"id":50973675,"url":"https://github.com/skynet2/diff","last_synced_at":"2026-06-19T05:30:47.189Z","repository":{"id":362364326,"uuid":"1258662864","full_name":"skynet2/diff","owner":"skynet2","description":"Minimal two-panel semantic diff for JSON, YAML \u0026 XML — tree + text (Monaco) views, path-on-click, hide-same, dark theme. Built with Angular.","archived":false,"fork":false,"pushed_at":"2026-06-03T21:17:41.000Z","size":259,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-03T23:03:43.058Z","etag":null,"topics":["angular","diff","diff-viewer","github-pages","json","json-diff","monaco-editor","semantic-diff","typescript","xml","xml-diff","yaml","yaml-diff"],"latest_commit_sha":null,"homepage":"https://skynet2.github.io/diff/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skynet2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2026-06-03T19:50:37.000Z","updated_at":"2026-06-03T21:17:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/skynet2/diff","commit_stats":null,"previous_names":["skynet2/diff"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/skynet2/diff","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skynet2%2Fdiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skynet2%2Fdiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skynet2%2Fdiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skynet2%2Fdiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skynet2","download_url":"https://codeload.github.com/skynet2/diff/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skynet2%2Fdiff/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34519048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["angular","diff","diff-viewer","github-pages","json","json-diff","monaco-editor","semantic-diff","typescript","xml","xml-diff","yaml","yaml-diff"],"created_at":"2026-06-19T05:30:45.586Z","updated_at":"2026-06-19T05:30:47.180Z","avatar_url":"https://github.com/skynet2.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# diff\n\nA minimal, two-panel **semantic diff** editor for **JSON, YAML, and XML**, built with Angular.\n\n**Live:** https://skynet2.github.io/diff/\n\n## What it does\n\n- **Two editors side by side**, each independently switchable between **Text** (Monaco) and **Tree** view.\n- **Per-panel format**: JSON ⇄ YAML ⇄ XML. The two sides can even use different formats — the diff compares the parsed data, not the text.\n- **Semantic diff** in tree mode: differences are computed structurally (key/path based, order-independent for object keys), then rendered as aligned rows with colour highlights — amber = changed, green = added, red = removed.\n- **Navigation**: a difference counter with ▲▼ to jump between changes.\n- **Hide same**: collapse the tree to only the differences.\n- **Format**: pretty-print both documents.\n- **Path on click**: click a node (tree) or place the cursor in the text — the status bar shows its path, e.g. `$.user.tags[1]` or `$.catalog.book[0][\"@_id\"]`.\n- **Dark theme**, lockstep scrolling between panels, and a content-based \"looks like YAML/XML — switch?\" hint.\n\n## How it works\n\nThe diff engine is pure and framework-free: each format is parsed into a plain JavaScript value (JSON natively, YAML via `js-yaml`, XML via `fast-xml-parser`), and a single structural diff/merge compares the two values. The UI is Angular standalone components with signals; Monaco powers text editing; cursor→path resolution uses `jsonc-parser` (JSON), `yaml` (YAML), and `@xml-tools` (XML).\n\n## Development\n\n```bash\nnpm install\nnpm start                   # dev server at http://localhost:4200/\nnpm test -- --watch=false   # unit tests (Vitest)\nnpm run build               # production build -\u003e dist/diff-app/browser\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskynet2%2Fdiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskynet2%2Fdiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskynet2%2Fdiff/lists"}