{"id":19343264,"url":"https://github.com/swashcap/cloudkit-js-demo","last_synced_at":"2026-03-19T09:23:32.940Z","repository":{"id":149576122,"uuid":"183155522","full_name":"swashcap/cloudkit-js-demo","owner":"swashcap","description":"A look at CloudKit JS","archived":false,"fork":false,"pushed_at":"2019-04-24T23:20:12.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T09:17:12.458Z","etag":null,"topics":["cloudkit","cloudkit-js"],"latest_commit_sha":null,"homepage":null,"language":null,"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/swashcap.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-04-24T05:39:00.000Z","updated_at":"2024-09-12T05:58:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"8108c266-3dae-4e6a-bcd9-87b6c9e6e49f","html_url":"https://github.com/swashcap/cloudkit-js-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/swashcap/cloudkit-js-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fcloudkit-js-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fcloudkit-js-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fcloudkit-js-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fcloudkit-js-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swashcap","download_url":"https://codeload.github.com/swashcap/cloudkit-js-demo/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swashcap%2Fcloudkit-js-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29969245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T11:43:06.159Z","status":"ssl_error","status_checked_at":"2026-03-01T11:43:03.887Z","response_time":124,"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":["cloudkit","cloudkit-js"],"created_at":"2024-11-10T03:37:52.573Z","updated_at":"2026-03-01T12:33:58.066Z","avatar_url":"https://github.com/swashcap.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# cloudkit-js-demo\n\n_A look at CloudKit JS_\n\n## Motivation\n\nI use the iOS Notes app to scribble thoughts and lists and the iOS Reminders app for ToDos. Can the CloudKit Notes/Reminders backend-as-a-service power custom web applications or integrate with other web services?\n\n**Update:** CloudKit JS doesn’t appear to offer a way to access Notes or Reminders via an API.\n\n## Links\n\n* [CloudKit JS homepage](https://developer.apple.com/documentation/cloudkitjs)\n* [CloudKit Quick Start](https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitQuickStart/Introduction/Introduction.html#//apple_ref/doc/uid/TP40014987)\n\n## Initial Thoughts\n\n* Under the “Before You Begin” section:\n\n    \u003e [C]reate an iOS or Mac app that uses CloudKit to store your app’s data.\n\n    — https://developer.apple.com/documentation/cloudkitjs\n\n    A developer must create a iOS or macOS app before using CloudKit JS?\n* [“cloudkit” on npmjs.com](https://www.npmjs.com/package/cloudkit) doesn’t appear to be an official package. Searching for “cloudkit” on npmjs.com [doesn’t yield many results](https://www.npmjs.com/search?q=cloudkit).\n* There's no open CloudKit JS code on the [github.com/apple org](https://github.com/apple).\n* The CloudKit JS library appears to be browser-only, and only available via Apple’s hosted script:\n\n    \u003e Embed CloudKit JS in your webpage using the `script` tag and link to Apple’s hosted version of CloudKit JS at `https://cdn.apple-cloudkit.com/ck/2/cloudkit.js`.\n    \u003e\n    \u003e ```\n    \u003e \u003cscript src=\"https://cdn.apple-cloudkit.com/ck/2/cloudkit.js\"\u003e\n    \u003e ```\n\n    — https://developer.apple.com/documentation/cloudkitjs\n* [tsl-apple-cloudkit exists on typescriptlibs.org](https://typescriptlibs.org/tsl-apple-cloudkit/), but the source is untrustworthy.\n* [Questions for “cloudkit” and “javascript” on stackoverflow.com](https://stackoverflow.com/questions/tagged/cloudkit+javascript) don’t yield many results (similar for [“cloudkit-js”](https://stackoverflow.com/search?q=cloudkit-js) and [“cloudkit-web-services”](https://stackoverflow.com/questions/tagged/cloudkit-web-services))\n* CloudKit sounds like a service over [CouchDB](http://couchdb.apache.org):\n\n    \u003e An app has access to both a public and private database in each container. The _public database_ is for storing user and app data that is shared between all instances of the app…There’s a _private database_ for each user of your app, but the app only has access to the private database of the current user.\n\n    — [“Enabling CloudKit in Your App” on developer.apple.com](https://developer.apple.com/library/archive/documentation/DataManagement/Conceptual/CloudKitQuickStart/EnablingiCloudandConfiguringCloudKit/EnablingiCloudandConfiguringCloudKit.html#//apple_ref/doc/uid/TP40014987-CH2-SW1)\n\n* Many of the [developer.apple.com](https://developer.apple.com/documentation/) pages for CloudKit JS have a “this page no longer updated” message at the top.\n* The [“CloudKit Catalog: An Introduction to CloudKit (Cocoa and JavaScript)”](https://developer.apple.com/library/archive/samplecode/CloudAtlas/Introduction/Intro.html#//apple_ref/doc/uid/TP40014599) is very outdated (“Version 6.0, 2016-09-13”) and contains an example with Node.js antipatterns and aged front-end web practices.\n* The [CloudKit JS API documentation](https://developer.apple.com/documentation/cloudkitjs/cloudkit) is a little weird:\n    * The sections include “Classes,” “Constants,” “Enumerations,” “Structures,” and [pages refer to types as “dictionary”](https://developer.apple.com/documentation/cloudkitjs/cloudkit/record)…this sounds like a native library!\n    * Method documentation pages [don’t include links to return types](https://developer.apple.com/documentation/cloudkitjs/cloudkit/1628647-getdefaultcontainer); in some cases [the return type isn’t named](https://developer.apple.com/documentation/cloudkitjs/cloudkit/container/1773251-getdatabasewithdatabasescope).\n    * [`Promise`](https://developer.apple.com/documentation/cloudkitjs/cloudkit/1628514-promise) is a property? Modern browsers and Node.js have this as a native object.\n    * Some classes appear to [expose a property to identify their type](https://developer.apple.com/documentation/cloudkitjs/cloudkit/useridentitiesresponse#topics), which is a little un-JavaScript-y (prefer `instanceof` or clearer data structures).\n* CloudKit doesn’t seem to provide an API to Notes nor Reminders: a [stackoverflow.com answer](https://stackoverflow.com/a/53289466) indicates that accessing via the web for a server is impossible.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswashcap%2Fcloudkit-js-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswashcap%2Fcloudkit-js-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswashcap%2Fcloudkit-js-demo/lists"}