{"id":27699905,"url":"https://github.com/swing-xyz/examples","last_synced_at":"2025-04-25T17:35:07.246Z","repository":{"id":73111429,"uuid":"587427643","full_name":"swing-xyz/examples","owner":"swing-xyz","description":"Example templates using the Swing API, SDK, and Widget","archived":false,"fork":false,"pushed_at":"2025-01-17T06:09:01.000Z","size":8649,"stargazers_count":14,"open_issues_count":3,"forks_count":12,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-02T11:05:15.289Z","etag":null,"topics":["bridge","bridge-aggregation","cross-chain","dapp","defi","examples","nextjs","react","swing","templates","typescript","web3"],"latest_commit_sha":null,"homepage":"https://examples.swing.xyz","language":"TypeScript","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/swing-xyz.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":"2023-01-10T18:19:49.000Z","updated_at":"2025-02-27T15:18:21.000Z","dependencies_parsed_at":"2023-12-18T22:22:17.355Z","dependency_job_id":"54e8beae-235a-4b14-91ee-9a3c44c6fddc","html_url":"https://github.com/swing-xyz/examples","commit_stats":null,"previous_names":["swing-xyz/examples","polkaswitch/examples"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swing-xyz%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swing-xyz%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swing-xyz%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swing-xyz%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swing-xyz","download_url":"https://codeload.github.com/swing-xyz/examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248542903,"owners_count":21121826,"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","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":["bridge","bridge-aggregation","cross-chain","dapp","defi","examples","nextjs","react","swing","templates","typescript","web3"],"created_at":"2025-04-25T17:35:06.638Z","updated_at":"2025-04-25T17:35:07.238Z","avatar_url":"https://github.com/swing-xyz.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://examples.swing.xyz\"\u003e\n    \u003cpicture\u003e\n      \u003cimg src=\"./apps/directory/public/directory-landing.png\" height=\"300\" style=\"border-radius:10px;\"\u003e\n    \u003c/picture\u003e\n    \u003ch1 align=\"center\"\u003eSwing Example Templates\u003c/h1\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003eKickstart your Swing integration with ready-to-ship repositories.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca aria-label=\"Examples Website\" href=\"https://examples.swing.xyz\"\u003e\n    \u003cimg alt=\"Examples Website\" src=\"https://img.shields.io/badge/Examples%20Directory-000000.svg?style=for-the-badge\u0026labelColor=000\"\u003e\n  \u003c/a\u003e\n  \u003ca aria-label=\"Swing Developers Website\" href=\"https://developers.swing.xyz\"\u003e\n    \u003cimg alt=\"Swing Developers Website\" src=\"https://img.shields.io/badge/Developer%20Docs-000000.svg?style=for-the-badge\u0026labelColor=000\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n## Documentation\n\nLooking for the documentation? https://developers.swing.xyz\n\n## Getting started\n\nFirst choose one of the [examples](#examples).\n\nInstall the NPM dependencies:\n\n```bash\nyarn install\n```\n\nRun the development server for a specific example:\n\n```bash\nyarn dev --filter=swaps-widget-nextjs\n```\n\nFinally, open the example http://localhost:3000\n\n## Examples\n\n\u003e Have an idea for a template? Please [create a pull request](https://github.com/swing-xyz/examples/pulls) or [request one](https://github.com/swing-xyz/examples/issues/new).\n\n### Swaps\n\n- [swaps-widget-nextjs](./examples/swaps-widget-nextjs/README.md) - Cross-chain Swaps using the Widget in **Next.js App Router**\n- [swaps-widget-nextjs-pages](./examples/swaps-widget-nextjs-pages/README.md) - Cross-chain Swaps using the Widget in **Next.js Pages Router**\n- [swaps-sdk-nextjs](./examples/swaps-sdk-nextjs/README.md) - Cross-chain Swaps using the SDK in Next.js\n- [swaps-sdk-nextjs-web3-react](./examples/swaps-sdk-nextjs-web3-react/README.md) - Cross-chain Swaps using Swing's SDK and Web3-react library in Next JS\n- [swaps-sdk-nextjs-thirdweb-embedded-wallet](./examples/swaps-sdk-nextjs-thirdweb-embedded-wallet/README.md) - Cross-chain Swaps using Swing's SDK and thirdweb's embedded wallet SDK in Next JS\n- [swaps-api-nextjs-bitcoin](./examples/swaps-api-nextjs-bitcoin/README.md) - Cross-chain native Swaps between the Ethereum and Bitcoin networks using Swing's API and thirdweb's SDK in Next JS\n- [swaps-api-nextjs](./examples/swaps-api-nextjs/README.md) - Cross-chain Swaps using the Swing API in Next.js\n- [swaps-api-nextjs-solana](./examples/swaps-api-nextjs-solana/README.md) - Solana \u003c\u003e EVM Cross-chain Swaps using the Swing API in Next.js\n- [swaps-api-nextjs-tron](./examples/swaps-api-nextjs-tron/README.md) - Tron \u003c\u003e EVM Cross-chain Swaps using the Swing API in Next.js\n- [swaps-widget-webpack](./examples/swaps-widget-webpack/README.md) - Cross-chain Swaps using the Widget with Webpack\n- [swaps-widget-angular](./examples/swaps-widget-angular/README.md) - Cross-chain Swaps using the Widget in Angular\n\n### Staking\n\n- [staking-widget-nextjs](./examples/staking-widget-nextjs/README.md) - Cross-chain Staking using the Widget in Next.js\n- [staking-sdk-nextjs](./examples/staking-sdk-nextjs/README.md) - Cross-chain Staking using the SDK in Next.js\n- [staking-api-nextjs](./examples/staking-api-nextjs/README.md) - Cross-chain Staking using the Swing API in Next.js\n\n### Withdraw\n\n- [withdraw-widget-nextjs](./examples/withdraw-widget-nextjs/README.md) - Cross-chain Withdraw using the Widget in Next.js\n\n### Gas\n\n- [gas-widget-nextjs](./examples/gas-widget-nextjs/README.md) - Cross-chain Gas Refill using the Widget in Next.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswing-xyz%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswing-xyz%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswing-xyz%2Fexamples/lists"}