{"id":20957482,"url":"https://github.com/cottrellio/aurelia-orbit-poc","last_synced_at":"2025-07-24T18:17:41.645Z","repository":{"id":78365726,"uuid":"99071746","full_name":"cottrellio/aurelia-orbit-poc","owner":"cottrellio","description":"Implements OrbitJS into an AureliaJS app for JSON-API support (proof of concept)","archived":false,"fork":false,"pushed_at":"2017-08-03T07:37:17.000Z","size":24,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T06:40:42.283Z","etag":null,"topics":[],"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/cottrellio.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":"2017-08-02T04:22:12.000Z","updated_at":"2017-08-29T19:27:22.000Z","dependencies_parsed_at":"2023-03-23T00:32:15.110Z","dependency_job_id":null,"html_url":"https://github.com/cottrellio/aurelia-orbit-poc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cottrellio/aurelia-orbit-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cottrellio%2Faurelia-orbit-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cottrellio%2Faurelia-orbit-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cottrellio%2Faurelia-orbit-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cottrellio%2Faurelia-orbit-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cottrellio","download_url":"https://codeload.github.com/cottrellio/aurelia-orbit-poc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cottrellio%2Faurelia-orbit-poc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266886031,"owners_count":24001046,"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-07-24T02:00:09.469Z","response_time":99,"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":[],"created_at":"2024-11-19T01:33:57.620Z","updated_at":"2025-07-24T18:17:41.593Z","avatar_url":"https://github.com/cottrellio.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aurelia-orbit-poc\n\nThis is a quick and dirty proof of concept for using [OrbitJS](orbitjs.com) in an [AureliaJS](aurelia.io) app as a data layer for requesting/ managing JSON API data.\n\n## Get it running\n\n1. Clone it\n2. run `npm install` in the root\n3. run `npm start` (it's built from the esnext webpack skeleton).\n\n## OrbitJS Usage\n\n### tl;dr\n\nI'm using the store as the main source with an indexedDB source as the backup. It also uses a indexedDB bucket (so you can inspect the dev tools and see your datas). Finally, it uses JSONAPIsource as the remote source which handles all of the requests. There is a coordinator that hooks into requests/updates on the store and synce both the remote source as well as the backup.\n\nI just followed the \"Getting Started\" section on [orbitjs.com](http://orbitjs.com/v0.15/guide/getting-started.html). Check it out for a more detailed explanation.\n\n## Highlights\n\n+ You should put the store in a service so you can use it throughout your app.\n+ set Orbit.fetch to use the http-fetch-client.fetch\n```javascript\nimport { HttpClient } from 'aurelia-fetch-client';\nimport Orbit from '@orbit/core';\n\n...\n\nconst client = new HttpClient();\n\n// Use http-fetch-client.\nOrbit.fetch = client.fetch;\n```\n+ Remember to delete the `IndexedDB` databases as you make changes to the code.\n\n## Special Thanks\n\n+ Thanks to [Rob Eisenberg](https://github.com/EisenbergEffect) and friends for building AureliaJS!\n+ Thanks to [Dan Gebhardt](https://github.com/dgeb) and friends for buidling OrbitJS!\n\nHope this helps someone :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcottrellio%2Faurelia-orbit-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcottrellio%2Faurelia-orbit-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcottrellio%2Faurelia-orbit-poc/lists"}