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.

CI npm version License: MIT

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

PathDescription
projects/ngx-aiThe publishable library source.
dist/ngx-aiBuild 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.

License

MIT Ā© Arul Cornelious