← Code

ai.js logo

ai.js tied my other libraries together: llm.js for text, imagine.js for images, embeddings.js for embeddings and 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.