ngx-ai
August 2, 2026 Ā· View on GitHub
RxJS-friendly Angular client for OpenAI-compatible chat APIs (OpenAI, xAI Grok, or your own proxy) with first-class streaming.
This is the monorepo for the ngx-ai Angular library.
š¦ Full library documentation and usage ā
Why
Wiring an LLM into an Angular app usually means hand-rolling fetch, parsing
server-sent events by hand, and leaking API keys into the browser. ngx-ai
turns that into a one-line provider and an injectable, RxJS-first service ā with
streaming and a safe-by-default key policy built in.
Repository layout
| Path | Description |
|---|---|
projects/ngx-ai | The publishable library source. |
dist/ngx-ai | Build output (generated). |
Development
npm install # install dependencies
npm run build # build the library to dist/ngx-ai
npm test # run the unit tests
npm run lint # check formatting
Publishing
npm run build
cd dist/ngx-ai
npm publish --access public
Contributing
See CONTRIBUTING.md. Issues and PRs welcome.