{"id":17349241,"url":"https://github.com/co2-git/mongosockets","last_synced_at":"2025-03-27T11:44:25.605Z","repository":{"id":68259009,"uuid":"77757917","full_name":"co2-git/mongosockets","owner":"co2-git","description":null,"archived":false,"fork":false,"pushed_at":"2016-12-31T22:57:07.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T16:23:17.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/co2-git.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-31T22:22:32.000Z","updated_at":"2016-12-31T22:23:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"90a92ab0-25dc-4ca3-bb8b-9bb2c4da96bc","html_url":"https://github.com/co2-git/mongosockets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Fmongosockets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Fmongosockets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Fmongosockets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co2-git%2Fmongosockets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/co2-git","download_url":"https://codeload.github.com/co2-git/mongosockets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245841691,"owners_count":20681184,"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":[],"created_at":"2024-10-15T16:55:07.976Z","updated_at":"2025-03-27T11:44:25.581Z","avatar_url":"https://github.com/co2-git.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"mongosockets\n===\n\n# Install\n\n```bash\nnpm install mongosockets\n```\n\n# Usage (server)\n\n```bash\nnpm start 3000\n```\n\n# Start new worker on port 9000\n\n```bash\nnpm run worker 9000 mongodb://localhost/test\n```\n\n# Usage (client)\n\n```javascript\nimport {connect} from 'mongosockets';\nimport maeva, {Model} from 'maeva';\n\n// Define a model\nclass User extends Model {\n  static schema = {email: String};\n}\n\n// Connect to a mongosockets server\nawait maeva.connect(connect('ws://localhost:9000'));\n\n// Perform queries\nawait User.insert({email: 'john@doe.com'});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco2-git%2Fmongosockets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fco2-git%2Fmongosockets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco2-git%2Fmongosockets/lists"}