{"id":25419370,"url":"https://github.com/jokio/mango","last_synced_at":"2026-05-05T18:40:17.179Z","repository":{"id":62422479,"uuid":"440502208","full_name":"jokio/mango","owner":"jokio","description":"🦕🥭 Delicious way to work with mongodb from deno","archived":false,"fork":false,"pushed_at":"2023-10-15T18:09:13.000Z","size":43,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-03T15:28:47.748Z","etag":null,"topics":["deno","mongodb","typescript"],"latest_commit_sha":null,"homepage":"","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/jokio.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":"2021-12-21T12:02:36.000Z","updated_at":"2023-02-12T13:56:53.000Z","dependencies_parsed_at":"2023-10-16T08:46:26.192Z","dependency_job_id":"1c733c5f-9d39-4a24-9987-672cfb0bf71b","html_url":"https://github.com/jokio/mango","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/jokio/mango","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokio%2Fmango","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokio%2Fmango/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokio%2Fmango/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokio%2Fmango/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jokio","download_url":"https://codeload.github.com/jokio/mango/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jokio%2Fmango/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32663431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["deno","mongodb","typescript"],"created_at":"2025-02-16T18:38:18.088Z","updated_at":"2026-05-05T18:40:17.149Z","avatar_url":"https://github.com/jokio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🥭 Mango\nLightweight repository abstraction layer on top of the mongodb driver to provide missing features. It has never been so delicious working with `mongo`.\n\n\n## \n[![codecov](https://codecov.io/gh/jokio/mango/branch/main/graph/badge.svg?token=7Gf9AxsXBn)](https://codecov.io/gh/jokio/mango)\n\n## Features\n\n✅ `_id` mapping to `id`. In mongo it's not possible to use id instead of _id, this feature automatically maps id field for you (enabled by default).\n\n✅ `_id` transformation from `ObjectId` to `string`. So you will work with strings always and `ObjectId` will be stored in mongo for you. You will not need to worry about conversions any more once it's enabled (enabled by default).\n\n✅ Versioning system can be enabled per collection. `version: number`  and its increased by `1` every time you call update. Can be used for optimistic concurency.\n\n✅ Doc Dates can be enabled per collection and documents will have `createdAt` and `updatedAt`.\n\n\n\u003cbr/\u003e\n\n\u003cbr/\u003e\n\n## Basic Example:\n```ts\nimport { connectMongo, MangoRepo } from 'https://deno.land/x/jok_mango@v1.4.0/mod.ts'\n\ntype User = {\n  name: string\n  avatarUrl: string\n}\n\nconst { db } = await connectMongo('mongo://localhost/test')\nconst repo = new MangoRepo\u003cUser\u003e(\n  db,\n  'users',\n)\n\nconst result = await repo.insert({\n  name: 'playerx',\n  avatarUrl: 'myJokAvatar',\n})\n\nconsole.log(result)\n```\n\n## Advanced Examples:\nCheck out [tests/mangoRepo](https://github.com/jokio/mango/tree/main/tests/mangoRepo)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjokio%2Fmango","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjokio%2Fmango","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjokio%2Fmango/lists"}