Running Locally
Features
Node Sidebar
The collapsible sidebar lists all available nodes organized by category:- Logic - Conditional, Delay, End
- Transform - Map, Filter
- Integration - HTTP Request, Reddit Monitor, Twitter Monitor, etc.
- Action - AI-powered nodes (Keyword Generator, Draft Emails, etc.)
Auto-Generated Forms
Input forms are automatically generated from each node’s Zod schema. This means:- Required fields are marked with asterisks
- Field types (string, number, array, object) render appropriate inputs
- Validation happens in real-time
- No manual UI development needed when adding new nodes
Mock Mode Toggle
Toggle mock mode to test nodes without API credentials:- Mock ON - Returns schema-valid sample data
- Mock OFF - Executes node with real API calls (requires credentials)
Output Viewer
After execution, results display in a JSON viewer with:- Syntax highlighting
- Expandable/collapsible sections
- Copy to clipboard
Credential Management
Click the credentials button to manage API keys:- Select a service (Apollo, OpenAI, etc.)
- Enter your API key
- Keys are encrypted and stored in browser localStorage
Browser-stored credentials are encrypted but less secure than environment variables. Use for development only.
URL Structure
Navigate directly to a node:Architecture
The Web Playground is built with:- Next.js 14 - App router, server-side rendering
- React 18 - UI components
- Tailwind CSS - Styling
- react-hook-form - Form state management
- @hookform/resolvers/zod - Schema validation
- CryptoJS - Credential encryption
Server-Side Execution
Node execution happens on the server via/api/execute:
Customization
Adding New Nodes
When you add a new node to@jam-nodes/nodes, it automatically appears in the playground:
- Define the node with
defineNode()and a Zod schema - Export from
@jam-nodes/nodes - Restart the dev server
Styling
The playground uses Tailwind CSS. Modifytailwind.config.ts to customize:
Deployment
The playground is not intended for production deployment - it’s a development tool. If you want to host it:Troubleshooting
Form not rendering
Check that the node exports a valid Zod schema:Execution fails silently
Check the browser console and terminal for errors. Common issues:- Missing credentials in mock mode OFF
- Invalid input data
- Network errors

