{"id":19379552,"url":"https://github.com/hercules2013/react-web3-app","last_synced_at":"2026-05-16T10:32:30.865Z","repository":{"id":222851867,"uuid":"758174717","full_name":"Hercules2013/react-web3-app","owner":"Hercules2013","description":"Test project that uses react and web3","archived":false,"fork":false,"pushed_at":"2024-02-21T14:53:41.000Z","size":993,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T16:34:18.405Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://react-web3-app-phi.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hercules2013.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":"2024-02-15T19:13:19.000Z","updated_at":"2024-02-20T14:39:21.000Z","dependencies_parsed_at":"2024-11-10T09:10:35.048Z","dependency_job_id":"25a89276-4864-45cc-bdff-26d3a26a40b3","html_url":"https://github.com/Hercules2013/react-web3-app","commit_stats":null,"previous_names":["hercules2013/react-web3-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hercules2013/react-web3-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hercules2013%2Freact-web3-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hercules2013%2Freact-web3-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hercules2013%2Freact-web3-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hercules2013%2Freact-web3-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hercules2013","download_url":"https://codeload.github.com/Hercules2013/react-web3-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hercules2013%2Freact-web3-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33098793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-10T09:10:32.352Z","updated_at":"2026-05-16T10:32:30.848Z","avatar_url":"https://github.com/Hercules2013.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This is a [Create React App](https://create-react-app.dev/) project bootstrapped with [`create-react-app`](https://create-react-app.dev/docs/getting-started) to showcase how to integrate the @uniswap/widgets package in your own projects. It uses react-scripts@5.0.0.\n\n## widgets-cra5\n\n![Uniswap Widgets](uniswap-widgets.png)\n\n---\n\nTo start the demo:\n\n```bash\nyarn          # install dependencies\nyarn start    # run the development server\n# or\nnpm           # install dependencies\nnpm run start # run the development server\n```\n\nNavigate to [http://localhost:3000](http://localhost:3000) to see the widget.\n\n---\n\nThe `SwapWidget` component is passed everything it needs to render:\n\n- `jsonRpcEndpoint`: a JSON-RPC endpoint, or an `@ethersproject` `JsonRpcProvider`; in this case \"https://cloudflare-eth.com\"\n- `tokenList`: a TokenList; in this case \"https://gateway.ipfs.io/ipns/tokens.uniswap.org\"\n- `provider`: an EIP1193 Provider, or an `@ethersproject` `JsonRpcProvider`; in this case from `connectors.ts`\n\nIn addition, it is passed these optional props to flesh out the demo:\n\n- `locale`: the locale in which to render, in this case \"en-US\"\n- `onConnectWallet`: a callback to invoke when a user clicks \"Connect your wallet\"\n- `defaultInputTokenAddress`: the default input token address, or \"NATIVE\" for Ether\n- `defaultInputAmount`: the default input token amount\n- `defaultOutputTokenAddress`: the default output token amount, in this case the address of the Uniswap (UNI) token\n\nFor all available props (including theming), refer to the documentation at https://docs.uniswap.org/sdk/widgets/swap-widget.\n\n### Passing a provider\n\nThis project uses [@web3-react](https://github.com/NoahZinsmeister/web3-react) to connect to an Ethereum Provider. The demo uses both MetaMask and WalletConnect. See `src/components/Web3Connectors.tsx`.\n\nThe `SwapWidget` component will accept any EIP1193 Provider or `@ethersproject` `JsonRpcProvider`, so you are not limited to using `@web3-react`. If you _do_ use a `JsonRpcProvider`, you can pass it in the same way, to the widget's `provider` prop.\n\n### Localization\n\nThe `SwapWidget` component will render in whichever supported locale is passed to the `locale` prop. The demo uses en-US, but includes a selector to demonstrate additional locales.\n\n### Known issues with Create React App\n\n- Many dependencies have not updated to support sourcemaps for CRA. To get around this, you can disable sourcemaps by setting GENERATE_SOURCEMAP=false, either when you run the script or in your .env file.\n\n- CRAv4 must use different import path for fonts. To import the widget using CRAv4:\n\n      import { SwapWidget } from '@uniswap/widgets/index.js'\n      import '@uniswap/widgets/dist/fonts.css'\n\n### Additional documentation\n\n- [What is Uniswap](https://docs.uniwap.org/)\n  Learn about the Uniswap Protocol and available SDKs.\n\n- [Swap Widget Docs](https://docs.uniswap.org/sdk/widgets/swap-widget)\n  Explore the Swap Widget's features and API.\n\n- [Discord](https://discord.gg/ybKVQUWb4s)\n  Hop into #widgets for realtime help.\n\n- [GitHub](https://github.com/Uniswap/interface/blob/main/src/lib/index.tsx)\n  View the Swap Widget's source.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhercules2013%2Freact-web3-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhercules2013%2Freact-web3-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhercules2013%2Freact-web3-app/lists"}