{"id":18299270,"url":"https://github.com/sinisimattia/tapi","last_synced_at":"2025-04-05T13:34:24.134Z","repository":{"id":39411698,"uuid":"393081488","full_name":"sinisimattia/tapi","owner":"sinisimattia","description":"Consume APIs and convert them to TypeScript objects","archived":false,"fork":false,"pushed_at":"2023-06-27T08:00:51.000Z","size":917,"stargazers_count":38,"open_issues_count":1,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-28T12:16:22.341Z","etag":null,"topics":["api","automapper","converter","deno","javascript","json","typescript"],"latest_commit_sha":null,"homepage":"https://tapi.js.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sinisimattia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"sinisimattia"}},"created_at":"2021-08-05T14:55:32.000Z","updated_at":"2024-08-01T19:43:16.000Z","dependencies_parsed_at":"2023-02-08T18:15:30.165Z","dependency_job_id":null,"html_url":"https://github.com/sinisimattia/tapi","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinisimattia%2Ftapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinisimattia%2Ftapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinisimattia%2Ftapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sinisimattia%2Ftapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sinisimattia","download_url":"https://codeload.github.com/sinisimattia/tapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223192607,"owners_count":17103564,"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":["api","automapper","converter","deno","javascript","json","typescript"],"created_at":"2024-11-05T15:08:31.549Z","updated_at":"2024-11-05T15:08:32.020Z","avatar_url":"https://github.com/sinisimattia.png","language":"TypeScript","funding_links":["https://ko-fi.com/sinisimattia","https://ko-fi.com/B0B561G42"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\t\u003cpre\u003e\n   __              _     _     \n  / /_____ _____  (_)   (_)____\n / __/ __ `/ __ \\/ /   / / ___/\n/ /_/ /_/ / /_/ / /   / (__  ) \n\\__/\\__,_/ .___/_(_)_/ /____/  \n        /_/       /___/        \n\t\u003c/pre\u003e\n\t\u003ch3\u003eConsume APIs as \u003cstrong\u003etyped objects\u003c/strong\u003e!\u003c/h3\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\" style=\"margin-top: 40px\"\u003e\n\n![License](https://badgen.net/github/license/sinisimattia/tapi)\n![TS](https://badgen.net/npm/types/tapi.js)\n![Dependencies](https://badgen.net/bundlephobia/dependency-count/tapi.js)\n![Stars](https://badgen.net/github/stars/sinisimattia/tapi)\n\t\n[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/B0B561G42)\n\n\u003c/div\u003e\n\n\n## Imagine doing this...\n\n```javascript\nhttp\n  .get('/some-url-that-returns-an-object') // Get data 📡\n  .as(YourClass) // Map it onto your class ✨\n  .then((builtObject) =\u003e {\n    builtObject.doSomething(); // Use it directly 🎉\n  })\n```\n\nOr even this...\n\n```javascript\nconst builtObject = await http.get('/some-url-that-returns-an-object').as(YourClass)\nbuiltObject.doSomething();\n```\n\n## How?\n\nIntroducing **tapi**, a tiny TypeScript package used to define how to interpret any given API response as a typed object.\n\nIt **automatically** converts JSON objects into TypeScript class instances, however you can still configure it however you want with *Aliases*, *Transformers*, *Mappers* and more.\n\n___\n\n\u003cdiv align=\"center\"\u003e\n\n### **[🚀 Get started 🚀](https://tapi.js.org)**\n\n\u003c/div\u003e\n\n___\n\n## More info\n\n📦 [Check it out on **npm**](https://npm.im/tapi.js)\n\n🦕 [Check it out on **deno**](https://deno.land/x/tapi)\n\n😱 [Check it out on **Bundlephobia**](https://bundlephobia.com/package/tapi.js@latest)\n\n☁ [Use directly from the browser](https://cdn.jsdelivr.net/npm/tapi.js/)\n\n📚 [Additional info on the file on **libraries.io**](https://libraries.io/npm/tapi.js)\n\n## Big thanks to anyone who contributes!\n\n**You** could be here! Just follow the [**contributor's guide**](CONTRIBUTING.md).\n\n👇\n\n![Contributors](https://contrib.rocks/image?repo=sinisimattia/tapi)\n___\n\nThanks for using **tapi**! 😊 I hope it's been useful to you in some way.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinisimattia%2Ftapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsinisimattia%2Ftapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsinisimattia%2Ftapi/lists"}