dcnetio/web-dc-api
web-dc-api是一个革命性的去中心化 Web 开发 SDK,让您无需任何服务器即可构建完整的智能体与互联网应用。
What it solves
web-dc-api is a decentralized application (dApp) SDK for browsers that consolidates multiple backend-like capabilities into a single instance. It eliminates the need for developers to manage separate services for identity, database, file storage, and real-time communication when building decentralized apps.
How it works
The SDK provides a unified DC instance that interfaces with a decentralized network. It uses wallet-based authentication to establish user identity and provides several specialized modules:
- Identity & Auth: Handles wallet login, signing, and decryption.
- ThreadDB: A private, structured database for user-specific data that syncs across devices.
- KeyValue: A shared storage system for global configurations or multi-user data, supporting both public and authenticated access levels.
- File System: Supports encrypted file and folder uploads, CID-based downloads, and seekable streaming for large media.
- Real-time Communication: Includes RTM (messaging), RTC (audio/video calls), and a collaborative whiteboard.
- AI Proxy: Enables streaming model calls and MCP (Model Context Protocol) integration.
- Payments: Integrates payment orders and subscription management.
Who it’s for
Frontend developers building decentralized applications who want a comprehensive suite of tools for user data management, real-time collaboration, and AI integration without setting up traditional centralized backend infrastructure.
Highlights
- Unified SDK: Combines DB, KV, Files, AI, and RTC into one object.
- Wallet-Native: Uses wallet identities for authentication and data ownership.
- Flexible Storage: Offers three distinct data boundaries: private (ThreadDB), user-isolated KV, and globally shared KV.
- Media Optimized: Supports seekable file streams and Service Worker integration for efficient media access.
- Built-in AI: Direct access to AI proxies and asynchronous resource generation.
Related
- Project
- Project
- Project
- Project
- Project