{"id":50798084,"url":"https://github.com/iannil/code-ledge-x","last_synced_at":"2026-06-12T16:04:11.763Z","repository":{"id":334519810,"uuid":"1141648858","full_name":"iannil/code-ledge-x","owner":"iannil","description":"CODE-LEDGE-X is a universal distributed business reconciliation engine that supports automatic reconciliation and difference reporting across multiple data sources (CSV, PostgreSQL, etc.).","archived":false,"fork":false,"pushed_at":"2026-01-25T10:06:13.000Z","size":8737,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-25T23:08:13.310Z","etag":null,"topics":["analyzer","code","edge"],"latest_commit_sha":null,"homepage":"https://zhurongshuo.com/products/code-ledge-x/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iannil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-01-25T06:54:40.000Z","updated_at":"2026-01-25T11:22:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/iannil/code-ledge-x","commit_stats":null,"previous_names":["iannil/code-ledge-x"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/iannil/code-ledge-x","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iannil%2Fcode-ledge-x","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iannil%2Fcode-ledge-x/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iannil%2Fcode-ledge-x/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iannil%2Fcode-ledge-x/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iannil","download_url":"https://codeload.github.com/iannil/code-ledge-x/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iannil%2Fcode-ledge-x/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34251783,"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-12T02:00:06.859Z","response_time":109,"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":["analyzer","code","edge"],"created_at":"2026-06-12T16:04:10.347Z","updated_at":"2026-06-12T16:04:11.755Z","avatar_url":"https://github.com/iannil.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CODE-LEDGE-X\n\n\u003e Data Design Over Code Logic — Eliminating code complexity through strategic data redundancy\n\n[English](README.md) | [中文](README.zh-CN.md)\n\n---\n\n## Overview\n\nCODE-LEDGE-X is a project that combines architectural philosophy with open-source practice, consisting of two parts:\n\n1. \"[Data as the Boundary: Refactoring Software Complexity](https://zhurongshuo.com/practices/season-4/data-as-the-boundary/)\" — A practical book on system architecture\n2. CODE-LEDGE-X — A universal distributed business reconciliation engine based on the book's theory\n\n---\n\n## Quick Start with CODE-LEDGE-X\n\nCODE-LEDGE-X is a universal distributed business reconciliation engine that supports automatic reconciliation and difference reporting across multiple data sources (CSV, PostgreSQL, etc.).\n\n### Installation\n\n```bash\n# Clone the repository\ngit clone https://github.com/iannil/code-ledge-x.git\ncd code-ledge-x\n\n# Build\nmake build\n\n# Or build directly with Go\ngo build -o bin/ledgex ./cmd/ledgex\n```\n\n### Usage\n\n```bash\n# Run reconciliation with example config\n./bin/ledgex run --config ./configs/example.yaml\n\n# Check version\n./bin/ledgex version\n\n# Initialize config file\n./bin/ledgex init\n```\n\n### Configuration Example\n\n```yaml\njob: \"order_vs_payment\"\noutput: \"./report.html\"\n\nsource_left:\n  type: \"csv\"\n  path: \"./testdata/left.csv\"\n  mapping:\n    biz_id: \"order_id\"\n    amount: \"total_fee\"\n    state: \"status\"\n\nsource_right:\n  type: \"csv\"\n  path: \"./testdata/right.csv\"\n  mapping:\n    biz_id: \"payment_id\"\n    amount: \"amount\"\n    state: \"status\"\n\nrules:\n  - type: \"existence\"\n  - type: \"amount_match\"\n  - type: \"state_match\"\n```\n\n### Reconciliation Results\n\nAfter running, an HTML difference report will be generated containing:\n\n- Record statistics (left/right record counts, matches, differences)\n- Difference details (left-only, right-only, amount mismatch, state mismatch)\n\n### Development\n\n```bash\n# Run tests\nmake test\n\n# Format code\nmake fmt\n```\n\n---\n\n## Core Philosophy\n\n\u003e \"The storage cost of adding one more field is far less than the cognitive cost of maintaining if/else logic.\"\n\nThe Concept Decompression Theory proposed in this book:\n\n| Level | Meaning | Example |\n|-------|---------|---------|\n| Micro | Field Decomposition | `order_type` → `fulfillment_type` + `promotion_type` + `payment_terms` |\n| Meso | Table Structure Separation | Business tables vs Audit tables (snapshot pattern) |\n| Macro | System Boundary | Dual ledger: Intent (inbound events) vs Result (business state) |\n\n---\n\n## Navigation\n\n### LedgeX Open Source Project\n\n- [Proposal](docs/ledgex/proposal.md) — Product positioning and design philosophy\n- [Architecture](docs/ledgex/architecture.md) — Four-layer architecture details\n- [Tech Stack](docs/ledgex/tech-stack.md) — Technology choices and rationale\n- [Implementation Phases](docs/ledgex/phases.md) — Three-phase roadmap\n- [API Documentation](docs/ledgex/api.md) — Core interface definitions\n\n### About Development\n\n- [Development Guide](docs/development.md) — Contributor guidelines\n- [Progress Tracking](docs/progress/status.md) — Development status and todos\n- [Roadmap](docs/progress/roadmap.md) — Project milestones\n\n---\n\n## Target Audience\n\n- Senior Software Engineers / Technical Experts\n- System Architects\n- Technical Managers / CTOs\n\n---\n\n## License\n\nThis project is licensed under [Apache 2.0](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiannil%2Fcode-ledge-x","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiannil%2Fcode-ledge-x","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiannil%2Fcode-ledge-x/lists"}