{"id":15760455,"url":"https://github.com/d3/d3-dispatch","last_synced_at":"2025-04-12T22:34:30.220Z","repository":{"id":33304539,"uuid":"36949276","full_name":"d3/d3-dispatch","owner":"d3","description":"Register named callbacks and call them with arguments.","archived":false,"fork":false,"pushed_at":"2023-10-06T15:01:59.000Z","size":185,"stargazers_count":75,"open_issues_count":3,"forks_count":26,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-10-29T20:05:33.557Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://d3js.org/d3-dispatch","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d3.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}},"created_at":"2015-06-05T18:43:51.000Z","updated_at":"2024-05-19T03:22:53.000Z","dependencies_parsed_at":"2024-06-18T12:44:37.281Z","dependency_job_id":null,"html_url":"https://github.com/d3/d3-dispatch","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3%2Fd3-dispatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3%2Fd3-dispatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3%2Fd3-dispatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3%2Fd3-dispatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d3","download_url":"https://codeload.github.com/d3/d3-dispatch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248641579,"owners_count":21138231,"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","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":"2024-10-04T10:58:05.854Z","updated_at":"2025-04-12T22:34:30.200Z","avatar_url":"https://github.com/d3.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d3-dispatch\n\n\u003ca href=\"https://d3js.org\"\u003e\u003cimg src=\"https://github.com/d3/d3/raw/main/docs/public/logo.svg\" width=\"256\" height=\"256\"\u003e\u003c/a\u003e\n\nDispatching is a low-level interaction mechanism that allows you to register named callbacks and then call them with arbitrary arguments. A variety of D3 interaction components, such as [d3-drag](https://github.com/d3/d3-drag), use this mechanism to emit events to listeners. Think of this like Node’s [EventEmitter](https://nodejs.org/api/events.html), except every listener has a well-defined name so it’s easy to remove or replace them.\n\n## Resources\n\n- [Documentation](https://d3js.org/d3-dispatch)\n- [Examples](https://observablehq.com/collection/@d3/d3-dispatch)\n- [Releases](https://github.com/d3/d3-dispatch/releases)\n- [Getting help](https://d3js.org/community)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3%2Fd3-dispatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3%2Fd3-dispatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3%2Fd3-dispatch/lists"}