Skip to content

adityavermaa-dev/IntentTrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

21 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ IntentTrace

Intent-driven API debugging UI powered by Generative AI

IntentTrace is a developer-focused debugging tool that replaces dashboards, logs, and guesswork with an intent-first interface. Instead of navigating tools manually, developers describe their API issue in plain English β€” and the UI dynamically assembles the right debugging components to investigate the problem.

This is not a chatbot.
This is Generative UI for debugging.


🌐 Live Demo

πŸ‘‰ Try IntentTrace live:
https://intent-trace.vercel.app

Describe an API issue in plain English and see the UI assemble the right debugging tools instantly.


✨ What makes IntentTrace different?

Traditional tools:

  • Show everything
  • Require manual navigation
  • Force developers to know where to look

IntentTrace:

  • Starts with intent
  • Shows only relevant debugging tools
  • Hides noise
  • Adapts the UI per problem

β€œDescribe the problem β†’ Get the tools you need”


🧠 How it works (High-level)

  1. Developer types a debugging problem
    Example:

    • β€œJWT expired”
    • β€œWhich APIs are slow?”
    • β€œCORS error in browser but works in Postman”
  2. AI analyzes the intent

  3. Based on the intent, the system:

    • Selects relevant debugging components
    • Renders them directly in the UI
  4. No chat UI, no explanations unless needed β€” just tools.


🧩 Core Features

πŸ” Intent-Based Component Rendering

  • AI decides which debugging cards to show
  • No hardcoded conditions
  • No manual toggles

πŸ” Authentication Flow Debugging

AuthFlowCard

  • Visualizes login β†’ token β†’ protected API flow
  • Clearly highlights failures (e.g. expired tokens, auth issues)
  • Renders only when auth-related intent is detected

πŸͺͺ JWT Token Inspection

JWTDecoderCard

  • Decodes JWT header & payload
  • Detects token expiration
  • Explains why authentication fails
  • Never renders unless JWT-related intent exists

🌐 Request / Response Debugging

RequestResponseCard

  • Displays HTTP method, endpoint, status, and error message
  • Useful for 401s, 500s, and failed API calls

⚑ Performance & Latency Analysis

LatencyChartCard

  • Highlights slow APIs
  • Shows response times
  • Renders only for performance-related issues

EndpointListCard

  • Lists affected endpoints
  • Shows which APIs are slow and by how much

🧠 Error Insight & Root Cause Analysis

ErrorInsightCard

  • Explains possible reasons behind failures
  • Helps developers decide next steps
  • Only shown when error context exists

πŸ§‘β€πŸ’» Example Scenarios

πŸ”Έ β€œJWT expired”

UI renders:

  • Authentication Flow
  • JWT Token Inspector

πŸ”Έ β€œWhich APIs are slow?”

UI renders:

  • Performance Overview
  • Affected Endpoints

πŸ”Έ β€œCORS error in browser but works in Postman”

UI renders:

  • Request / Response Debug
  • Error Insights

No unnecessary cards.
No irrelevant tools.


πŸ—οΈ Tech Stack

  • React + Vite
  • Tambo AI (Generative UI & intent-based rendering)
  • Zod (component prop schemas)
  • Modern CSS (dark developer-first UI)

πŸ“ Project Structure

