{"id":43933305,"url":"https://github.com/stakekit/perps-widget","last_synced_at":"2026-02-07T00:20:02.304Z","repository":{"id":334246520,"uuid":"1134305089","full_name":"stakekit/perps-widget","owner":"stakekit","description":"Self-custodial perps trading widget built with React, Effect-ts, and Yield.xyz Perps API","archived":false,"fork":false,"pushed_at":"2026-01-30T14:39:56.000Z","size":987,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-31T07:40:26.562Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://perps-widget.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stakekit.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-14T14:39:21.000Z","updated_at":"2026-01-30T14:39:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/stakekit/perps-widget","commit_stats":null,"previous_names":["stakekit/perps-widget"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stakekit/perps-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakekit%2Fperps-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakekit%2Fperps-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakekit%2Fperps-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakekit%2Fperps-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stakekit","download_url":"https://codeload.github.com/stakekit/perps-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stakekit%2Fperps-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29181340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T23:15:33.022Z","status":"ssl_error","status_checked_at":"2026-02-06T23:15:09.128Z","response_time":59,"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":[],"created_at":"2026-02-07T00:20:01.662Z","updated_at":"2026-02-07T00:20:02.285Z","avatar_url":"https://github.com/stakekit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Perps Widget\n\nA self-custodial perpetual futures trading widget built with React. Trade perpetual contracts on Hyperliquid with full control of your assets.\n\n## Features\n\n- **Perpetual Trading**: Open long and short positions with customizable leverage\n- **Multiple Order Types**: Market and limit orders supported\n- **Risk Management**: Take profit and stop loss (TP/SL) orders\n- **Position Management**: Increase, decrease, or close positions\n- **Wallet Integration**: Connect via WalletConnect (Reown AppKit)\n- **Real-time Data**: Live market prices and portfolio updates\n- **Embeddable Widget**: Compact 400×600px design perfect for embedding\n\n## Tech Stack\n\n- **React 19** with React Compiler\n- **TanStack Router** for file-based routing\n- **Effect** for functional error handling and services\n- **Tailwind CSS v4** for styling\n- **Viem + Wagmi** for Ethereum interactions\n- **Reown AppKit** for wallet connections\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js 20+\n- pnpm 9+\n\n### Installation\n\n```bash\npnpm install\n```\n\n### Environment Variables\n\nCopy `.env.example` to `.env` and fill in your values:\n\n```bash\ncp .env.example .env\n```\n\nRequired variables:\n- `VITE_PERPS_BASE_URL` - Perps API endpoint\n- `VITE_PERPS_API_KEY` - Perps API key\n- `VITE_REOWN_PROJECT_ID` - Reown (WalletConnect) project ID\n- `VITE_MORALIS_API_KEY` - Moralis API key for token balances\n\n### Development\n\n```bash\npnpm dev\n```\n\nThe app will be available at `http://localhost:3000`.\n\n### Build\n\n```bash\npnpm build\n```\n\n### Linting\n\n```bash\npnpm lint\n```\n\n## Project Structure\n\n```\nsrc/\n├── atoms/          # State management (Effect Atom)\n├── components/\n│   ├── modules/    # Feature components (Home, Order, Account, etc.)\n│   ├── molecules/  # Reusable compound components\n│   └── ui/         # Base UI components\n├── context/        # React context providers\n├── domain/         # Domain types and business logic\n├── hooks/          # Custom React hooks\n├── routes/         # File-based routes (TanStack Router)\n└── services/       # API clients and external services\n```\n\n## License\n\n[BSL-1.1](LICENSE) - Business Source License 1.1\n\nConverts to MIT on 2030-01-20.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakekit%2Fperps-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstakekit%2Fperps-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstakekit%2Fperps-widget/lists"}