{"id":25157537,"url":"https://github.com/immatheus/fongus","last_synced_at":"2026-05-04T01:33:50.674Z","repository":{"id":58064902,"uuid":"527334371","full_name":"imMatheus/fongus","owner":"imMatheus","description":"An npm package to generate dummy documents for your mongodb project with Mongoose or MongoDB driver","archived":false,"fork":false,"pushed_at":"2022-08-28T12:02:57.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-18T21:08:00.985Z","etag":null,"topics":["development","mongo","mongodb","mongoose","nodejs"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/fongus","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imMatheus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-21T21:48:53.000Z","updated_at":"2022-09-03T20:12:26.000Z","dependencies_parsed_at":"2022-09-13T23:50:18.765Z","dependency_job_id":null,"html_url":"https://github.com/imMatheus/fongus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imMatheus/fongus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imMatheus%2Ffongus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imMatheus%2Ffongus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imMatheus%2Ffongus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imMatheus%2Ffongus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imMatheus","download_url":"https://codeload.github.com/imMatheus/fongus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imMatheus%2Ffongus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261539319,"owners_count":23174135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["development","mongo","mongodb","mongoose","nodejs"],"created_at":"2025-02-09T01:24:00.476Z","updated_at":"2026-05-04T01:33:50.640Z","avatar_url":"https://github.com/imMatheus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fongus\n\nAn npm package to generate dummy documents for your mongodb project with Mongoose or MongoDB driver\n\nFor more info on how to use the **faker** object check out their [docs](https://fakerjs.dev/)\n\n## For Mongoose\n\n```js\nimport { swamp, faker } from 'fongus'\nimport mongoose from 'mongoose'\n\nconst Schema = mongoose.Schema\n\nconst User = new Schema({\n    name: String,\n    email: String,\n    adress: {\n        zip: String,\n        street: String,\n    },\n    colors: [String],\n})\n\nawait swamp({\n    count: 10,\n    fields: {\n        name: faker.name.firstName,\n        email: faker.internet.email,\n        address: {\n            zip: faker.address.zipCode,\n            street: faker.address.street,\n        },\n        colors: [faker.color.human, faker.color.human],\n    },\n    path: User,\n})\n```\n\n## For MongoDB\n\n```js\nimport { swamp, faker } from 'fongus'\nimport { MongoClient } from 'mongodb'\n\nconst url = 'mongodb://localhost:27017'\nconst client = new MongoClient(url)\n\nawait swamp({\n    count: 10,\n    fields: {\n        name: faker.name.firstName,\n        email: faker.internet.email,\n        address: {\n            zip: faker.address.zipCode,\n            street: faker.address.street,\n        },\n        colors: [faker.color.human, faker.color.human],\n    },\n    path: client.db('myProject').collection('users'),\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimmatheus%2Ffongus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimmatheus%2Ffongus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimmatheus%2Ffongus/lists"}