Skip to content

depinkit/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 

Repository files navigation

Depinkit Examples

Practical examples showcasing the Depinkit stack for building decentralized applications.

Overview

Depinkit is a collection of packages for building secure, decentralized systems:

  • Actor - Secure actor programming framework
  • Network - P2P networking with libp2p
  • UCAN - User Controlled Authorization Networks
  • DID - Decentralized Identifiers
  • Crypto - Cryptographic operations

These packages power NuNet's Device Management Service, a decentralized compute network.

Examples

A UCAN-protected messaging application demonstrating:

  • Hierarchical permissions (Admin grants read/write to users)
  • Fine-grained access control (separate read and write permissions)
  • P2P direct messaging with reciprocal invitations
  • UCAN delegation without pre-configured trust
  • Pub/sub channels with capability validation
  • Clean architecture with proper separation of concerns

Difficulty: Beginner
Concepts: UCAN delegation, actor behaviors, pub/sub, direct messaging

Read More β†’

Running the Example

cd messaging
go mod tidy
go run .

Learning Path

  1. Start with: messaging - Clean introduction to UCAN delegation and actor communication
  2. Deep dive: Check individual package documentation
  3. Build: Create your own decentralized application!

Use Cases

The Depinkit stack enables:

  • Messaging Systems: Secure chat with hierarchical permissions (see messaging example)
  • Decentralized Compute: Distribute tasks across P2P network
  • Storage Networks: Decentralized file storage with access control
  • IoT Networks: Sensor data sharing with fine-grained permissions
  • CDN/Edge Computing: Distributed content delivery
  • Collaborative Systems: Multi-party workflows with zero trust
  • Social Networks: Community platforms with delegated moderation
  • Resource Marketplaces: Any DePIN use case requiring authorization

Key Features Demonstrated

πŸ” Security

  • Zero trust architecture
  • Capability-based access control
  • Cryptographic verification
  • No central authority

🌐 Networking

  • P2P discovery via DHT
  • NAT traversal (relay/hole-punching)
  • Direct messaging
  • Topic-based pub/sub

🎭 Actor Model

  • Message-driven architecture
  • Behavior-based dispatch
  • Request-response patterns
  • Broadcast messaging

🎫 UCAN Capabilities

  • Self-contained authorization
  • Delegation chains
  • Hierarchical permissions
  • Time-limited access
  • Revocation support

Contributing Examples

Have a great use case? Add an example!

  1. Create directory in examples/
  2. Implement using Depinkit packages
  3. Include comprehensive README
  4. Add to this index

Support

  • Documentation: Check individual package READMEs
  • Issues: Open on respective package repositories
  • Community: NuNet Discord/Forums

Building the future of decentralized infrastructure with Depinkit πŸš€

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages