---
title: "ai.js — Brad Jasper"
description: "One toolkit for text, images, embeddings and vector search in Node.js, local by default."
url: https://bradjasper.com/projects/ai-js/
---

[← Code](https://bradjasper.com/code/)

# ai.js

Archived · 2023–2024 · JavaScript · AI

Not maintained since 2024.

One toolkit for text, images, embeddings and vector search in Node.js, local by default.

- [aijs.themaximalist.com](https://aijs.themaximalist.com/)
- [Source on GitHub](https://github.com/themaximalist/ai.js)

![ai.js logo](https://bradjasper.com/_astro/aijs.D9r0pg8g_bfvyK.webp)

ai.js tied my other libraries together: [llm.js](https://bradjasper.com/projects/llm-js/) for text, [imagine.js](https://bradjasper.com/projects/imagine-js/) for images, [embeddings.js](https://bradjasper.com/projects/embeddings-js/) for embeddings and [vectordb.js](https://bradjasper.com/projects/vectordb-js/) for similarity search, each one function call away. It worked locally and offline by default and switched to hosted models when you gave it an API key.
