{"id":15944064,"url":"https://github.com/matthieu-rolland/cloudjson","last_synced_at":"2026-04-15T12:39:50.777Z","repository":{"id":96448862,"uuid":"132751601","full_name":"matthieu-rolland/cloudjson","owner":"matthieu-rolland","description":"Allows you to programmatically post/get/update json data online, easily and for free.","archived":false,"fork":false,"pushed_at":"2018-06-12T14:58:26.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T13:35:18.417Z","etag":null,"topics":["json","json-api","json-data","json-server","myjson","myjson-api"],"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/matthieu-rolland.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":"2018-05-09T12:10:50.000Z","updated_at":"2018-06-12T14:58:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"3fe437d1-2fa0-4214-a9eb-d2a43c7fccc5","html_url":"https://github.com/matthieu-rolland/cloudjson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/matthieu-rolland/cloudjson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthieu-rolland%2Fcloudjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthieu-rolland%2Fcloudjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthieu-rolland%2Fcloudjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthieu-rolland%2Fcloudjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matthieu-rolland","download_url":"https://codeload.github.com/matthieu-rolland/cloudjson/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matthieu-rolland%2Fcloudjson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T11:29:19.690Z","status":"ssl_error","status_checked_at":"2026-04-15T11:29:19.171Z","response_time":63,"last_error":"SSL_read: 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":["json","json-api","json-data","json-server","myjson","myjson-api"],"created_at":"2024-10-07T08:21:02.247Z","updated_at":"2026-04-15T12:39:50.739Z","avatar_url":"https://github.com/matthieu-rolland.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CLOUDJSON\n\n[![Build Status](https://travis-ci.org/breizoreol/cloudjson.svg?branch=master)](https://travis-ci.org/breizoreol/cloudjson) \n![alt npm](https://img.shields.io/npm/dt/cloudjson.svg)\n\ncloudjson is a simple module that allows you to programmatically post/get/update json data online, using the api of a free service called [MyJson](http://myjson.com/).\n\n## Why would I need this?\nThis module is useful if you need to quickly store json data online, for a proof of concept project, or any not so long term project that must be done fast.\n\n## Usage\n\n### Post data\n\n```javascript\nconst cloudJson = require('cloudjson');\nvar jsonData = {'foo' : 'bar', 'foo2' : 'bar2'};\n\n// post json online (will return the url from which you'll be able to fetch your data)\ncloudjson.post(jsonData).then(function(result){\n\t// result contains the url\n});\n\n// optionnaly, you can specify a password to encrypt the data you push online\nvar password = 'myPassword';\ncloudjson.post(jsonData, password).then(function(result){\n\t// result contains the url\n});\n```\nFrom here, examples will be shown using async/await instead of 'then', implying that you are inside an async function, all methods can be used in both manners, since they all return a promise.\n### Fetch Data\n```javascript\n// to fetch data you've precedently posted, you need the previously given url\nvar myData = await cloudjson.get(jsonUrl);\n\n// if you encrypted the data when you posted it, specify its password to decrypt it:\nvar myData = await cloudjson.get(jsonUrl, password);\n````\n### Update data\n```javascript\n// to update data, you need the url of the previously created json\nvar updatedData = await cloudjson.update(newJsonData, jsonUrl);\n\n// if your json was encrypted, specify the password\nvar updatedData = await cloudjson.update(newJsonData, jsonUrl, password);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthieu-rolland%2Fcloudjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatthieu-rolland%2Fcloudjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatthieu-rolland%2Fcloudjson/lists"}