Back to directory

Vector Storage

A lightweight JavaScript vector database that stores document embeddings in the browser's IndexedDB and performs semantic similarity search over them using OpenAI embeddings and cosine similarity.

Vector Storage

Vector Storage converts text documents into vector embeddings with the OpenAI embeddings API and stores them client-side in IndexedDB, so a web application can search for documents similar in meaning to a query using cosine similarity, and filter results by metadata or text content, all without a server-side database.

It manages storage size automatically with a least-recently-used eviction policy: documents are ranked by their hit counter and then by timestamp, and the least-used, oldest documents are removed first once the configured size limit is exceeded. It installs as an npm package with methods to add single or multiple text documents and search across the stored vectors.

More in Libraries

See all 292
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • TradeCanvas

    bonguynvan.github.io

    A zero-dependency canvas charting engine for building TradingView-style trading charts in JavaScript, with 66 technical indicators, 24 drawing tools, 17 chart types, and real-time streaming.

  • 3d retro graphics

    3d-retro.com

    A free, CC0-licensed library of copy-paste retro 3D and demoscene graphics effects, such as plasma, raytracing, and voxel terrain, runnable as WebGL 1 or plain 2D canvas.