{"id":24292516,"url":"https://github.com/thothom/core","last_synced_at":"2025-09-25T18:31:00.025Z","repository":{"id":36970493,"uuid":"390758868","full_name":"thothom/core","owner":"thothom","description":"ThothOM - The Ultimate OM For All Databases","archived":false,"fork":false,"pushed_at":"2023-02-27T06:12:27.000Z","size":5004,"stargazers_count":16,"open_issues_count":10,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-05T05:16:20.201Z","etag":null,"topics":["data-mapper","database","dynamo","dynamodb","javascript","nodejs","nosql","odm","orm","sql","thothom","typeorm","typescript"],"latest_commit_sha":null,"homepage":"https://thothom.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thothom.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null},"funding":{"github":["thothom"]}},"created_at":"2021-07-29T14:54:28.000Z","updated_at":"2024-10-02T19:16:57.000Z","dependencies_parsed_at":"2022-07-19T15:04:09.579Z","dependency_job_id":null,"html_url":"https://github.com/thothom/core","commit_stats":null,"previous_names":["techmmunity-symbiosis/symbiosis"],"tags_count":32,"template":false,"template_full_name":"techmmunity/base-project-packages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thothom%2Fcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thothom%2Fcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thothom%2Fcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thothom%2Fcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thothom","download_url":"https://codeload.github.com/thothom/core/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234226877,"owners_count":18799236,"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":["data-mapper","database","dynamo","dynamodb","javascript","nodejs","nosql","odm","orm","sql","thothom","typeorm","typescript"],"created_at":"2025-01-16T15:53:42.161Z","updated_at":"2025-09-25T18:30:54.639Z","avatar_url":"https://github.com/thothom.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"https://github.com/thothom/core/raw/master/resources/logo.gif\" width=\"300\" height=\"300\"\u003e\n\n# ThothOM\n\n\u003ca href=\"https://github.com/techmmunity/eslint-config\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/style%20guide-Techmmunity-01d2ce?style=for-the-badge\" alt=\"Style Guide: Techmmunity\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.codefactor.io/repository/github/thothom/core\"\u003e\n\t\u003cimg src=\"https://www.codefactor.io/repository/github/thothom/core/badge?style=for-the-badge\" alt=\"CodeFactor\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://coveralls.io/github/thothom/core?branch=master\"\u003e\n\t\u003cimg src=\"https://img.shields.io/coveralls/github/thothom/core/master?style=for-the-badge\" alt=\"Coveralls\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://github.com/thothom/core/actions/workflows/coverage.yml\"\u003e\n\t\u003cimg src=\"https://img.shields.io/github/workflow/status/thothom/core/Collect%20Coverage?label=tests\u0026logo=github\u0026style=for-the-badge\" alt=\"Tests\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@thothom/core\"\u003e\n\t\u003cimg src=\"https://img.shields.io/npm/v/@thothom/core.svg?color=CC3534\u0026style=for-the-badge\" alt=\"Npm\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@thothom/core\"\u003e\n\t\u003cimg src=\"https://img.shields.io/npm/dw/@thothom/core.svg?style=for-the-badge\" alt=\"Downloads\"\u003e\n\u003c/a\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n\u003c/div\u003e\n\nThothOM is an **Object Mapper**, an [ORM + ODM](https://medium.com/spidernitt/orm-and-odm-a-brief-introduction-369046ec57eb), based on [TypeORM syntax](https://github.com/typeorm/typeorm) and [ESLint plugable approach](https://eslint.org/). Our intention here is standardize the connection and implementation of **every database** with the best performance possible, and for this, we use an plugable approach, so more people can contribute and create their on integration. This package alone can't do anything besides typing, the plugins do all the \"dirt work\".\n\nCurrently it only works with TypeScript (and transpiled JavaScript), and we plan to keep this way.\n\n[![Discord Community](https://img.shields.io/badge/discord%20community-5865F2?style=for-the-badge\u0026labelColor=5865F2\u0026logo=discord\u0026logoColor=ffffff)](https://discord.gg/NMtAJ6whG7)\n[![Docs](https://img.shields.io/badge/📄%20documentation-01d2ce?style=for-the-badge)](https://thothom.com)\n\n## Why use ThothOM?\n\n- **Easy to use and standardize.** Regardless of the database, the implementation will be the same in all cases (except the most complex ones).\n- **The plugable approach.** With the community support, this OM can work with **all** the databases, be they NoSQL or SQL, as long as it has a plugin for it.\n- **No globals!** All that this package uses is encapsuled inside it's classes, so there is no need to worry about some config defined in a global scope compromising your code, but if you want, you can use `setGlobalConnection()` to allow globals.\n- **Free and direct support.** If you have any question, you can join [our discord community](https://discord.gg/NMtAJ6whG7), and we and the members of Techmmunity will help you!\n- **Focused on microservices and serverless!** We focus in keep it usable for serverless and microservices projects.\n\n## Install and Config\n\nWith Yarn:\n\n```sh\nyarn add @thothom/core reflect-metadata\n```\n\nWith NPM:\n\n```sh\nnpm i @thothom/core reflect-metadata\n```\n\nConfigure `tsconfig.json`:\n\n```json\n{\n\t\"compilerOptions\": {\n\t\t\"experimentalDecorators\": true,\n\t\t\"emitDecoratorMetadata\": true,\n\t\t\"skipLibCheck\": true\n\t}\n}\n```\n\n## Plugins List\n\nAll the ThothOM Plugins have the `thothom` tag, so you can easily found all the plugins at [this link](https://www.npmjs.com/search?q=keywords:thothom).\n\n[![Plugins List](https://img.shields.io/badge/plugins%20list-CB3837?style=for-the-badge\u0026labelColor=CB3837)](https://www.npmjs.com/search?q=keywords:thothom)\n\n## Usage\n\nThothOM only supports the [Data Mapper](https://en.wikipedia.org/wiki/Data_mapper_pattern) pattern, so we can avoid mutability and bad code practices.\n\n```ts\nimport { Column, Entity, PrimaryGeneratedColumn } from \"@thothom/core\";\n// All plugins export a Connection class and a Repository type\nimport { Connection, Repository } from \"example-thoth-plugin\";\n\n@Entity()\nclass FooEntity {\n\t@PrimaryColumn()\n\tpublic id: string;\n\n\t@Column()\n\tpublic foo: string;\n}\n\ntype FooRepository = Repository\u003cFooEntity\u003e;\n\nconst bootstrap = async () =\u003e {\n\tconst connection = new Connection({\n\t\t// Connection config here\n\t\tentities: [FooEntity],\n\t});\n\n\tawait connection.load();\n\tawait connection.connect();\n\n\tconst fooRepository: FooRepository =\n\t\tconnection.getRepository\u003cFooEntity\u003e(FooEntity);\n\n\tawait fooRepository.save({\n\t\tbar: \"foo\",\n\t});\n\n\tawait connection.close();\n};\n\nbootstrap();\n```\n\n## Documentation\n\n- [For users](https://thothom.com)\n- [For plugin creators](https://thothom.com/docs/create-plugin/first-steps)\n- [For contributors](https://thothom.com/docs/contributing/first-steps)\n\n## How to contribute?\n\nAll the details about contributing are in [our website](https://thothom.com).\n\nSee [here](https://github.com/thothom/core/blob/master/TODO.md) our to-dos.\n\n## Special Thanks\n\n### Contributors\n\nThis project exists thanks to all the people who contribute:\n\n\u003e COMING SOON\n\n### _Cool Kids_\n\n- A very special thanks to the creators of TypeORM, without their code, this package would never exists.\n","funding_links":["https://github.com/sponsors/thothom"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthothom%2Fcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthothom%2Fcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthothom%2Fcore/lists"}