• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
wolf

wolf

JSONRPC-Viewer

Public
Like
JSONRPC-Viewer
Home
Code
5
frontend
4
shared
6
README.md
H
index.ts
main.ts
Branches
2
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
shared
/
README.md
Code
/
shared
/
README.md
Search
6/11/2025
Viewing readonly version of main branch: v38
View latest version
README.md

Shared

Shared utilities and components used by both frontend and backend.

Components

  • JsonRpcViewer.js - Main application class that orchestrates all functionality
  • MessageParser.js - Handles parsing of JSON Lines and Content-Length formatted input
  • MessageGrouper.js - Groups messages into request-response pairs and handles filtering
  • MessageRenderer.js - Creates DOM elements and handles visual representation
  • utils.js - Shared utility functions and constants

Architecture

The shared components follow a modular design:

  1. Parser - Extracts JSON-RPC messages from raw input
  2. Grouper - Organizes messages and applies filters
  3. Renderer - Creates visual elements
  4. Viewer - Orchestrates all components and handles user interactions

This separation allows for easy testing, maintenance, and potential reuse in other contexts.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
Β© 2025 Val Town, Inc.