Plings Documentation

Created: Tue 29 Jul 2025 07:14:58 CEST
Updated: Wed 06 May 2026 17:14:18 CEST - Phase 1 naming migration: introduced Plings-Web/Plings-API/Plings-Gateway conventions; added native iOS/Android in architecture references; clarified scan transport-agnosticism (QR/NFC/RFID)
Document Version: 1.2 - Naming migration and multi-UI architecture references
Security Classification: Internal Technical Documentation
Target Audience: Developers, AI Agents, Technical Writers
Author: Paul WisΓ©n

Quick Navigation for AI Agents

This README serves as the primary navigation point for AI agents and developers working with Plings documentation. It provides the complete structure overview and placement guidelines.

Live Documentation Site: https://docs.plings.io

Naming migration in progress: The Plings system uses these conceptual repository names: Plings-API (disk: Plings-API/), Plings-Gateway (disk: Plings-Gateway/), Plings-Web (disk: Plings-Web/), plus planned Plings-iOS and Plings-Android. Use the conceptual names in new documentation; reserve disk paths for actual file references. See the workspace CLAUDE.md for full context.

Directory Structure Overview

πŸ—οΈ Core Architecture

/architecture/
β”œβ”€β”€ README.md                           # Architecture overview and principles
β”œβ”€β”€ system-overview.md                  # HIGH-PRIORITY: Multi-service ecosystem, Gateway layer
β”œβ”€β”€ database_architecture.md            # Dual database design (PostgreSQL + Neo4j)
β”œβ”€β”€ technology-stack-decisions.md       # Technology choices and rationale
β”œβ”€β”€ solana-payment-architecture.md      # Blockchain payment integration
└── api-security-guidelines.md          # Security best practices

πŸ”§ Core Systems Documentation

/core-systems/
β”œβ”€β”€ README.md                           # Core systems overview
β”œβ”€β”€ s-plings-io/                        # Gateway service documentation (transport-agnostic: QR/NFC/RFID)
β”‚   β”œβ”€β”€ README.md                       # Gateway overview (4 functions)
β”‚   β”œβ”€β”€ url-structure.md               # URL parameters and routing
β”‚   β”œβ”€β”€ verification-strategy.md       # Cached public key verification
β”‚   └── routing-logic.md               # Intelligent routing rules
β”œβ”€β”€ plings_identifier.md               # HD wallet identifier system
β”œβ”€β”€ spatial-relationships.md           # Object location tracking  
β”œβ”€β”€ ownership-handling.md              # Ownership and transfer logic
└── class-system.md                     # Object classification system

🌐 API Documentation

/api/
β”œβ”€β”€ README.md                          # API overview and integration guide
β”œβ”€β”€ api-endpoints.md                   # GraphQL schema and endpoints
β”œβ”€β”€ authentication.md                 # Authentication flows
β”œβ”€β”€ data-models.md                    # Core data structures
└── integration-examples.md           # Code examples and patterns

πŸ’Ύ Database Documentation

/database/
β”œβ”€β”€ README.md                          # Database overview (⚠️ READ SCHEMA-VERIFICATION.md FIRST!)
β”œβ”€β”€ SCHEMA-VERIFICATION.md             # 🚨 CRITICAL: Verified production schema
β”œβ”€β”€ neo4j-core-schema.md              # Graph database schema
β”œβ”€β”€ supabase-core-schema.md           # PostgreSQL schema (wallet-first)
β”œβ”€β”€ migration-strategy.md             # Database migration procedures
└── predicate-catalogue.md            # Relationship types catalog

πŸ“‹ Use Cases & Requirements

/use-cases/
β”œβ”€β”€ overview.md                        # Use case index
β”œβ”€β”€ workflow-create-object.md          # Object creation workflows
β”œβ”€β”€ workflow-scan-to-pay.md           # Commerce scanning flows
β”œβ”€β”€ workflow-lost-and-found.md        # Lost object recovery
└── requirements-analysis.md          # Business requirements

⚠️ IMPORTANT: Always check use cases before implementing features!

🎨 Frontend Documentation

