{"meta":{"name":"FindSoftware","page":"https://findsoftware.frbit.cloud/typegoose/","markdown":"https://findsoftware.frbit.cloud/typegoose.md","license":"https://creativecommons.org/licenses/by/4.0/","attribution":"FindSoftware, CC BY 4.0","note":"Attributes are recorded, never scored. An absent field means unknown, never zero and never bad."},"record":{"id":"typegoose","name":"Typegoose","urls":{"home":"https://typegoose.github.io/typegoose/","repository":"https://github.com/typegoose/typegoose","docs":"https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/"},"category":["library"],"description":"Wrapper that defines Mongoose models from TypeScript classes decorated with property decorators.","maintainer":"The Typegoose Team","maintainerType":"community","firstRelease":2017,"hosting":["node"],"language":"javascript","runtime":["node"],"runtimeMin":"node 20","contentStore":null,"databases":["mongodb"],"adminUi":null,"headlessApi":null,"templating":null,"i18n":null,"runsAs":null,"renderingModes":null,"installMethod":"npm","licenseModel":"open-source","license":"MIT","currentMajor":"13","latestReleaseDate":"2026-09-22T00:00:00.000Z","githubStargazers":2311,"contributors":101,"packagistDownloads":null,"npmWeeklyDownloads":313784,"dependentRepos":2527,"dependentPackages":223,"social":{"discord":"https://discord.gg/BpGjTTD","forum":"https://github.com/typegoose/typegoose/discussions"},"checkedAt":"2026-11-16T00:00:00.000Z","addedAt":"2026-11-16T00:00:00.000Z","sources":[{"field":"urls","url":"https://typegoose.github.io/typegoose/","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://api.github.com/repos/typegoose/typegoose","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"urls","url":"https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"maintainer","url":"https://raw.githubusercontent.com/typegoose/typegoose/master/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"language","url":"https://api.github.com/repos/typegoose/typegoose","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"category","url":"https://raw.githubusercontent.com/typegoose/typegoose/master/README.md","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtime","url":"https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"runtimeMin","url":"https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"installMethod","url":"https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"databases","url":"https://typegoose.github.io/typegoose/docs/api/decorators/searchIndexes","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"license","url":"https://api.github.com/repos/typegoose/typegoose","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"licenseModel","url":"https://raw.githubusercontent.com/typegoose/typegoose/master/LICENSE","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"currentMajor","url":"https://api.github.com/repos/typegoose/typegoose/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"firstRelease","url":"https://api.github.com/repos/typegoose/typegoose/commits/v2.2.0","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"latestReleaseDate","url":"https://api.github.com/repos/typegoose/typegoose/releases","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"npmWeeklyDownloads","url":"https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@typegoose%2ftypegoose","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"githubStargazers","url":"https://api.github.com/repos/typegoose/typegoose","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"contributors","url":"https://api.github.com/repos/typegoose/typegoose/contributors","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentPackages","url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/%40typegoose%2Ftypegoose","checkedAt":"2026-11-16T00:00:00.000Z"},{"field":"dependentRepos","url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/%40typegoose%2Ftypegoose","checkedAt":"2026-11-16T00:00:00.000Z"}],"status":"active","ai":"authored"},"prose":"Typegoose defines Mongoose models from TypeScript classes. A class carries property decorators, and getModelForClass turns it into a regular Mongoose model whose documents have the class's types, so the schema and the TypeScript type come from one definition.\n\nTypegoose wraps Mongoose and does not change its functions. Mongoose is installed next to Typegoose as a peer dependency. Static methods, instance methods and hooks are written on the class.\n\n## Worth knowing\n\nEach Typegoose release line works with a range of Mongoose versions, and the compatibility page lists them. Mongoose may change types even in patch versions, so an upgrade of one can need a matching upgrade of the other."}