Skip to content

Documentation

PlatPhorm News Layout

A production-ready, AI-first shared layout system for the PlatPhorm News network. Fully typed, i18n-ready, and designed for both humans and AI agents.

v0.0.123 features enabled

Getting Started

Clone this layout to quickly bootstrap a new PlatPhorm News site with all the standard features: i18n, theming, observability, accessibility, and more.

1. Clone via V0

# Use V0 to fork this layout
v0 clone layout.platphormnews.com

# Or reference it as a template
v0 new my-site --template=platphorm-layout

2. Configure Your Site

// lib/config/site.ts
export const SITE_CONFIG = {
  name: "My News Site",
  shortName: "MyNews",
  url: "https://mynews.platphormnews.com",
  // ... customize as needed
};

3. Add Your Content

Create pages in app/[locale]/ and they'll automatically inherit the layout shell, i18n, theming, and observability.

Architecture

The layout follows a layered architecture designed for DRY reusability:

LayerPathPurpose
Configlib/config/Site settings, feature flags, network topology
Typeslib/types/TypeScript interfaces for all contracts
Providerscomponents/providers/Network, Theme, Trace, Observability contexts
Layoutcomponents/layout/TopBar, Footer, Drawer, LocaleSwitcher
A11ycomponents/a11y/Skip links, focus trap, accessibility utilities
i18ni18n/, messages/Locale config, routing, 8 language dictionaries

Feature Flags

All features can be toggled via environment variables or runtime config:

ui
Enabled

Dark/light/system mode switcher in top bar

ui
Enabled

Language dropdown supporting 8 locales

ui
Enabled

Collapsible search input in top bar

ui
Enabled

Hamburger menu with network publication links

ui
Enabled

User authentication dropdown menu

ui
Enabled

Vercel, v0, and GitHub deploy/clone buttons

ui
Disabled

Floating deploy button in bottom-right corner

secret
Enabled

Hidden menu activated by typing PH3AR or 5x theme toggle

secret
Enabled

Command palette with dev tools and network utilities

secret
Disabled

Developer debugging panel (dev/preview only)

observability
Enabled

Full observability with correlation IDs and breadcrumbs

observability
Enabled

Vercel Analytics integration

observability
Enabled

Vercel Speed Insights for performance monitoring

observability
Enabled

User journey tracking for debugging

observability
Enabled

Privacy-respecting browser fingerprint for session correlation

seo
Enabled

Instant search engine indexing via IndexNow protocol

seo
Enabled

LLM discovery files for AI systems

seo
Enabled

RSS 2.0 and Atom feed generation

seo
Enabled

XML sitemap generation for search engines

seo
Enabled

humans.txt file with team and technology credits

seo
Enabled

robots.txt with AI-friendly directives

seo
Enabled

Model Context Protocol configuration endpoint

integration
Enabled

PlatPhorm News network API integration

integration
Enabled

Integration with trace.platphormnews.com

integration
Disabled

Outbound webhook support for events

integration
Enabled

Integration with svg.platphormnews.com for icons and images

integration
Disabled

Redirect 404 pages to 404.platphormnews.com or games.platphormnews.com

API Reference

The layout exposes several API endpoints for discovery and integration:

GET/api/health
GET/api/docs
POST/api/indexnow
GET/llms.txt
GET/llms-full.txt
GET/rss.xml
GET/feed.xml
GET/sitemap.xml
GET/robots.txt
GET/humans.txt
GET/manifest.json
GET/.well-known/security.txt