ai-database

JSON →
library 2.1.3 ·javascript
verified May 27, 2026

ai-database is an npm package (v2.1.3) that provides AI-powered database interface primitives with MDXLD conventions. It allows developers to define typed schemas with relationship operators (->, ~>, <-, <~) for AI-native linking, enabling cascade generation of entity graphs in a single call. Key features include promise pipelining (chain without await), batch relationship loading (eliminates N+1 queries), natural language queries, and full TypeScript support. Released on npm, it uses vitest for testing and is part of the ai-primitives ecosystem. It differs from traditional ORMs by being designed for AI-generated data, automatically matching existing records or creating new ones with fuzzy matching.

total hits 33
actors 9 distinct systems
last hit 1d ago Amazonbot
Amazonbot
4
MetaBot
4
GPTBot
2
Script
1
Search engines
5
Humans
3

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇫🇷 France · 🇸🇬 Singapore · 🇨🇦 Canada