← Back to Main Documentation Architecture Index

System Overview

Created: Thu Jul 10 21:47:22 CEST 2025
Last Updated: Wed 06 May 2026 17:14:18 CEST - Phase 1 of naming migration: renamed frontend repo concept (Plings-Web → Plings-Web), added native iOS/Android apps to architecture, reframed Solana commerce as future vision, clarified scan transport-agnosticism (QR / NFC / RFID)
Architecture Version: 4.0 - Multi-UI, One Backend
Document Version: 1.4 - Native-app and naming updates
Security Classification: Public Technical Documentation
Target Audience: Developers, System Architects, Business Stakeholders
Author: Paul Wisén

Platform Goals & Principles

Plings is a Universal Object Graph System that gives every physical object a verifiable digital identity, traceable relationships, and a place in a shared global graph. The platform combines a deterministic identification scheme (BIP32 HD wallet paths) with a dual-database backend and a transport-agnostic scan layer, producing infrastructure that is useful today for object identification and lifecycle management — and ready, when we choose, to carry on-chain commerce in the future.

Core Problem Solved

Traditional object tracking: Identifiers (barcodes, asset tags, serial numbers) point at databases siloed per organisation. There is no portable identity, no cryptographic verification, and no shared graph of relationships across owners and use-cases. Plings approach: A global graph in which every physical object has a deterministic, verifiable identifier. Identifiers derive from BIP32 HD wallet paths, giving Plings a future-proof identification layer that is cryptographically verifiable today and that can carry on-chain commerce when (and if) we choose to build it.

Design Principles

1. Verifiable Identity for Every Object

2. HD Wallet Infrastructure Foundation

3. One Backend, Many UIs — One GraphQL Interface

4. Future-Proof Commerce Capability

Multi-Layer System Architecture

Multi-Service Ecosystem Architecture

The Plings ecosystem operates as an intelligent routing network with specialized services:

flowchart TD SCAN_NATIVE[Native scan
NFC / QR via app camera] --> IOS[Plings-iOS
planned] SCAN_NATIVE --> AND[Plings-Android
planned] SCAN_BROWSER[Browser-side scan
camera, link, email, etc.] --> DIR[s.plings.io
Plings-Gateway] DIR --> |Standard scan / fallback| WEB[plings.io
Plings-Web] DIR --> |Lost object| WEB DIR --> |Object for sale — future| MARKET[market.plings.io
Marketplace — future] DIR --> |Object for rent — future| RENT[rent.plings.io
Rental — future] DIR --> |Object lendable — future| LEND[lend.plings.io
Lending — future] DIR --> |Business tools — future| BIZ[business.plings.io
Enterprise — future] subgraph "One Way In — GraphQL API" API[api.plings.io
Plings-API · GraphQL] DB1[(PostgreSQL
Supabase)] DB2[(Neo4j
Aura)] CHAIN[Solana PDAs
future commerce] end IOS --> API AND --> API DIR --> API WEB --> API MARKET --> API RENT --> API LEND --> API BIZ --> API API --> DB1 API --> DB2 API -.-> CHAIN subgraph "Shared Authentication" COOKIES[.plings.io Domain Cookies] end WEB -.-> COOKIES BIZ -.-> COOKIES DIR --> ANALYTICS[analytics.plings.io
Usage Analytics]

Service Specializations:

Service Domain Purpose Context Routing Status
Plings-Web plings.io Core inventory, object creation, Lost & Found Default browser destination current
Plings-Gateway s.plings.io Browser-side scan entry point — routes when no native app handles the scan Browser scans, shared links current
Plings-iOS App Store Native iOS client — scans NFC/QR locally, calls GraphQL API directly Native scan path (skips Gateway) planned
Plings-Android Play Store Native Android client — scans NFC/QR locally, calls GraphQL API directly Native scan path (skips Gateway) planned
Marketplace market.plings.io Buy/sell commerce platform Objects with FOR_SALE status future
Rentals rent.plings.io Rental marketplace and management Objects with FOR_RENT status future
Lending lend.plings.io Peer-to-peer lending platform Objects with LENDABLE status future
Business business.plings.io B2B features and enterprise tools Business context routing future
Analytics analytics.plings.io Usage insights and scan analytics Data visualization future

