{"id":24880162,"url":"https://github.com/fadhilsaheer/mongoi","last_synced_at":"2026-04-18T02:31:04.099Z","repository":{"id":57301887,"uuid":"324113294","full_name":"fadhilsaheer/mongoi","owner":"fadhilsaheer","description":"Node js module for dealing with mongo db 😊","archived":false,"fork":false,"pushed_at":"2021-01-24T09:44:45.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-27T01:05:59.201Z","etag":null,"topics":["database","javascript","mongodb","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fadhilsaheer.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-24T09:04:24.000Z","updated_at":"2021-09-30T13:33:54.000Z","dependencies_parsed_at":"2022-08-24T17:12:13.848Z","dependency_job_id":null,"html_url":"https://github.com/fadhilsaheer/mongoi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fadhilsaheer/mongoi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhilsaheer%2Fmongoi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhilsaheer%2Fmongoi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhilsaheer%2Fmongoi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhilsaheer%2Fmongoi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fadhilsaheer","download_url":"https://codeload.github.com/fadhilsaheer/mongoi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadhilsaheer%2Fmongoi/sbom","scorecard":{"id":391249,"data":{"date":"2025-08-11","repo":{"name":"github.com/fadhilsaheer/mongoi","commit":"60be55770edd0854ec47d922d75ee1ce72f9260e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/19 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-vxvm-qww3-2fh7","Warn: Project is vulnerable to: GHSA-f825-f98c-gj3g","Warn: Project is vulnerable to: GHSA-h8hf-x3f4-xwgp","Warn: Project is vulnerable to: GHSA-9m93-w8w6-76hh","Warn: Project is vulnerable to: GHSA-m7xq-9374-9rvx","Warn: Project is vulnerable to: GHSA-vg7j-7cwx-8wgw","Warn: Project is vulnerable to: GHSA-p92x-r36w-9395","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T17:52:26.392Z","repository_id":57301887,"created_at":"2025-08-18T17:52:26.392Z","updated_at":"2025-08-18T17:52:26.392Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953751,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["database","javascript","mongodb","nodejs"],"created_at":"2025-02-01T10:19:42.061Z","updated_at":"2026-04-18T02:31:04.083Z","avatar_url":"https://github.com/fadhilsaheer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MONGOI😇\n\nMONGOI is a npm package made by \u003ca href=\"https://fadhilsaheer.github.io\"\u003eFadhil\u003c/a\u003e\n\neasy tool to manage and do CRUD operation with mongo database\n\n\n\n### Setup\n\n\u003cp\u003e\n    Requirements\n\u003c/p\u003e\n\n\u003cul\u003e\n    \u003cli\u003eNode Js\u003c/li\u003e\n    \u003cli\u003eNpm\u003c/li\u003e\n    \u003cli\u003eMongo Db\u003c/li\u003e\n    \u003cli\u003eInternet [to download] 😅\u003c/li\u003e\n\u003c/ul\u003e\n\n```\nnpm i mongoi\n```\n\n\u003cp\u003e\n    This will install mongoi for you 😎\n\u003c/p\u003e\n\n\n\n### How To Use\n\nMongoi will help you to do crud operation 😱\n\nto have more features don't forget to contribute 😁 \n\n\n\nAfter installing require it\n\n```javascript\nconst mongoi = require('mongoi')\n```\n\nyou have initialize it first\n\n```javascript\nlet yourDatabaseConnectionUrl = \"mongodb://localhost:27017/[you-db-name]\"\n\n// create database schema as you do for mongoose\nlet databaseSchema = {\n    name: String,\n}\n\nlet collectionName = \"your-collection-name\"\n\nmongoi.init(yourDatabaseConnectionUrl, databaseSchema, collectionName).then(()=\u003e{\n    // you can write anything here except bug 😊\n})\n```\n\nnow you initialized mongoi successfully 😎\n\nso lets start doing crud 😜\n\n\n\nCRUD = CREATE - READ - UPDATE - DELETE\n\n```javascript\n// This is the model of crud 😪\n\nmongoi.crud([option], data).then(()=\u003e{\n    // use it 😋\n})\n\n// options\n// [you have to write it in string eg : \"r\"]\n//\n// s - \"save\"\n// r = \"read\"\n// ro = \"read one\"\n// u = \"update many\"\n// uo = \"update one\"\n// d = \"delete all\"\n// do = \"delete one\"\n// dm = \"delete many\"\n// \n// Enjoy 🤗\n//\n```\n\n\n\n#### Create\n\nlets create 👻\n\n```javascript\n\n// create this according to you schema\nconst data_to_save = {\n    name: \"apple\",\n    color: \"red\"\n}\n\nmongoi.crud(\"s\", data_to_save) // you can call .then after this 🥱\n```\n\n#### Read\n\nlets read 😏\n\n```javascript\n// read all\n\nmongoi.crud(\"r\").then((data_you_get_from_database)=\u003e{\n    // do with this data 🐼\n})\n```\n\n```javascript\n// read one\n\nlet condition = {name: \"panda\"} // this is the condition of what are you looking for\n\nmongoi.crud(\"ro\", condition).then((data_you_get_from_database)=\u003e{\n    // do with this data 🐧\n})\n\n```\n\n#### Update\n\nlet update 🖊\n\n```javascript\n// update many or update all\n\nlet condition_and_data = [\n    {cute_message: \"you are ugly 🤮\"},//this should be condition\n    {cute_message: \"you are cute 😘\"}//thing you wan't to change\n]\n\nmongoi.crud(\"u\", condition_and_data)// you can call .then after this 🥱 i don't care 😏\n\n\n// 😁\n\n/*\n\nlet condition_and_data = [\n    {cute_message: \"you are cute 😘\"},//you are not cute 😅\n    {cute_message: \"you are ugly 🤮\"}//you are ugly 😁\n]\n\nmongoi.crud(\"u\", condition_and_data)// just kidding 😅\n\n*/\n```\n\n```javascript\n// update one\n\nlet condition_and_data = [\n    {cute_message: \"you are ugly 🤮\"},//this should be condition\n    {cute_message: \"you are cute 😘\"}//thing you wan't to change\n]\n\nmongoi.crud(\"uo\", condition_and_data)// you can call .then after this 🥱 i don't care 😏\n\n\n// 😁\n\n/*\n\nlet condition_and_data = [\n    {cute_message: \"you are cute 😘\"},//you are not cute 😅\n    {cute_message: \"you are ugly 🤮\"}//you are ugly 😁\n]\n\nmongoi.crud(\"u\", condition_and_data)// just kidding 😅\n```\n\n#### Delete\n\nlets delete this 🧺\n\n```javascript\n// delete all\n\nmongoi.crud(\"d\") // .then is supported 😇\n```\n\n```javascript\n// delete many\n\nlet condition = {cute_message: \"you are cute\"}\n\nmongoi.crud(\"dm\", condition)// use .then if you want\n```\n\n```javascript\n// delete one\n\nlet condition = {cute_message: \"you are cute\"}\n\nmongoi.crud(\"do\", condition)// use .then if you want no one cares 😁\n```\n\n\n\n## Conclusion\n\nHopefully I assume that you love 💗 this\n\ncontribute for updating this garbage 😁 \n\n\n\n\u003ccenter\u003e\n    \u003cp\u003e\n        👨‍💻 With 💗 \u003ca href=\"https://fadhilsaheer.github.io/\"\u003eFadhil\u003c/a\u003e\n    \u003c/p\u003e\n\u003c/center\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadhilsaheer%2Fmongoi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffadhilsaheer%2Fmongoi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadhilsaheer%2Fmongoi/lists"}