{"library":"cosa","type":"library","category":null,"description":"Cosa is a simplified object modeling library for MongoDB, providing a lightweight abstraction over the MongoDB Node.js driver. The current stable version is 10.1.0, released under the MIT license, with an active maintenance status. It offers a clean, schema-based model definition API with built-in validation and query helpers, focusing on developer productivity without the overhead of a full ODM like Mongoose. The library supports ESM only, requires Node.js >=20, and is built on top of the official MongoDB driver.","language":"javascript","status":"active","version":"10.1.0","tags":["javascript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install cosa","imports":["import { Model } from 'cosa'","import { Model } from 'cosa'","const UserModel = Model.define({ name: 'UserModel', ... })","const UserModel = Model.define({ name: 'UserModel', ... })"]},{"cmd":"yarn add cosa","imports":[]},{"cmd":"pnpm add cosa","imports":[]}],"homepage":"https://github.com/Losant/cosa#readme","github":"https://github.com/Losant/cosa","docs":null,"changelog":null,"pypi":null,"npm":"cosa","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}