https://github.com/undo76/ai-sdk-ng
AI SDK Angular (experimental)
https://github.com/undo76/ai-sdk-ng
ai angular vercel-ai-sdk
Last synced: about 2 months ago
JSON representation
AI SDK Angular (experimental)
- Host: GitHub
- URL: https://github.com/undo76/ai-sdk-ng
- Owner: undo76
- License: apache-2.0
- Created: 2025-07-01T18:10:08.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-09T09:34:22.000Z (12 months ago)
- Last Synced: 2026-04-23T01:30:51.003Z (2 months ago)
- Topics: ai, angular, vercel-ai-sdk
- Language: TypeScript
- Homepage:
- Size: 347 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ai-sdk-ng
> [!WARNING]
> This is an experimental version not ready for production.
**ai-sdk-ng** is an Angular library that provides seamless integration with [Vercel AI SDK v5 (beta)](https://vercel.com/blog/vercel-ai-sdk-v5) for building AI-powered apps in Angular. It offers chat, text completion, and structured output capabilities with reactive state management and type-safe schema validation.
This project was generated using the [Angular CLI](https://github.com/angular/angular-cli) and supports Angular **16 or higher**.
---
## Features
- **Chat API**: Easily build interactive chat UIs powered by Vercel AI SDK v5.
- **Text Completion**: Generate text using LLMs (Large Language Models).
- **Structured Output**: Stream and validate structured JSON responses from AI APIs with [Zod](https://zod.dev/) schema support.
- **Reactive State**: Built-in loading, error, and result state for Angular templates using signals.
---
## Getting Started
### Installation
```bash
npm install ai-sdk-ng
```
### Usage
Import the classes you need from the library’s public API:
```typescript
import { Chat, Completion, StructuredObject } from "ai-sdk-ng";
```
---
## Development
### Building
To build the library:
```bash
npm run build
```
Build artifacts are placed in `dist/ai-sdk-ng/`.
---
## Testing
### Unit Tests
```bash
npm run test
```
---
## Additional Resources
- [Vercel AI SDK v5 (beta)](https://vercel.com/blog/vercel-ai-sdk-v5)
- [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli)
- [Zod Schema Validation](https://zod.dev)
- [Angular Documentation](https://angular.dev/)
---
## License
Apache License, Version 2.0