{"id":23662788,"url":"https://github.com/monagoio/monagojs","last_synced_at":"2025-08-26T09:20:20.351Z","repository":{"id":37028393,"uuid":"483361556","full_name":"monagoio/monagojs","owner":"monagoio","description":"SDK for monago platform, help developers to create and consume apis without managing the fullcode and its infrastructure","archived":false,"fork":false,"pushed_at":"2025-03-25T06:54:21.000Z","size":705,"stargazers_count":5,"open_issues_count":8,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-02T21:51:20.290Z","etag":null,"topics":["api","api-generator","cms","dashboard","erp","headless-cms","monagojs","mongodb","mysql","rest"],"latest_commit_sha":null,"homepage":"https://monago.io","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monagoio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-19T18:20:17.000Z","updated_at":"2023-03-31T15:32:57.000Z","dependencies_parsed_at":"2023-02-08T07:01:41.841Z","dependency_job_id":"154a287e-b982-4e81-801c-10c9f2c1c8e1","html_url":"https://github.com/monagoio/monagojs","commit_stats":{"total_commits":63,"total_committers":3,"mean_commits":21.0,"dds":0.5555555555555556,"last_synced_commit":"12c595e32848c70c80a8b3f2e10460ba1005c966"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/monagoio/monagojs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monagoio%2Fmonagojs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monagoio%2Fmonagojs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monagoio%2Fmonagojs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monagoio%2Fmonagojs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monagoio","download_url":"https://codeload.github.com/monagoio/monagojs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monagoio%2Fmonagojs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272202220,"owners_count":24891168,"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","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","api-generator","cms","dashboard","erp","headless-cms","monagojs","mongodb","mysql","rest"],"created_at":"2024-12-29T05:13:44.287Z","updated_at":"2025-08-26T09:20:20.309Z","avatar_url":"https://github.com/monagoio.png","language":"TypeScript","readme":"# MonagoJS - ⚡ Fast And Customized APIs Library From Monago.io\n\n[![Maintainability Rating](https://sonarqube.monago.io/api/project_badges/measure?project=monagoio_monagojs_AYK1U5X5gSsHaZNf2KXx\u0026metric=sqale_rating\u0026token=ca1d4cb7900cd7b5427000373f3e562b0d8d60ad)](https://sonarqube.monago.io/dashboard?id=monagoio_monagojs_AYK1U5X5gSsHaZNf2KXx)\n[![Reliability Rating](https://sonarqube.monago.io/api/project_badges/measure?project=monagoio_monagojs_AYK1U5X5gSsHaZNf2KXx\u0026metric=reliability_rating\u0026token=ca1d4cb7900cd7b5427000373f3e562b0d8d60ad)](https://sonarqube.monago.io/dashboard?id=monagoio_monagojs_AYK1U5X5gSsHaZNf2KXx)\n[![npm version](https://img.shields.io/npm/v/@monagoio/monagojs.svg?style=flat-square)](https://www.npmjs.org/package/@monagoio/monagojs) \n[![npm downloads](https://img.shields.io/npm/dm/@monagoio/monagojs.svg?style=flat-square)](https://npm-stat.com/charts.html?package=@monagoio/monagojs)\n\nSDK for monago platform, help developers to create and consume apis without managing the fullcode and its infrastructure\n\n**Note**: This library is only meant for usage from server-side with Monago secret API key.\nFor PCI compliance to be maintained, tokenization of apis url info should be done on client side with monago dashboard.\n\n## Usage\n\nFirst, you need to install the library\n\n```bash\n$ npm install @monagoio/monagojs\n```\nor\n\n```bash\n$ yarn add @monagoio/monagojs\n```\n\nThen, you create a project through Monago dashboard to get a **secretKey** to grant the access for the client application.\n\n```js\nimport { MonagoClient } from '@monagoio/monagojs'\n\nconst client = new MonagoClient({\n  secretKey: \"*******\"\n})\n```\n\n## How to Use\nThere are basic usages for developers to leverage Monago SDK such as register, login, create, read, update, delete. Remember, define you model and data through Monago dashboard. \n\n### Example\n\n#### Register \nTo use **register** function, you can pass your data such as below.\n\n``` js\nclient.register({ email: \"monago@example.com\", name : \"monago\", password: \"pass\" })\n\n```\n\n#### Login \nTo use **login** function, you can pass your data such as below.\n\n``` js\nclient.login({ email : \"monago\", password: \"pass\" })\n\n```\n\n#### Create \nTo use **create** function, you can pass your data such as below.\n\n``` js\nclient.post({ url: \"/todos\", data: {\n    \"name\": \"Build an app\",\n    \"description\": \"Awesome apps ready to be released\",\n    \"date\": \"2022-05-18T08:51:52.031Z\"\n}})\n\n```\n\n#### Read All\nTo use **read all** function, you can write the code such as below.\n\n``` js\nclient.get({ url: \"/todos\", params: {\n    \"page\": 1,\n    \"limit\": 10,\n    \"orderby\": \"date\"\n}})\n\n```\nBut, it depends whether you check the pagination option when you create the data model. If you uncheck the pagination, you can delete the params.\n\n#### Read Detail\nTo use **read** function, you can write the code such as below.\n\n``` js\nclient.get({ url: \"/todos/:id\" })\n\n```\n\n#### Update \nTo use **update** function, you can pass your data such as below.\n\n```js\nclient.put({ url: \"/todos/:id\", data: {\n    \"name\": \"[Postponed] Build an app\",\n    \"description\": \"Awesome apps ready to release\",\n    \"date\": \"2022-06-18T08:51:52.031Z\"\n}})\n\n```\n\n#### Delete \nTo use **delete** function, you can write the code such as below.\n\n``` js\nclient.delete({ url: \"/todos/:id\" })\n\n```\n\nRemember, the URL depends on the model that you've defined.\n\n#### Upload \nTo use **upload** function, you can write the code such as below.\n\n``` js\nclient.upload({ url: \"/upload\" (optional), file, /folder/nama_file(optional)})\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonagoio%2Fmonagojs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonagoio%2Fmonagojs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonagoio%2Fmonagojs/lists"}