Add EnsRainbowBeam app with endpoint for submitting labels#2015
Open
djstrong wants to merge 36 commits into
Open
Add EnsRainbowBeam app with endpoint for submitting labels#2015djstrong wants to merge 36 commits into
djstrong wants to merge 36 commits into
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lite PR
Tip: Review docs on the ENSNode PR process
Summary
EnsRainbowBeam(apps/ensrainbowbeam): Hono service withGET /healthandPOST /api/discoverthat labelhashes submitted label literals, classifies them against ENSNode’s Omnigraphlabelsindex (unknown_in_index/healed_in_index/absent_from_index), skips unnormalizable labels, and emits one structured JSON line per submission to stdout (sink/storage deferred).Query.labels(by: LabelsByLabelHashesInput!):LabelHashscalar, stricter validation, deduped batch lookup (cap 100 distinct hashes per request), plus codegen/SDK updates (enssdk,ensrainbow-sdk).EnsRainbowBeamClient(@ensnode/ensrainbow-sdk/ensrainbowbeam-client), Docker/Compose (docker/services/ensrainbowbeam.yml), Terraform module (terraform/modules/ensrainbowbeam), broad CORS for browser use, and a Beam-it UI ondocs/ensrainbow.iocallingbeam.ensrainbow.io.Why
labelslookup in ENSApi keeps Beam’s per-request Omnigraph traffic bounded and typed end-to-end.Testing
pnpm -F ensrainbowbeam test— 27 tests (labels.test.ts,submissions.test.ts: validation, classification, skipped unnormalized labels, Omnigraph timeout/error paths, JSONL logging).Notes for Reviewer (Optional)
LabelHashes (raw + normalized). Omnigraph chunking usesLABELS_BY_LABELHASH_MAX(100).POST /api/discoverbody:{ labels: string[], callerAddress: Address }; response includes per-labelstatus,label, optionallabelHash/normalizedLabel.origin: "*"(same pattern as other public ENSNode HTTP services)—not an env allowlist.submissions.tsinternally; public route is/api/discover.Pre-Review Checklist (Blocking)