This is a reference monorepo containing four runnable TypeScript example applications that demonstrate integration with the Unicity Sphere wallet through the @unicitylabs/sphere-sdk Connect protocol. It is explicitly educational rather than a product: all packages are marked private and each example is self-contained so it can be copy-pasted into a new project. The browser app is a React 19 + Vite dApp that connects to a user's wallet over iframe/popup transports; the nodejs app is a CLI dApp over WebSocket against a mock wallet server; the bot is the inverse shape, acting as its own wallet via wallet-api custody and listening for payment events; and backend-auth uses a sign-message challenge so an Express server can recover the user's chain pubkey and issue a JWT. All packages pin the same exact SDK version (0.18.0) and share modern tooling: Vite, Vitest, React Testing Library, Tailwind, and strict TypeScript. Architecturally, the repo is not a single application but a set of deliberately duplicated example packages, each exercising the same protocol from a different integration angle. The most valuable parts are the core client-side lifecycle implementation (useWalletConnect), robust error classification that is code-based rather than message-regex-based, money-safety patterns around INTENT_OUTCOME_UNKNOWN (4201) and possibly-committed send outcomes, exact BigInt-safe token conversion utilities, and byte-identical challenge construction for cryptographic pubkey recovery. The test suites are unusually strong for an example repo, acting as canaries that pin SDK wire contracts and wallet behavior: lock gate, send safety, NFT intent codecs, mock transport, and comprehensive React component tests. Maintenance is active and disciplined: CI runs vitest and tsc across all packages, deploy builds and publishes the browser example to GitHub Pages, and the code comments reflect recent empirical observations about CDN/WAF behavior and SDK version floors. Technical drift is low relative to the ecosystem because the repo tracks recent major releases (React 19, Vite 7, vitest 4, Tailwind 4), though the dependence on an exact pinned SDK version and hand-maintained protocol mirrors means the repo requires coordinated updates to stay correct. Caveats: the deprecated extension-transport path is intentionally kept as dead reference code, and several files deliberately duplicate error-copy and formatting logic across packages rather than sharing it. This is by design for copy-paste portability, but it means fixes must be propagated manually. Overall, this repo is a high-quality reference for anyone building Sphere Connect integrations, and several of its modules are genuinely reusable as standalone utilities.
This is a production React 18/TypeScript single-page application that serves as a self-custodial crypto wallet and dApp-connect hub for the Unicity network. The codebase implements the full wallet lifecycle (create, restore, backup, password encryption, auto-lock, cross-tab lock synchronization), token/NFT management, payment requests, a Connect protocol for iframe/popup dApp approval flows, network switching, a cross-chain bridge module, subscription/API-key gating, DM and group chat, marketplace browsing, and a desktop-like app launcher for embedded iframe agents. The architecture is a monolith SPA with a provider-based SDK wrapper (`SphereProvider`, `ConnectProvider`, `UpgradeProvider`), TanStack Query for server state, and a runtime-config system that rewrites deployment-specific values in `runtime-config.js` via Docker, enabling build-once/promote-many delivery behind nginx. The application is heavily security-focused: Connect intents go through settle-window shields, duplicate-send guards, verified-origin checks, per-network approval stores, and fail-closed network capability allowlists. Sentry telemetry is deliberately scrubbed to send route patterns rather than URLs or query strings, and NFT loading is fingerprint-verified and privacy-gated by minter-chosen hosts. Testing is extensive, with hundreds of Vitest unit tests covering security invariants, SDK version pins, localStorage corruption tolerance, prototype-pollution resistance, and wallet-lock race conditions, plus Playwright smoke/perf tests. The code is heavily commented with references to historical bugs and SDK contract canaries, which aids maintenance but also creates coupling to the upstream `@unicitylabs/sphere-sdk`. The main external dependencies are the Sphere SDK, bridge-core/plugin packages, a bridge return service, wallet-api backends, a subscription gateway, Nostr relays for chat, and Paymento for paid-plan checkout. The repository is purely an application; there is no data-research or analytics content beyond runtime telemetry and marketplace API consumption. Notable engineering strengths include the runtime-config indirection, isolated module boundaries around bridge logic, and small, well-tested utility modules for storage, URL safety, error humanization, and privacy scrubbing. The main drift risks are the `file:`-linked SDK packages, SDK-version-pinned tests, heavy mock usage, and a very large `ExplorePage.tsx` that is approaching component-split territory.
Prosopo is a privacy-focused, self-hosted CAPTCHA alternative that provides multiple challenge types—image selection, puzzle (image jigsaw), proof-of-work, and frictionless (behavioral bot detection). The system comprises an Express-based provider API (with MongoDB and Redis for persistence and caching), a CLI for administrative tasks, client-side embeddable widgets (vanilla JS bundle, React/Angular/Vue/Svelte wrappers), and a suite of supporting libraries for cryptography, locale, datasets, and native Rust modules (JA4 TLS fingerprinting, Merkle tree acceleration, puzzle rendering). Bot detection is multi-layered: client-side behavioral data (mouse/keyboard/touch events, SIMD readings) is collected and server-side scored, combined with JA4 TLS fingerprint analysis, IP reputation (ipapi.is + MaxMind), DNS asymmetry detection, spam email heuristics, and custom decision machines per site key. The architecture is a monorepo with ~70 workspaces, leveraging Vite for bundling, Vitest for unit/integration tests, and Cypress for E2E visual regression testing. The provider enforces access policies (allow/block/restrict) via a Redis-backed rules engine and maintains usage counters for rate limiting. Asset sealing (AES-256-GCM) protects image CDN URLs, and puzzle difficulty is sampled with a CSPRNG-stratified ladder to frustrate solver calibration.
This repository contains a cross-platform mobile application for monitoring Ethereum 2.0 validator performance and machine metrics. Built with Ionic Framework and Angular, it provides a dashboard for tracking validator balances, rewards, effectiveness, and machine resource utilization (CPU, memory, disk, network). The application features integration with the beaconcha.in API for blockchain data, local storage synchronization via a custom Capacitor plugin (storage-mirror), and supports advanced features such as Rocketpool integration, multi-currency display, and configurable notifications. The architecture follows a modular, lazy-loaded pattern with distinct feature modules for validators, dashboard, preferences, and machine monitoring. Notable reusable components include the storage-mirror Capacitor plugin for cross-platform data sharing between the app and home screen widgets, and an InfiniteScrollDataSource utility for efficient paginated data loading using RxJS. The application is actively maintained and demonstrates strong engineering practices in its modular design and separation of concerns. However, the application's reliance on external APIs (beaconcha.in, Firebase, Coinbase, GitHub) and platform-specific native plugins introduces maintenance overhead and potential points of failure. The feature-rich nature of the application also increases complexity, though the core architecture remains sound.
Gem Wallet is a production-grade, self-custodial multi-chain cryptocurrency wallet for iOS (and partially macOS), built entirely with SwiftUI and heavily modularized via Swift Package Manager. The system manages private keys securely via the Keychain and WalletCore, supports 40+ blockchains (Bitcoin, Ethereum, Solana, Cosmos, TON, etc.), and provides full DeFi capabilities: token transfers with fee estimation and simulation, token swaps with provider selection and price impact analysis, staking with delegation and rewards, perpetual trading (Hyperliquid) with leverage and position management, fiat on/off-ramp through third-party providers, NFT viewing and management, WalletConnect dApp connections, price alerts, and a home-screen price widget. Architecture follows an MVVM pattern with protocol-oriented service layers, a centralized dependency injection container (AppResolver), and local persistence via GRDB (SQLite) backed by observable queries for reactive UI updates. Network communication uses a custom HTTP client with device-signed requests and WebSocket streams for real-time balances, prices, and notifications. The codebase is unusually well-tested with dedicated TestKit targets providing mock services for every major component, and extensive unit, UI, and snapshot tests. Despite its size (40+ packages), the modular boundaries are well-observed, with clear abstractions for signing, chain services, and UI components. The project relies on a Rust binary framework (Gemstone) for core blockchain logic, which introduces a build dependency but is managed via a regenerate script. Overall, this is a highly professional, actively maintained iOS application with strong engineering practices.
This repository is the Tonhub Wallet, a non‑custodial mobile cryptocurrency wallet for the TON blockchain with additional Solana support. It is a full‑featured wallet that supports multi‑account management, token transfers (jettons), staking (liquid staking, native pools), hardware wallet integration (Ledger), a dApp browser using TonConnect v2, and financial products such as the Holders card program and Changelly exchange. The application also includes an AI chat assistant for transaction markup and operations, push notifications via Firebase, and deep‑link navigation for seamless URL handling. Built using React Native and Expo, the codebase is structured around a fragment‑based screen architecture, with custom hooks and React Query for data fetching, Recoil for state management, and a centralized query key factory. Despite its breadth, the codebase exhibits well‑defined separation of concerns with reusable UI components (e.g., ItemButton, RoundButton, WImage) and data patterns (e.g., batched metadata fetching, structural sharing for transaction lists). However, there are signs of technical drift, such as hardcoded endpoints, some deprecated library usage, and platform‑specific native modules that require ongoing maintenance.
Repository is a production Android application for Mixin Network, combining a cryptocurrency wallet with a messenger. It integrates with Mixin API (api.mixin.one) and Blaze messaging, supports transfers, swaps, web3 trades, perps, fiat money, and market analytics. The app is built with Kotlin, uses MVVM with ViewModels and Flows, Room for persistence, and a mix of Jetpack Compose and legacy View-based UI. A separate query-codegen Gradle module generates type-safe query code, and release automation includes Fastlane, Docker build box, and APK signature verification.