/frontend/
β”œβ”€β”€ README.md                          # Frontend architecture overview
β”œβ”€β”€ component-architecture.md         # React component structure and patterns
β”œβ”€β”€ state-management.md              # State management patterns
β”œβ”€β”€ routing.md                        # Frontend routing system
└── admin/                            # Admin console documentation
    β”œβ”€β”€ README.md
    └── [admin-specific files]

πŸ”§ Development Guides

/development/
β”œβ”€β”€ README.md                          # Development setup overview
β”œβ”€β”€ getting-started.md                # Quick start guide
β”œβ”€β”€ api-integration.md               # Backend integration patterns
β”œβ”€β”€ testing-strategy.md              # Testing approaches
└── deployment.md                    # Deployment procedures

🎨 Brand & Design

/brand/
β”œβ”€β”€ design-system.md                  # Design system guidelines
β”œβ”€β”€ implementation-guide.md          # Implementation patterns
β”œβ”€β”€ requirements.md                  # Brand requirements
└── fonts/Poppins/                   # Font assets
    └── [Poppins font files]

πŸ€– Agent Workflow Guidelines

Documentation Placement Rules

Content Type Primary Location Secondary Location Notes
New Features /use-cases/ first Implementation in relevant system dir Always document requirements first
System Architecture /architecture/ Cross-reference in affected systems Include impact analysis
API Changes /api/ Update affected core systems Maintain backwards compatibility docs
Database Changes /database/ Update affected systems Always update SCHEMA-VERIFICATION.md
Frontend Components /frontend/ Include usage examples Document props and state management
s.plings.io Gateway /core-systems/s-plings-io/ Reference in architecture Universal scan routing (QR/NFC/RFID)
Business Logic /core-systems/ Cross-reference in API docs Core system functionality

πŸ”„ Agent Development Workflow

  1. Start Here: Read this README.md for structure understanding
  2. Check Use Cases: Review /use-cases/ before implementing features
  3. Verify Database Schema: Always check /database/SCHEMA-VERIFICATION.md first
  4. Update Documentation: Alongside code changes, not after
  5. Jekyll Compatibility: Escape with tags
  6. Mermaid Diagrams: Use <div class="mermaid"> not markdown code fences
  7. Cross-References: Link related documentation sections
  8. Timestamps: Add proper timestamps following CLAUDE.md format

🎯 Priority Documentation Areas

  1. HIGHEST: /architecture/system-overview.md - System architecture understanding
  2. HIGH: /core-systems/s-plings-io/ - Gateway service (universal scan entry point: QR / NFC / RFID)
  3. HIGH: /use-cases/ - Requirements and business logic
  4. MEDIUM: /api/ - Integration specifications
  5. MEDIUM: /database/SCHEMA-VERIFICATION.md - Current database state

πŸ” Finding Information Quickly

Common Agent Questions & Answers

Question Location File
How do scans (QR / NFC / RFID) work? /core-systems/s-plings-io/ README.md + routing-logic.md
What’s the system architecture? /architecture/ system-overview.md
How do I integrate the API? /api/ README.md + integration-examples.md
What’s the database schema? /database/ SCHEMA-VERIFICATION.md (READ THIS FIRST!)
How do object relationships work? /core-systems/ spatial-relationships.md
What are the use cases? /use-cases/ overview.md
How does authentication work? /api/ authentication.md
What’s the frontend architecture? /frontend/ README.md

🚨 Critical Files for Agents

  1. /database/SCHEMA-VERIFICATION.md - Always read before database queries
  2. /architecture/system-overview.md - Understand the multi-service ecosystem
  3. /core-systems/s-plings-io/README.md - Universal scan entry point (QR / NFC / RFID)
  4. /use-cases/overview.md - Business requirements and user stories
  5. CLAUDE.md - Development guidelines and agent usage instructions

πŸ“ Documentation Standards

Required Elements

Jekyll Compatibility

πŸ”„ Maintenance Notes


This documentation structure reflects the Plings Universal Object Graph System’s sophisticated multi-service architecture with the s.plings.io Gateway layer as the intelligent routing hub for all physical object interactions.