Overview of Client Features
mainThe React client for Sample APIs is composed of several specialized modules designed for exploring and testing APIs. Key features include:
- Navigation & Routing: File-based routing with layouts and view transitions.
- Data Management: Server state is managed via TanStack Query, while UI state uses minimal React Context.
- API Exploration: Dedicated API detail pages featuring endpoint switchers and a sandboxed Playground.
- Interactive Playground: A CodeMirror-powered editor that runs code in a sandboxed iframe, including an HTTP Inspector to monitor network requests (status, timing, headers).
- Data Visualization: An Explore Panel for viewing field shapes and building queries, and a JSON Tree Viewer for collapsible data inspection.
- Learning System: Guided Challenges (
/learn) which provide ordered exercises that execute in the Playground and are graded via an event stream and specific check specs. - Styling: A plain-CSS design system based on design tokens.