{"id":48801157,"url":"https://github.com/zourzouvillys/laredo","last_synced_at":"2026-04-14T03:00:58.242Z","repository":{"id":351194231,"uuid":"1187586766","full_name":"zourzouvillys/laredo","owner":"zourzouvillys","description":"Real-time data sync from PostgreSQL to in-memory targets. Baseline snapshots, change streaming, pluggable targets, replication fan-out.","archived":false,"fork":false,"pushed_at":"2026-04-14T01:22:59.000Z","size":1674,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-14T02:27:21.876Z","etag":null,"topics":["cdc","change-data-capture","golang","grpc","in-memory","logical-replication","postgresql","real-time"],"latest_commit_sha":null,"homepage":"https://zrz.io/laredo/","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/zourzouvillys.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-03-20T22:40:13.000Z","updated_at":"2026-04-14T01:22:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zourzouvillys/laredo","commit_stats":null,"previous_names":["zourzouvillys/laredo"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/zourzouvillys/laredo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zourzouvillys%2Flaredo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zourzouvillys%2Flaredo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zourzouvillys%2Flaredo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zourzouvillys%2Flaredo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zourzouvillys","download_url":"https://codeload.github.com/zourzouvillys/laredo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zourzouvillys%2Flaredo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31779947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: 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":["cdc","change-data-capture","golang","grpc","in-memory","logical-replication","postgresql","real-time"],"created_at":"2026-04-14T03:00:56.936Z","updated_at":"2026-04-14T03:00:58.233Z","avatar_url":"https://github.com/zourzouvillys.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laredo\n\nA Go library and service for capturing baseline snapshots from data sources and streaming real-time changes through pluggable targets.\n\n## Architecture\n\nLaredo is organized in three layers:\n\n1. **Core Library** — engine, interfaces, types, pipeline orchestration. Zero opinions on config format, transport, or logging.\n2. **Optional Modules** — gRPC OAM/Query service, HOCON config loader, metrics bridges, source/target/snapshot implementations.\n3. **Pre-built Service (`laredo-server`)** — a ready-to-run binary with HOCON config, gRPC, metrics, structured logging, and signal handling. Ships with the `laredo` CLI tool.\n\n### Sources\n\n- **PostgreSQL** — logical replication (ephemeral or stateful mode)\n- **S3 + Kinesis** — S3 baseline snapshots with Kinesis change streams\n\n### Targets\n\n- **HTTP Sync** — forward changes as batched HTTP requests\n- **Compiled In-Memory** — domain objects via pluggable compiler functions\n- **Indexed In-Memory** — raw rows with configurable secondary indexes\n- **Replication Fan-Out** — multiplex one source to N gRPC clients (snapshot + journal + live stream)\n\n### Pipeline\n\nEach pipeline binds a source table to a target, with optional filters and transforms. The engine manages baseline loading, change streaming, ACK coordination, backpressure, error isolation, TTL, and snapshots.\n\n## Building\n\n```bash\n# Build all packages\nmake build\n\n# Run tests\nmake test\n\n# Lint\nmake lint\n\n# Build Docker image\nmake docker\n```\n\n## Project Layout\n\n```\nlaredo.go, types.go, source.go, ...   Core interfaces (root package)\ninternal/engine/                       Engine implementation\nsource/{pg,kinesis,testsource}/        Source implementations\ntarget/{httpsync,memory,fanout}/       Target implementations\nsnapshot/{local,s3,jsonl}/             Snapshot store/serializer implementations\nfilter/, transform/                    Built-in pipeline filters and transforms\nservice/                               gRPC services (OAM, Query, Replication)\nconfig/                                HOCON config loading\nmetrics/{prometheus,otel}/             Metrics bridges\nclient/fanout/                         Go fan-out client library\ncmd/laredo-server/                     Pre-built service binary\ncmd/laredo/                            CLI tool\n```\n\n## Library Usage\n\n```go\nengine, errs := laredo.NewEngine(\n    laredo.WithSource(\"pg_main\", pgSource),\n    laredo.WithPipeline(\"pg_main\", laredo.Table(\"public\", \"config_document\"), memTarget),\n    laredo.WithObserver(myObserver),\n)\nif len(errs) \u003e 0 {\n    log.Fatalf(\"config errors: %v\", errs)\n}\nengine.Start(ctx)\nengine.AwaitReady(30 * time.Second)\ndefer engine.Stop(ctx)\n```\n\nSee [docs/spec.md](docs/spec.md) for the full design specification.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzourzouvillys%2Flaredo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzourzouvillys%2Flaredo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzourzouvillys%2Flaredo/lists"}