Skip to content

Documentation needed for P2P architecture in gun branch #100

@michaelstingl

Description

@michaelstingl

Problem

The gun branch represents a complete architectural shift from client-server to P2P using Gun.js, but this radical change is not documented anywhere. The README still describes the old Prisma/Docker setup that no longer exists.

Current State

  • The gun branch has removed all traditional backend infrastructure
  • Everything runs P2P via Gun.js
  • The only server is a minimal 26-line relay in /clean
  • New developers have no way to understand the architecture

What's Missing

  1. Updated README.md

    • Remove old Docker/Prisma instructions
    • Explain P2P-first approach
    • Document the new pnpm clean workflow
  2. ARCHITECTURE.md

    • Explain Gun.js data model
    • Document the space concept (local/global)
    • Describe the universal relation system
    • Show data flow in P2P architecture
  3. DEVELOPMENT.md

    • Gun.js patterns and best practices
    • How to work with composables/providers
    • Debugging P2P applications
    • Common Gun.js pitfalls
  4. PLUGIN_DEVELOPMENT.md

    • How to create plugins in the P2P world
    • Plugin data storage in Gun
    • Dynamic routing integration

Impact

Without documentation, new contributors cannot understand:

  • Why there's a /server directory that's not used
  • How authentication works without a backend
  • Where data is stored
  • How to develop in this P2P paradigm

Suggested Solution

Create comprehensive documentation that explains the P2P-first architecture and helps developers understand this innovative approach to building decentralized social platforms.


Note: This issue was created after analyzing the codebase and discovering the undocumented architectural transformation from traditional client-server to pure P2P.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions