A metadata-driven library for Node.js that facilitates working generically with data, primarily MongoDB, serving as an ODM. Current stable version is 0.6.264, with frequent releases. Key differentiators: schema-first approach, TypeScript-first (ships types), runtime type validation, and tight coupling with MongoDB driver v3.1.10. Provides a declarative schema definition with automatic collection management, query building, and data transformations.
npm install tyranidNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a Tyranid instance, defines a user schema, and saves a new user document.
Replace Tyranid.prototype.init() with Tyranid.prototype.connect()
Explicitly set collectionName in schema options if different from schema name.
If upgrading from <0.6.0, wrap collection call with 'new' or adjust code.
Install TypeScript 3.8.3 as a devDependency.
Ensure mongodb@3.1.10 is installed.
Use 'const { Tyranid } = require('tyranid');'Replace 'tyranid.init()' with 'tyranid.connect()'
npm install fast-csv@^2.5.0