{"id":20570145,"url":"https://github.com/holepunchto/filesharing-react-app-example","last_synced_at":"2026-01-27T21:00:41.502Z","repository":{"id":222977316,"uuid":"722999966","full_name":"holepunchto/filesharing-react-app-example","owner":"holepunchto","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-25T20:32:36.000Z","size":174,"stargazers_count":24,"open_issues_count":5,"forks_count":6,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-11-29T01:38:14.546Z","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/holepunchto.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}},"created_at":"2023-11-24T12:49:49.000Z","updated_at":"2025-10-28T02:29:32.000Z","dependencies_parsed_at":"2024-06-24T10:47:58.042Z","dependency_job_id":"40ba9236-7207-4ba2-891b-8d1f8543e839","html_url":"https://github.com/holepunchto/filesharing-react-app-example","commit_stats":null,"previous_names":["holepunchto/filesharing-react-app-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/holepunchto/filesharing-react-app-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holepunchto%2Ffilesharing-react-app-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holepunchto%2Ffilesharing-react-app-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holepunchto%2Ffilesharing-react-app-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holepunchto%2Ffilesharing-react-app-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/holepunchto","download_url":"https://codeload.github.com/holepunchto/filesharing-react-app-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/holepunchto%2Ffilesharing-react-app-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28822911,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-16T05:11:36.935Z","updated_at":"2026-01-27T21:00:41.420Z","avatar_url":"https://github.com/holepunchto.png","language":"JavaScript","funding_links":[],"categories":["**Awesome Pears 🍐**"],"sub_categories":["Pears"],"readme":"# filesharing-react-app-example\n\nThis example app shows how to build a simple file sharing app where all files are shared between everyone who use the app.\n\nTo read more details about how to use Pear, read the [Getting Started guide](https://docs.pears.com/guides/getting-started).\n\n## How to run\n\n[Pear](https://docs.pears.com/guides/getting-started) is a prerequisite, which can be installed with `npm i -g pear`.\n\n```\n$ git clone https://github.com/holepunchto/filesharing-react-app-example.git\n$ cd filesharing-react-app-example\n$ npm install \n$ pear run .\n```\n\nWhen a Pear app runs, it uses a local storage that's the same for all instances. To test the file sharing app, it would be good run multiple instances that looks different. To do that, use the `--store/-s` parameter for `pear`.\n\nIn one terminal:\n\n```\n$ pear run -s /tmp/fs1 .\n```\n\nIn another terminal:\n\n```\n$ pear run -s /tmp/fs2 .\n```\n\n## How to release\n\nWhen a Pear app is released, it can be run by others. Read more about this in this [guide](https://docs.pears.com/guides/sharing-a-pear-app). The details won't be in this section, but just commands to run.\n\n```\n$ pear stage foo    # Stage the local version to a key called \"foo\"\n$ pear release foo  # Release the staged version of \"foo\"\n$ pear seed foo     # Start seeding (sharing) the app\n```\n\nWhen running `pear seed` there will be output similar to\n\n```\n-o-:-\n    pear://a1b2c3...\n...\n^_^ announced\n```\n\nThis link can be shared with others.\n\nTo run the app, do this (in another terminal):\n\n```\n$ pear run pear://a1b2c3...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholepunchto%2Ffilesharing-react-app-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fholepunchto%2Ffilesharing-react-app-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fholepunchto%2Ffilesharing-react-app-example/lists"}