Core Architecture Components

┌─────────────────┐    ┌──────────────────┐    ┌─────────────────┐
│   Physical      │    │    Plings        │    │    Solana       │
│   Objects       │◄──►│   Platform       │◄──►│   Blockchain    │
│                 │    │                  │    │                 │
│ • QR/NFC Tags   │    │ • HD Wallet      │    │ • Object PDAs   │
│ • Identifiers   │    │ • Graph Database │    │ • NFT Minting   │
│ • Commerce URLs │    │ • Auth System    │    │ • Payments      │
└─────────────────┘    └──────────────────┘    └─────────────────┘

Data Layer - Dual Database Architecture

PostgreSQL (Supabase)

Neo4j (Graph Database)

Solana Blockchain

API Layer - GraphQL with HD Wallet Extensions

Core Object Operations

Commerce Integration

System Layer Responsibilities

Client Layer - User Interfaces

All clients consume the same api.plings.io GraphQL endpoint — that is the canonical “one way in”. Two distinct entry-point patterns lead there:

Plings-Web (current)

Plings-iOS (planned)

Plings-Android (planned)

Note on “one way in”: the unified contract is the GraphQL schema, not a specific HTTP front door. Identifier resolution, scan-event logging, validation, and authorization all happen behind the GraphQL layer regardless of how the client got there. The Gateway is essentially a thin regateway for the browser path.

Gateway Layer - Intelligent Routing & Security

URL: https://s.plings.io
Technology: Edge-deployed routing service with four core functions

The Gateway’s Four Functions:

  1. Routing Function - Intelligent Context-Aware Routing
    • Route based on object status (for sale → market.plings.io, for rent → rent.plings.io)
    • User authentication-aware routing (owner scans vs. public scans)
    • A/B testing and experimentation without changing QR codes
    • Service discovery and geographic routing
  2. Logger Function - Centralized Analytics & Tracking
    • Universal scan event logging before any redirect
    • GPS location tracking (with consent) for Lost & Found
    • Cross-service analytics independence
    • Privacy-compliant scan pattern analysis
  3. Firewall Function - Security & Protection Layer
    • Rate limiting per IP/identifier (100 scans/minute)
    • DDoS protection at edge level
    • Input validation and injection prevention
    • Malicious URL parameter filtering
  4. Freedom to Evolve - Future-Proof Architecture
    • Add new services without reprinting physical QR codes
    • Update routing logic globally and instantly
    • Handle service outages with graceful fallbacks
    • Enable new features through routing changes only

Why Not Direct Routing: Physical QR codes are permanent infrastructure. The Gateway layer provides infinite flexibility to evolve services, add features, and adapt user experiences without the cost and complexity of replacing millions of physical identifiers.

Gateway Verification Strategy

The Gateway implements a hybrid verification approach using cached manufacturer public keys for class verification at the edge, reducing backend load by ~70% while maintaining security through API-based instance verification. For detailed implementation, see s.plings.io Implementation Guide.

Backend Layer - Plings-API (Vercel Serverless)

Responsibilities:

Solana integration (NFT minting, on-chain payment routing) lives in this layer architecturally but is not actively built — see Future-Proof Commerce Capability above.

Data Flow Summary

Object Creation Flow

1. Manufacturer requests HD path allocation
2. Path Registry allocates collision-free path
3. HD Wallet Service generates Solana keypair from path
4. Object metadata stored in PostgreSQL
5. Relationships stored in Neo4j
6. QR code contains path → Solana PDA for payments

Commerce Transaction Flow (future vision — not currently built)

1. Consumer scans object identifier (QR/NFC/RFID)
2. Client resolves path to object data + Solana PDA
3. Payment sent to PDA (manufacturer cannot intercept)
4. Smart contract validates and routes payment
5. NFT ownership transferred atomically
6. Neo4j relationships updated for new owner

Authentication Flow

1. Scan reveals HD path and manufacturer signature
2. Cryptographic verification proves manufacturer origin
3. Path validation confirms authentic Plings identifier
4. Offline verification possible without network
5. Online enhances with full object history

