{"id":21754633,"url":"https://github.com/aegisjsproject/callback-registry","last_synced_at":"2026-03-15T22:59:12.044Z","repository":{"id":263218371,"uuid":"889679684","full_name":"AegisJSProject/callback-registry","owner":"AegisJSProject","description":"A callback registry for AegisJSProject","archived":false,"fork":false,"pushed_at":"2025-04-10T17:44:31.000Z","size":488,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T18:58:02.775Z","etag":null,"topics":["aegis","callback-registry","declarative-dom","event-binding"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/@aegisjsproject/callback-registry","language":"JavaScript","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/AegisJSProject.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"shgysk8zer0","liberapay":"shgysk8zer0"}},"created_at":"2024-11-16T23:51:21.000Z","updated_at":"2025-04-10T17:44:34.000Z","dependencies_parsed_at":"2024-12-05T21:20:25.828Z","dependency_job_id":"54660142-c9f2-448e-8cd3-0f52a5d9ee8b","html_url":"https://github.com/AegisJSProject/callback-registry","commit_stats":null,"previous_names":["aegisjsproject/callback-registry"],"tags_count":3,"template":false,"template_full_name":"shgysk8zer0/npm-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AegisJSProject%2Fcallback-registry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AegisJSProject%2Fcallback-registry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AegisJSProject%2Fcallback-registry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AegisJSProject%2Fcallback-registry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AegisJSProject","download_url":"https://codeload.github.com/AegisJSProject/callback-registry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248280955,"owners_count":21077417,"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":["aegis","callback-registry","declarative-dom","event-binding"],"created_at":"2024-11-26T09:14:33.242Z","updated_at":"2026-03-15T22:59:12.010Z","avatar_url":"https://github.com/AegisJSProject.png","language":"JavaScript","funding_links":["https://github.com/sponsors/shgysk8zer0","https://liberapay.com/shgysk8zer0","https://liberapay.com/shgysk8zer0/donate"],"categories":[],"sub_categories":[],"readme":"# `@aegisjsproject/callback-registry`\n\nA template repo for npm packages\n\n[![CodeQL](https://github.com/AegisJSProject/callback-registry/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/AegisJSProject/callback-registry/actions/workflows/codeql-analysis.yml)\n![Node CI](https://github.com/AegisJSProject/callback-registry/workflows/Node%20CI/badge.svg)\n![Lint Code Base](https://github.com/AegisJSProject/callback-registry/workflows/Lint%20Code%20Base/badge.svg)\n\n[![GitHub license](https://img.shields.io/github/license/AegisJSProject/callback-registry.svg)](https://github.com/AegisJSProject/callback-registry/blob/master/LICENSE)\n[![GitHub last commit](https://img.shields.io/github/last-commit/AegisJSProject/callback-registry.svg)](https://github.com/AegisJSProject/callback-registry/commits/master)\n[![GitHub release](https://img.shields.io/github/release/AegisJSProject/callback-registry?logo=github)](https://github.com/AegisJSProject/callback-registry/releases)\n[![GitHub Sponsors](https://img.shields.io/github/sponsors/shgysk8zer0?logo=github)](https://github.com/sponsors/shgysk8zer0)\n\n[![npm](https://img.shields.io/npm/v/@aegisjsproject/callback-registry)](https://www.npmjs.com/package/@aegisjsproject/callback-registry)\n![node-current](https://img.shields.io/node/v/@aegisjsproject/callback-registry)\n![npm bundle size gzipped](https://img.shields.io/bundlephobia/minzip/@aegisjsproject/callback-registry)\n[![npm](https://img.shields.io/npm/dw/@aegisjsproject/callback-registry?logo=npm)](https://www.npmjs.com/package/@aegisjsproject/callback-registry)\n\n[![GitHub followers](https://img.shields.io/github/followers/AegisJSProject.svg?style=social)](https://github.com/shgysk8zer0)\n![GitHub forks](https://img.shields.io/github/forks/AegisJSProject/callback-registry.svg?style=social)\n![GitHub stars](https://img.shields.io/github/stars/AegisJSProject/callback-registry.svg?style=social)\n[![Twitter Follow](https://img.shields.io/twitter/follow/shgysk8zer0.svg?style=social)](https://twitter.com/shgysk8zer0)\n\n[![Donate using Liberapay](https://img.shields.io/liberapay/receives/shgysk8zer0.svg?logo=liberapay)](https://liberapay.com/shgysk8zer0/donate \"Donate using Liberapay\")\n- - -\n\n- [Code of Conduct](./.github/CODE_OF_CONDUCT.md)\n- [Contributing](./.github/CONTRIBUTING.md)\n\u003c!-- - [Security Policy](./.github/SECURITY.md) --\u003e\n\nA lightweight, modular JavaScript library for managing DOM events and callbacks. The library is designed for flexibility and efficiency, with a focus on leveraging modern JavaScript standards.\n\n## Features\n\n- **Callback Management**: Centralized registration and retrieval of reusable callback functions.\n- **Event Handling**: Simplified DOM event binding with support for custom attributes (e.g., `data-aegis-event-on-*`).\n- **Custom Events**: Easily define and trigger application-specific events.\n- **Declarative Attributes**: Leverages custom data attributes for declarative event configuration.\n\n## Installation\n\n```bash\nnpm install @aegisjsproject/callback-registry\n```\n\n## Example usage\n```js\nimport { createCallback, observeEvents, EVENTS } from '@aegisjsproject/callback-registry';\n\nobserveEvents();\n\nconst el = document.querySelector('.container');\n\nel.setHTMLUnsafe(`\u003cbutton ${EVENTS.onClick}=\"${createCallback(({ target }) =\u003e alert(target.innerHTML))}\"\u003eHello, World!\u003c/button\u003e`);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faegisjsproject%2Fcallback-registry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faegisjsproject%2Fcallback-registry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faegisjsproject%2Fcallback-registry/lists"}