2024-11-21 20:56:55 +08:00
2024-11-21 19:58:41 +08:00
2024-11-21 19:53:19 +08:00
2024-11-21 20:36:41 +08:00
2024-11-21 20:36:41 +08:00
2024-11-21 19:53:19 +08:00
2024-11-21 19:53:19 +08:00
2024-11-21 19:53:19 +08:00
2024-11-21 20:56:55 +08:00
2024-11-21 20:56:55 +08:00
2024-11-21 20:56:55 +08:00
2024-11-21 19:53:19 +08:00
2024-11-21 19:53:19 +08:00
2024-11-21 19:53:19 +08:00

xsAI

Extra-small AI SDK for any OpenAI-compatible API.

npm version npm downloads bundle size license

Why?

I'm working on a tiny local-LLM translator - ARPK, which is currently (v0.2.4) 449KB, of which 26% is ollama-js (the other 13% is the pointless whatwg-fetch that comes with ollama-js!)

I wanted to make every byte count, so I started writing a lightweight library - xsAI.

It provides an interface similar to the Vercel AI SDK, ESM-only and zero dependencies for minimal installation size.

Install

# npm
npm install xsai

# yarn
yarn add xsai

# pnpm
pnpm install xsai

# bun
bun install xsai

# deno
deno install xsai

License

MIT

S
Description
🤖💬 extra-small AI SDK.
https://xsai.js.org
Readme MIT
2.8 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 100%