Economic Architecture (Future Vision)

The sections below describe the long-term economic model. They are not currently built and should not drive near-term implementation decisions. They are kept here as design context so that today’s architectural choices (HD wallet identification, PDA reservation) remain compatible with the future direction.

Revenue Model Transformation

Traditional: Platform fees on transactions Plings: Payment infrastructure replacement - becomes the global commerce backbone

Transaction Fee Structure

Global Scale Potential

API Architecture & Developer Integration

GraphQL API Endpoint

Production URL: https://api.plings.io/graphql
Technology: Ariadne GraphQL over FastAPI
Documentation: Interactive GraphiQL explorer available at endpoint

Key API Capabilities

Example GraphQL Queries

# Query object by identifier
query GetObject($identifier: String!) {
  objectByIdentifier(identifier: $identifier) {
    id
    name
    objectClass {
      name
      description
    }
    spatialLocation {
      name
      path
    }
    owner {
      username
    }
  }
}

# Create new object instance
mutation CreateObject($input: CreateObjectInput!) {
  createObject(input: $input) {
    id
    plingsPath
    solanaAddress
    verificationKey
  }
}

For New Developers

Multi-Service Architecture Understanding:

  1. Gateway-First Routing: All QR scans enter through s.plings.io Gateway layer
  2. Service-Specific Frontends: Objects route to specialized services based on status/context
  3. Unified Backend API: All services consume the same api.plings.io/graphql endpoint
  4. Shared Authentication: .plings.io domain cookies enable seamless service transitions

Backend Strategy Understanding:

  1. Single GraphQL Endpoint: All frontend data needs served through api.plings.io/graphql
  2. Dual Database Coordination: Business logic in Python coordinates PostgreSQL + Neo4j
  3. HD Wallet Security: Cryptographic operations handled server-side with multi-tier key management
  4. Blockchain Integration: Solana operations abstracted through GraphQL mutations
  5. Multi-Tenant Security: Supabase RLS ensures data isolation between organizations

Development Flow with Gateway:

  1. QR Scan Flow: QR codes → Gateway verification → Service routing → GraphQL API
  2. Frontend Development: Each service queries GraphQL API for specialized data needs
  3. Backend Development: Implement business logic in FastAPI resolvers (shared across services)
  4. Database Operations: Use PostgreSQL for security/metadata, Neo4j for relationships
  5. Gateway Integration: Services receive enriched parameters from Gateway routing

Deployment Topology

Multi-Service Deployment Strategy

Service Distribution (current and planned):

Gateway Parameter Enrichment:

// Gateway transforms scanned URLs into enriched service URLs
// Input:  https://s.plings.io?t=q&i=ABC123&p=4.2.3.3.6
// Output: https://market.plings.io/item?oid=obj-123&ikey=ABC123&path=4.2.3.3.6&src=scan

Database Infrastructure

Authentication & Session Management

Development Coordination

Security & Compliance Posture

Cryptographic Security

Financial Compliance

Data Protection

Competitive Moat (Future Vision)

Strategic positioning for the long-term commerce vision. Not actively pursued in current development.

Technical Moat

  1. HD Wallet Innovation: First system to use HD paths as Solana addresses
  2. PDA Security Model: Solves payment interception while preserving manufacturer control
  3. Dual Database Architecture: Leverages strengths of relational + graph databases
  4. Offline + Online Hybrid: Works without network, enhanced with connectivity

Economic Moat

  1. Network Effects: Every object strengthens ecosystem
  2. Infrastructure Lock-in: Replaces traditional payment systems
  3. Global Scale: Same system works for any price point
  4. First Mover Advantage: Establishing object commerce standards

Strategic Positioning

Vision: Replace Visa/Mastercard by making every physical object a payment terminal Path: Build through niche use cases → expand to universal commerce infrastructure Timeline: 5-10 years to global payment infrastructure significance


This system overview emphasizes the revolutionary nature of enabling direct financial transactions to objects through HD wallet architecture. For detailed technical specifications, see Plings Identifier Specification.