{"id":28702258,"url":"https://github.com/opensvm/svmp2p","last_synced_at":"2026-02-27T00:33:13.494Z","repository":{"id":296592209,"uuid":"960184144","full_name":"openSVM/svmp2p","owner":"openSVM","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-21T16:33:53.000Z","size":398848,"stargazers_count":0,"open_issues_count":38,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T18:24:26.111Z","etag":null,"topics":["p2p","p2p-network"],"latest_commit_sha":null,"homepage":"https://p2p.opensvm.com","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/openSVM.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG_SECURITY.md","contributing":"docs/contributing.md","funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":"audit_report.pdf","citation":null,"codeowners":null,"security":"SECURITY_AUDIT_IMPROVEMENTS.md","support":null,"governance":"docs/governance-framework.md","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":"2025-04-04T02:03:53.000Z","updated_at":"2025-08-31T15:59:24.000Z","dependencies_parsed_at":"2025-08-31T15:15:05.569Z","dependency_job_id":"1c29be0d-cabc-475c-9b5f-6b433199ec5d","html_url":"https://github.com/openSVM/svmp2p","commit_stats":null,"previous_names":["opensvm/svmp2p"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/openSVM/svmp2p","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openSVM%2Fsvmp2p","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openSVM%2Fsvmp2p/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openSVM%2Fsvmp2p/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openSVM%2Fsvmp2p/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/openSVM","download_url":"https://codeload.github.com/openSVM/svmp2p/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/openSVM%2Fsvmp2p/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29879052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-26T23:51:21.483Z","status":"ssl_error","status_checked_at":"2026-02-26T23:50:46.793Z","response_time":89,"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":["p2p","p2p-network"],"created_at":"2025-06-14T12:30:42.210Z","updated_at":"2026-02-27T00:33:13.476Z","avatar_url":"https://github.com/openSVM.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OpenSVM P2P Exchange\n\nA peer-to-peer cryptocurrency exchange platform for trading across Solana Virtual Machine networks (Solana, Sonic, Eclipse, svmBNB, and s00n).\n\n## Features\n\n- **Multi-Network Support**: Trade across multiple SVM networks from a single interface\n- **Network-Specific Information**: View confirmation times, gas fees, and other network details\n- **Progressive Web App (PWA)**: Install and use offline with enhanced mobile performance\n- **Responsive Design**: Fully optimized for mobile, tablet, and desktop devices\n- **Wallet Integration**: Connect with popular Solana wallets (Phantom, Solflare, etc.)\n- **Secure Trading**: Escrow-based P2P trading system\n- **Offline Functionality**: Queue actions when offline, sync when reconnected\n- **Tokenized Loyalty System**: Earn reward tokens through trading and governance participation\n- **Dispute Resolution**: Community-driven dispute resolution with juror voting\n- **User Reputation**: Comprehensive reputation tracking system\n\n## Technologies Used\n\n- Next.js 14 (Server-Side Rendering)\n- React 18\n- CSS3 with responsive design\n- JavaScript (ES6+)\n- Solana Web3.js and Wallet Adapters\n- SVG for network logos and icons\n- **PWA Technologies**: Service Workers, Web App Manifest, Background Sync\n- **Offline Storage**: IndexedDB and Cache API\n\n## Next.js Architecture\n\n- The application uses a standard Next.js architecture with SSR (Server-Side Rendering)\n- The project structure follows Next.js conventions with `/pages`, `/components`, and `/contexts`\n- Page layouts are applied consistently using the Layout component in `_app.js`\n- Dynamic imports with `{ ssr: false }` are used for client-side only components\n\n## Important CSS Notes\n\n- When using CSS `@import` rules, they **must** be placed at the top of the stylesheet, before any other CSS rules or declarations.\n- Each `@import` rule should be on its own line with proper formatting and semicolons.\n- Add extra line breaks between imports and the first CSS rule to ensure proper parsing.\n- Next.js enforces this CSS standard strictly, whereas some other build systems might be more forgiving.\n- Only `@charset` and `@layer` declarations can precede `@import` rules.\n- The main stylesheet is at `src/styles/globals.css` which imports styles from the public directory.\n- Example of correct formatting:\n  ```css\n  @import \"/path/to/file.css\";\n  \n  @import \"/path/to/another.css\";\n  \n  /* First CSS rule after imports */\n  :root { ... }\n  ```\n\n## Getting Started\n\n1. Clone the repository\n2. Install dependencies: `npm install --legacy-peer-deps`\n3. Run the development server: `npm run dev`\n4. Connect your wallet to start trading\n\n## 📱 Progressive Web App (PWA)\n\nThe OpenSVM P2P Exchange is a fully-featured Progressive Web App that works seamlessly online and offline.\n\n### PWA Features\n\n- **🚀 Installable**: Add to home screen on mobile and desktop\n- **📴 Offline Mode**: Core functionality works without internet\n- **🔄 Background Sync**: Actions sync automatically when reconnected\n- **⚡ Fast Loading**: Optimized caching for instant app startup\n- **📱 App-like Experience**: Full-screen standalone mode\n\n### Installation\n\n**Desktop (Chrome/Edge):**\n1. Click the install button in the app or address bar\n2. Follow the installation prompt\n\n**Mobile (iOS Safari):**\n1. Tap the Share button\n2. Select \"Add to Home Screen\"\n\n**Mobile (Android Chrome):**\n1. Tap the \"Install\" banner or menu option\n2. Confirm installation\n\n### Offline Usage\n\nWhen offline, the app will:\n- Show cached content and previous data\n- Queue transactions and profile updates\n- Display offline indicator with pending action count\n- Automatically sync queued actions when connection returns\n\nFor detailed PWA implementation information, see [PWA Documentation](docs/pwa-implementation.md).\n\n## 📚 Documentation\n\n### API Documentation\nComprehensive API and smart contract documentation is available:\n\n- **[Complete API Reference](docs/api/README.md)** - Main API documentation hub\n- **[Smart Contract API](docs/api/smart-contracts.md)** - Detailed smart contract instructions\n- **[Wallet Operations](docs/api/wallet-operations.md)** - Wallet integration patterns\n- **[Account Structures](docs/api/account-structures.md)** - Data structure specifications\n- **[Error Codes](docs/api/error-codes.md)** - Error handling reference\n- **[Transaction Flows](docs/api/transaction-flows.md)** - Implementation examples\n- **[API Changelog](docs/api/CHANGELOG.md)** - Version history and updates\n\n### Quick Start Guides\n- **[Examples Directory](docs/api/examples/)** - Ready-to-use code examples\n- **[Installation Guide](docs/installation-guide.md)** - Detailed setup instructions\n- **[Contributing Guide](docs/contributing.md)** - Development workflow\n\n### Developer Resources\n- **Program ID**: `FKkTQLgBE9vDZqgXKWrXZfAv5HgCQdsjDZDzPfJosPt9`\n- **Documentation Version**: 1.0.0\n- **API Support**: Full smart contract and wallet integration coverage\n\n## Requirements\n\n- Node.js \u003e= 18.17.0 (required by Next.js 14)\n\n## Mobile Responsiveness\n\nThe exchange is fully responsive and works on all device sizes:\n- Mobile phones (375px and up)\n- Tablets (768px and up)\n- Desktops (1024px and up)\n\n## Network Support\n\n- **Solana**: The original high-performance blockchain\n- **Sonic**: Gaming and NFT-focused SVM network\n- **Eclipse**: Cross-chain applications SVM network\n- **svmBNB**: BNB Chain integration with SVM\n- **s00n**: Ultra-fast optimistic rollup SVM network\n\n## Tokenized Loyalty System\n\nThe platform features a comprehensive reward system that incentivizes user engagement:\n\n### Earning Rewards\n- **Trading Rewards**: Earn tokens for every successful trade completion\n- **Governance Rewards**: Get paid for participating in dispute resolution as a juror\n- **Volume Thresholds**: Minimum trade volumes ensure quality over quantity\n\n### Using Rewards\n- **Real-time Tracking**: Monitor your earnings in the dedicated Rewards dashboard\n- **Instant Claiming**: Claim your accumulated rewards at any time\n- **Future Utility**: Tokens will enable fee discounts, governance voting, and exclusive features\n\n### Key Features\n- **Fair Distribution**: Both buyers and sellers earn equal rewards\n- **Anti-abuse Protection**: Multiple safeguards prevent gaming the system\n- **Transparent Progress**: Clear indicators show your path to next rewards\n\nFor detailed tokenomics information, see [docs/tokenomics-design.md](docs/tokenomics-design.md).\n\n## License\n\nMIT\n\n## Contact\n\nFor more information, visit [OpenSVM](https://opensvm.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensvm%2Fsvmp2p","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensvm%2Fsvmp2p","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensvm%2Fsvmp2p/lists"}