{"id":24797492,"url":"https://github.com/dylanlott/wolverinejs","last_synced_at":"2026-05-13T07:03:58.584Z","repository":{"id":76956487,"uuid":"88913116","full_name":"dylanlott/wolverinejs","owner":"dylanlott","description":"🐺 Real-time event-based library for interacting with MongoDB built with Mongoose.","archived":false,"fork":false,"pushed_at":"2017-05-26T01:55:59.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T01:33:03.137Z","etag":null,"topics":["mongo","mongoose","realtime-database"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dylanlott.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-20T21:45:24.000Z","updated_at":"2017-04-20T21:48:33.000Z","dependencies_parsed_at":"2023-05-23T18:15:26.705Z","dependency_job_id":null,"html_url":"https://github.com/dylanlott/wolverinejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dylanlott/wolverinejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fwolverinejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fwolverinejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fwolverinejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fwolverinejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dylanlott","download_url":"https://codeload.github.com/dylanlott/wolverinejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dylanlott%2Fwolverinejs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32971672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["mongo","mongoose","realtime-database"],"created_at":"2025-01-30T01:28:28.519Z","updated_at":"2026-05-13T07:03:58.569Z","avatar_url":"https://github.com/dylanlott.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WolverineJS\n\n🚨🚨🚨\n## THIS IS NOT PRODUCTION READY -- DO NOT USE THIS IN PRODUCTION YET. \n## THIS LIBRARY IS STILL IN THE EXPERIMENTAL PHASE AND BREAKING CHANGES WILL BE MADE REGULARLY.\n🚨🚨🚨\n\n\u003e A realtime event-based  Mongo ODM with Socket.io support out of the box. \n\n# Basic API\n\n## create\n\n```javascript\nw.create({\n  model: Example,\n  body: {\n    //document model\n  }\n});\n```\n\nEmits the `created` event once it has been written to the database. he callback of the created event takes a `data` callback that gives you access to the document that was created.\n\nEmits `error` event if therer were any errors.\n\n## read\n\n### A find many query example:\n\n```javascript\nw.get({\n  model: Example,\n  query: {\n  //standard mongoose query params here\n  },\n  opts: {\n    // declare options here\n  }\n});\n```\n\nemits a `data` and `error` event.\n\n### a find one / find by ID example:\n\n```javascript\nw.get({\n  model: Example,\n  id: \u003cmongoId\u003e  \n});\n```\n\nemits the `data` and `error` events.\n\n## update\n\n```\nw.update({\n  model: Model,\n  body: {\n    test: \"updated value\"\n  },\n  opts: {\n    upsert: true\n  }\n});\n```\n\nemits the `updated` and `error` events.\n\n`updated` event passes through a callback with the previous model's data and the updated version of the model.\n\n## delete\n\n```\n// delete by query\nw.delete({\n  model: Model,\n  query: {\n    test: \"value\"\n  },\n  options: {\n    options: true\n  }\n});\n\n// delete by ID\nw.delete({\n  model: Model,\n  id: _id\n});\n```\n\nemits the `deleted` and `error` events.\n\n## Events\n\n- All events are tied to a model\n\ne.g. `Model.on('created')`\n\n- Data callbacks have a meta object that give information such as how many documents were touched, how many were modified, how many were created, a timestamp, etc...\n\n## TODO:\n\n- Figure out schemas and model registration on top of mongoose\n- Tie in \u003chttps://github.com/feathersjs/feathers-rest\u003e for REST API generation\n-\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fwolverinejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdylanlott%2Fwolverinejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdylanlott%2Fwolverinejs/lists"}