{"id":37689950,"url":"https://github.com/cosanlab/trust-game","last_synced_at":"2026-01-16T12:40:35.473Z","repository":{"id":89123048,"uuid":"591070919","full_name":"cosanlab/trust-game","owner":"cosanlab","description":"Interactive 2-player trust game demo","archived":false,"fork":false,"pushed_at":"2023-01-29T17:26:47.000Z","size":304,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-10T05:45:49.196Z","etag":null,"topics":["firebase","svelte","tailwind","trust-game"],"latest_commit_sha":null,"homepage":"https://trust-game-demo.netlify.app","language":"Svelte","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/cosanlab.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-01-19T21:23:09.000Z","updated_at":"2023-06-17T06:16:31.000Z","dependencies_parsed_at":"2023-06-25T22:55:12.804Z","dependency_job_id":null,"html_url":"https://github.com/cosanlab/trust-game","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cosanlab/trust-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosanlab%2Ftrust-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosanlab%2Ftrust-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosanlab%2Ftrust-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosanlab%2Ftrust-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cosanlab","download_url":"https://codeload.github.com/cosanlab/trust-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cosanlab%2Ftrust-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28478720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-16T11:59:17.896Z","status":"ssl_error","status_checked_at":"2026-01-16T11:55:55.838Z","response_time":107,"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":["firebase","svelte","tailwind","trust-game"],"created_at":"2026-01-16T12:40:35.406Z","updated_at":"2026-01-16T12:40:35.466Z","avatar_url":"https://github.com/cosanlab.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Trust Game Demo\n\n\nThis is a webapp that runs a mock interactive Trust Game between 2 people. It's built using:\n- [SvelteJS](https://svelte.dev/) as an intuitive javascript framework for layout and logic\n- [TailwindCSS](https://tailwindcss.com/) for styling\n- [Firebase](https://firebase.google.com/) for server-less data storage (and real-time updates)\n- [Netlify](https://www.netlify.com/) for automatic deploying and hosting from github\n\n\n## Trial Phase schematic\n\n1. Investor receives endowment and makes decision; Trustee sees endowment make prediction rating.\n2. Investor makes 1st order expectation rating; Trustee make prediction rating and 2nd order expectation rating\n3. Trustee makes decision\n4. Both see trial outcome\n5. Both rate how guilty they feel given partner's expectation as well as give counterfactual guilt rating\n6. Fixation\n\n\n### One time CORS configuration\n\nIn order to actually make any stored/static files (i.e. mp3s, videos, etc) accessible by the app you must set the [CORS access policy](https://cloud.google.com/storage/docs/configuring-cors) on google cloud:\n\n1. Download [gsutil](https://cloud.google.com/storage/docs/gsutil_install) \n2. Unzip it, `cd` into the unzipped folder, and run: `install.sh`\n3. Then run `gcloud init` and login with the same google account you used to create your firebase project\n4. Create a file called `cors.json` that contains the following:\n  ```\n    [\n      {\n        \"origin\": [\"*\"],\n        \"method\": [\"GET\"],\n        \"maxAgeSeconds\": 3600\n      }\n    ]\n  ```\n  5. Find your google storage URL which should be something like `gs://yourproject.appspot.com`\n  6. Run `gsutil cors set cors.json yourURL` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosanlab%2Ftrust-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcosanlab%2Ftrust-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcosanlab%2Ftrust-game/lists"}