{"id":51377222,"url":"https://github.com/hebus/ngx-call","last_synced_at":"2026-07-05T21:00:34.128Z","repository":{"id":366129815,"uuid":"1275147598","full_name":"hebus/ngx-call","owner":"hebus","description":"Imperative, type-safe, promise-based dialogs \u0026 overlays for Angular — the Angular counterpart of react-call's createCallable.","archived":false,"fork":false,"pushed_at":"2026-06-20T11:14:16.000Z","size":170,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-20T12:28:11.535Z","etag":null,"topics":["angular","angular-library","createcallable","dialog","imperative","modal","ngx","overlay","promise","react-call","signals","typescript"],"latest_commit_sha":null,"homepage":"https://hebus.github.io/ngx-call/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hebus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-20T10:07:09.000Z","updated_at":"2026-06-20T11:14:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hebus/ngx-call","commit_stats":null,"previous_names":["hebus/ngx-call"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hebus/ngx-call","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hebus%2Fngx-call","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hebus%2Fngx-call/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hebus%2Fngx-call/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hebus%2Fngx-call/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hebus","download_url":"https://codeload.github.com/hebus/ngx-call/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hebus%2Fngx-call/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35168795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-05T02:00:06.290Z","response_time":100,"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":["angular","angular-library","createcallable","dialog","imperative","modal","ngx","overlay","promise","react-call","signals","typescript"],"created_at":"2026-07-03T14:00:27.946Z","updated_at":"2026-07-05T21:00:34.118Z","avatar_url":"https://github.com/hebus.png","language":"TypeScript","funding_links":[],"categories":["Third Party Components"],"sub_categories":["Modals"],"readme":"# ngx-call\n\n\u003e Imperative, type-safe, promise-based dialogs \u0026 overlays for Angular — the Angular counterpart of [react-call](https://github.com/desko27/react-call)'s `createCallable`.\n\n**[▶ Live demo \u0026 21 examples → hebus.github.io/ngx-call](https://hebus.github.io/ngx-call/)**\n\nCall a dialog like a function. Await a confirm, resolve a value — no template wiring, no boilerplate.\n\n```typescript\n// 1 — bind any component, once\nexport const Confirm = createCallable\u003c{ message: string }, boolean\u003e(ConfirmDialog);\n\n// 2 — call it like a function, anywhere\nconst ok = await Confirm.call({ message: \"Delete this item?\" });\n//    ^ resolves to boolean — fully typed\n```\n\n## Features\n\n- **Imperative API** — `call`, `upsert`, `update`, `end`, `setRoot`, mirroring react-call's full surface.\n- **Type-safe** — arguments and the resolved value are typed end-to-end.\n- **Promise-based** — `await` any overlay; each call stacks an independent instance.\n- **Zero dependencies** — built on Angular signals and DI.\n- **Anything overlay-shaped** — confirms, prompts, toasts, drawers, command palettes, wizards… see the [demo](https://hebus.github.io/ngx-call/).\n\n## How it differs from react-call\n\nBeyond the obvious Angular-vs-React: **react-call is headless** — it gives you the callable/stacking mechanism and you render and style the overlay yourself. ngx-call keeps that same headless engine (`createCallable`, `injectCallRef`, stacking, `closeAll`) **and** ships optional UI primitives built directly on web-platform standards:\n\n- **Native `\u003cdialog\u003e` element** — the `Dialog` wrapper drives the real element via `showModal()` / `show()`, so you get the browser **top layer**, the native `::backdrop`, focus trapping and \u003ckbd\u003eEsc\u003c/kbd\u003e-to-close for free — no re-implemented modal logic.\n- **Standard Popover API** — `showPopover()` opens in the top layer with native light-dismiss (`closedby=\"any\"`), ideal for menus, tooltips and non-modal panels — no overlay `\u003cdiv\u003e`, no manual outside-click handling.\n- **Single-backdrop stacking** — stacked native modals would each paint their own `::backdrop` and cumulatively darken the page; ngx-call keeps exactly one visible backdrop across the whole stack.\n- **No `\u003cRoot/\u003e` to place** — react-call requires you to render `\u003cX.Root /\u003e` in your component tree; ngx-call mounts instances imperatively (to `document.body`) once `provideCallable()` is registered, so there's nothing to wire into a template.\n- **Signals throughout** — `call.props()`, `call.index()`, `call.stackSize()` and `DialogService.openCount` are Angular signals.\n\nThe UI primitives are optional: use the headless `createCallable` with your own markup, or lean on `Dialog` / `DialogContent` for the batteries-included path.\n\n**Familiar by design** — the public API deliberately mirrors react-call's surface (`createCallable`, and `call` / `upsert` / `update` / `end` / `setRoot`). Porting a dialog between React and Angular — in either direction — is closer to a mechanical rename than a rewrite.\n\n## Install\n\n```bash\nnpm i ngx-call\n```\n\nThen capture the root injector at bootstrap:\n\n```typescript\nbootstrapApplication(App, { providers: [provideCallable()] });\n```\n\n## Development\n\nThis is a multi-project Angular workspace: the `ngx-call` library and a `demo` application.\n\n```bash\nnpm install\nnpm start              # serves the demo at http://localhost:4200/\nnpx ng build ngx-call  # builds the library\nnpx ng build demo      # builds the demo app\nnpm test               # runs unit tests (Vitest)\n```\n\n## Demo deployment\n\nThe demo is built and published to GitHub Pages on every push to `main` via\n[`.github/workflows/deploy.yml`](.github/workflows/deploy.yml) →\n[hebus.github.io/ngx-call](https://hebus.github.io/ngx-call/).\n\n## Credits\n\nA direct port of [desko27/react-call](https://github.com/desko27/react-call) to Angular.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhebus%2Fngx-call","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhebus%2Fngx-call","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhebus%2Fngx-call/lists"}