TrailPlugin — WordPress Plugin with an Out-of-Band Licence Backend

TrailPlugin — WordPress Plugin with an Out-of-Band Licence Backend An architecture diagram generated by Archify. Post Types · routes · POIs · guides · Architecture component Post Types routes · POIs · guides Shortcodes · no template edits · Architecture component Shortcodes no template edits Leaflet Maps · elevation profiles · Architecture component Leaflet Maps elevation profiles Customer's Site · their WordPress · Architecture component Customer's Site their WordPress TrailKit Plugin · PHP, no build step · Architecture component TrailKit Plugin PHP, no build step Licence API · Next.js on Vercel · licence state lives here, never in the shipped plugin Licence API Next.js on Vercel Supabase · licences · customers · licence state lives here, never in the shipped plugin Supabase licences · customers trailplugin.com · the storefront · Architecture component trailplugin.com the storefront Checkout · PayPal · crypto · Architecture component Checkout PayPal · crypto Key Issuing · server-side only · Architecture component Key Issuing server-side only installed on it registers queried by renders domain + key over HTTPS one row per licence buy on payment issues TK-XXXX licence state lives here, never in the shipped plugin Legend Frontend Backend Database Security External

The licence check is not in the plugin

  • • A key is validated against a Next.js API backed by Supabase, not on the customer's server
  • • So the code that ships holds no secret worth extracting and no logic worth patching out
  • • The plugin sends a domain and a key over HTTPS and gets back a verdict

Two paid plans, not five

  • • The backend and its types know about Agency and Unlimited as well
  • • The checkout deliberately offers only Single and Lifetime
  • • A plan the checkout cannot actually sell is a support ticket, not a feature

What the plugin actually is

  • • Custom post types for routes, points of interest and guides
  • • Leaflet maps with elevation profiles, embedded through shortcodes
  • • PHP only — nothing to build, nothing to install on the customer's host