{"id":35731211,"url":"https://github.com/eventdbx/eventdbx-java","last_synced_at":"2026-01-06T11:04:25.485Z","repository":{"id":325918283,"uuid":"1104849987","full_name":"eventdbx/eventdbx-java","owner":"eventdbx","description":"Java client library for EventDBX","archived":false,"fork":false,"pushed_at":"2025-11-27T10:11:02.000Z","size":68,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-27T20:25:17.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.eventdbx.com/client-sdks/java","language":"Java","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/eventdbx.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":"2025-11-26T19:24:31.000Z","updated_at":"2025-11-27T10:09:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/eventdbx/eventdbx-java","commit_stats":null,"previous_names":["eventdbx/eventdbx-java"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/eventdbx/eventdbx-java","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eventdbx%2Feventdbx-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eventdbx%2Feventdbx-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eventdbx%2Feventdbx-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eventdbx%2Feventdbx-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eventdbx","download_url":"https://codeload.github.com/eventdbx/eventdbx-java/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eventdbx%2Feventdbx-java/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28225027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2026-01-06T02:00:07.049Z","response_time":56,"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":[],"created_at":"2026-01-06T11:03:33.869Z","updated_at":"2026-01-06T11:04:25.480Z","avatar_url":"https://github.com/eventdbx.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EventDBX Java Client\n\nJava control-socket client for EventDBX, mirroring the API exposed by [`eventdbxjs`](../eventdbxjs). The control plane is Cap’n Proto over TCP, encrypted with Noise (`Noise_NNpsk0_25519_ChaChaPoly_SHA256`) by default; a future flag will allow requesting plaintext for lab setups when the server is configured to permit `noNoise`.\n\n## Status\n- Library surface, models, and retry/configuration options match the Node client.\n- Noise transport scaffold is in place, but Cap’n Proto bindings still need to be generated and wired. The `proto/control.capnp` schema is vendored here for codegen.\n- The handshake schema now includes a `noNoise` flag in both hello/response; surface it in `EventDbxConfig` once the bindings are wired if you need plaintext for testing against servers that allow it.\n\n## Quick start (API scaffold)\n```java\nimport com.eventdbx.client.*;\n\nEventDbxConfig config = EventDbxConfig.builder()\n        .host(\"127.0.0.1\")\n        .port(6363)\n        .token(System.getenv(\"EVENTDBX_TOKEN\"))\n        .tenantId(System.getenv(\"EVENTDBX_TENANT_ID\"))\n        .verbose(false)\n        // .noNoise(true) // opt into plaintext only when the server is configured to allow it\n        .build();\n\ntry (EventDbxClient client = new EventDbxClient(config)) {\n    client.connect(); // will throw until Cap'n Proto bindings are generated\n\n    client.list(\"person\", PageOptions.builder().take(50).build());\n    client.create(\"person\", \"p-1\", \"person_registered\", CreateAggregateOptions.builder()\n        .publishTarget(\"search-indexer\") // publish targets require the plugin to be installed \u0026 running\n        .build());\n    client.apply(\"person\", \"p-1\", \"person_updated\", AppendOptions.builder()\n        .note(\"email updated\")\n        .publishTarget(\"analytics-engine:event-only\")\n        .build());\n    client.events(\"person\", \"p-1\", PageOptions.builder().build());\n}\n```\n\n## Control protocol\n- Schema: `proto/control.capnp` (same as other EventDBX clients).\n- Transport: Noise with PSK derived from the control token (`SHA-256(token)`), then Cap’n Proto messages framed with a 4-byte length prefix.\n- Required tooling: `capnpc-java` to generate Java bindings from the schema. Once installed, run `capnp compile -ojava:src/main/java proto/control.capnp` and wire the generated types into `NoiseControlClient`.\n\n## Building\n- Maven coordinates are defined in `pom.xml` (noise-java + capnproto runtime included). Install Maven locally to build: `mvn test` / `mvn package`.\n\n## Next steps\n- Generate Cap’n Proto bindings and implement the request/response mapping in `NoiseControlClient`.\n- Port the retry/backoff logic from `eventdbxjs` and add integration tests against a running EventDBX control socket (`ControlIntegrationTest` is scaffolded; enable via `EVENTDBX_INT_TEST=1` and set `EVENTDBX_TOKEN`).\n- Add streaming/subscription support once exposed by the control protocol.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feventdbx%2Feventdbx-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feventdbx%2Feventdbx-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feventdbx%2Feventdbx-java/lists"}