# @camilaprav/kittygpt

> A friendly, minimalist, fully-featured ChatGPT completion library

Latest version **0.0.75** (published 2026-11-28) · GPL-v3.0+ license · 0 weekly downloads

## Install

```sh
npm install @camilaprav/kittygpt
pnpm add @camilaprav/kittygpt
yarn add @camilaprav/kittygpt
bun add @camilaprav/kittygpt
```

Provides the commands `kitty`, `kittyd`, `kitty-dump`.

## Health

**Score 60/100 (C)** — status: active.

Positive: esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.0.75 |
| Published | 2026-11-28 |
| First published | 2025-04-22 |
| Weekly downloads | 0 |
| License | GPL-v3.0+ |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 9 |
| Unpacked size | 295.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Camila Prá |
| Maintainers | camilaprav |

## Links

- npm: https://www.npmjs.com/package/@camilaprav/kittygpt
- Repository: git@githubcom:camilaprav/kittygpt
- npm.io page: https://npm.io/package/@camilaprav/kittygpt

## Dependencies (9)

- [ws](https://npm.io/package/ws.md) ^8.18.3
- [yaml](https://npm.io/package/yaml.md) ^2.9.1
- [dotenv](https://npm.io/package/dotenv.md) ^16.6.1
- [mrmime](https://npm.io/package/mrmime.md) ^2.0.1
- [openai](https://npm.io/package/openai.md) ^6.38.0
- [pdfkit](https://npm.io/package/pdfkit.md) ^0.20.2
- [commander](https://npm.io/package/commander.md) ^14.0.2
- [typescript](https://npm.io/package/typescript.md) ^5.9.3
- [@libsql/client](https://npm.io/package/@libsql/client.md) ^0.15.15

## Recent versions

- 0.0.75 (latest) — 2026-11-28
- 0.0.74 — 2026-05-22
- 0.0.73 — 2026-05-22
- 0.0.72 — 2025-12-18
- 0.0.71 — 2025-12-18
- 0.0.70 — 2025-12-18
- 0.0.68 — 2025-12-15
- 0.0.67 — 2025-12-15
- 0.0.66 — 2025-12-15
- 0.0.65 — 2025-10-24
- 0.0.64 — 2025-10-22
- 0.0.63 — 2025-10-22
- 0.0.62 — 2025-10-22
- 0.0.61 — 2025-10-22
- 0.0.60 — 2025-10-22
- … 56 more at https://npm.io/package/@camilaprav/kittygpt/versions

## README

# 🐈‍⬛ kittygpt

A friendly, minimalist, fully-featured ChatGPT completion + voice chat library.

- Tiny, isomorphic, no client-side dependencies.
- Streaming, structured outputs, function calling, retries, system message handling.
- Automatic voice assistant that allows chatting about and interacting with any page element with the full contextual awareness ChatGPT is known for—no page modifications needed!
- No classes. No setup. Just clean calls and smooth purrs.

Built because the official SDK fell short.

Published under the super-permissive ISC license (see [License](#License)).

---

Don't let the short README fool you. All the juicy details can be found in the wiki:

- [Completion API](https://github.com/camilaprav/kittygpt/wiki/Completion-API): A complete guide into the completion API part of the library. Documents configuration, basic usage, streaming, function calls, and exposed internal helpers.
- [Voice Chat API](https://github.com/camilaprav/kittygpt/wiki/Voice-Chat-API): The same, but for voice chat. Documents both browser and NodeJS usage, as well as function calling.
- [Autoassist API](https://github.com/camilaprav/kittygpt/wiki/Autoassist-API): The same, but for the autoassist API. Use this API to turn any SPA into a fully voice-interactive app with a single function call!

---

## Running tests

Make sure you've installed all dependencies first:

```sh
$ npm install
$ npx playwright install
```

Create `.env` with your OpenAI endpoints and API key:

```ini
OPENAI_API_COMPLETIONS_ENDPOINT=https://api.openai.com/v1/chat/completions
OPENAI_API_VOICECHAT_ENDPOINT=https://api.openai.com/v1/realtime/sessions
OPENAI_API_KEY=sk-🤫🤫🤫
```

Run with:

```sh
$ npm run test
```

The library strives for (and at the time of writing achieves) full test coverage.

Enjoy!

---

## 🐾 Philosophy

> The official SDK is bloated, brittle, and too complicated.
> `kittygpt` is clean, modular, hackable, and sharp.
> It works the way you *wish* OpenAI’s SDK did.
> And it doesn’t meow around.

— Camila (and maybe you 💜)

---

## License

### ISC (Internet Systems Consortium)

KittyGPT is free software: you can redistribute it and/or modify it under the terms of the [ISC License](COPYING).

## Exclusion of warranty

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

---
_Source: https://npm.io/package/@camilaprav/kittygpt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