src/
β”œβ”€β”€ app/
β”‚   └── Layout.jsx                     # Application layout wrapper
β”‚
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ core/                          # Core application flow
β”‚   β”‚   β”œβ”€β”€ DynamicCanvas.jsx          # Intent-driven UI renderer (Tambo output)
β”‚   β”‚   β”œβ”€β”€ EmptyState.jsx             # Initial state with example prompts
β”‚   β”‚   └── PromptInput.jsx            # Natural language input interface
β”‚   β”‚
β”‚   β”œβ”€β”€ debug/                         # Intent-driven debugging UI components
β”‚   β”‚   β”œβ”€β”€ AuthFlowCard.jsx           # Authentication flow & token failure analysis
β”‚   β”‚   β”œβ”€β”€ CorsInsightCard.jsx        # CORS error detection & browser/Postman mismatch
β”‚   β”‚   β”œβ”€β”€ EndpointListCard.jsx       # Affected API endpoints with response times
β”‚   β”‚   β”œβ”€β”€ ErrorInsightCard.jsx       # Root-cause explanations and debugging insights
β”‚   β”‚   β”œβ”€β”€ JWTDecoderCard.jsx         # JWT token inspection & expiry detection
β”‚   β”‚   β”œβ”€β”€ LatencyChartCard.jsx       # API latency & performance visualization
β”‚   β”‚   └── RequestResponseCard.jsx    # HTTP request / response debugging
β”‚   β”‚
β”‚   β”œβ”€β”€ tambo/                         # Tambo UI & SDK components
β”‚   β”‚   β”œβ”€β”€ base/                      # Internal Tambo rendering primitives
β”‚   β”‚   β”œβ”€β”€ control-bar.tsx            # Command / interaction UI
β”‚   β”‚   β”œβ”€β”€ message-input.tsx          # Prompt input for AI threads
β”‚   β”‚   β”œβ”€β”€ message.tsx                # AI message rendering
β”‚   β”‚   β”œβ”€β”€ thread-content.tsx         # Conversation thread container
β”‚   β”‚   └── ...                        # Supporting Tambo components
β”‚   β”‚
β”‚   └── ui/                            # Reusable UI primitives
β”‚       β”œβ”€β”€ Badge.jsx                  # Status & label badges
β”‚       β”œβ”€β”€ Card.jsx                   # Base card container
β”‚       β”œβ”€β”€ CodeBlock.jsx              # Syntax-highlighted code blocks
β”‚       └── Divider.jsx                # Visual separators
β”‚
β”œβ”€β”€ data/                              # Mock debugging data
β”‚   β”œβ”€β”€ mockLogs.js                    # Simulated API logs
β”‚   β”œβ”€β”€ mockMetrics.js                 # Performance & latency metrics
β”‚   └── mockRequests.js                # Sample HTTP requests
β”‚
β”œβ”€β”€ intents/                           # Intent classification & mapping
β”‚   β”œβ”€β”€ intentMap.js                   # Intent β†’ component selection logic
β”‚   └── samplePrompts.js               # Example user debugging prompts
β”‚
β”œβ”€β”€ tambo/                             # Generative UI integration layer
β”‚   β”œβ”€β”€ registry.ts                   # Central registry for all Tambo components
β”‚   β”œβ”€β”€ thread-hooks.ts               # Hooks for managing AI conversation threads
β”‚   └── utils.ts                      # Shared helpers for Tambo integration
β”‚
β”œβ”€β”€ styles/                            # Styling & theming
β”‚   β”œβ”€β”€ globals.css                   # Global styles
β”‚   └── theme.css                     # Theme variables (dark developer UI)
β”‚
β”œβ”€β”€ utils/                             # General helper utilities
β”‚   β”œβ”€β”€ formatters.js                 # Data formatting helpers
β”‚   └── helpers.js                    # Miscellaneous utilities
β”‚
β”œβ”€β”€ App.jsx                            # Root application component
└── main.jsx                           # Application entry point

πŸ”Œ Tambo Integration

All debugging components are registered centrally in tambo.ts with:

  • Name
  • Description
  • Intent guidance
  • Zod propsSchema

This allows the AI to:

  • Understand when to render a component
  • Avoid rendering irrelevant tools
  • Keep the UI clean and focused

🎯 Why this matters

IntentTrace demonstrates a new UX pattern:

AI doesn’t answer questions β€” it assembles interfaces.

This approach:

  • Reduces cognitive load
  • Speeds up debugging
  • Makes complex systems easier to reason about

🏁 Status

βœ… Core functionality complete
βœ… Stable generative UI behavior
βœ… Demo-ready for hackathons / showcases


πŸ“œ License

MIT


Built for developers who debug under pressure.

About

IntentTrace is a developer-focused debugging tool that replaces dashboards, logs, and guesswork with an intent-first interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors