Skip to content

Conversation

@Shivansh-Khunger
Copy link

@Shivansh-Khunger Shivansh-Khunger commented Jan 8, 2026

🚀 Describe your changes clearly

This pull request introduces the initial implementation of the Bindu AG-UI Bridge service, which translates AG-UI protocol events to Bindu A2A JSON-RPC calls and streams results back to the frontend using Server-Sent Events (SSE). The changes include project setup, configuration, API route handlers, event definitions, and utilities for communication with the Bindu agent.

Core Bridge Implementation:

  • Added a Bun + Hono-based service entry point in src/index.ts, including middleware setup, root endpoint, and route mounting for /health and /agui/* APIs.
  • Implemented the main AG-UI run handler in src/handlers/run.ts, which processes run requests, communicates with Bindu, polls for task state, and streams AG-UI events via SSE.
  • Created a Bindu JSON-RPC client in src/clients/bindu.ts to send messages, poll tasks, and check agent health, with error handling and request timeouts.

Event System and Utilities:

  • Defined AG-UI event types and Bindu task states in src/events/types.ts, and implemented an event builder for consistent event formatting in src/events/builder.ts. [1] [2]
  • Added SSE response utilities for formatting and streaming events in src/events/sse.ts.

Project Setup and Documentation:

  • Added package.json with Bun, TypeScript, and Hono dependencies, and a .gitignore for node_modules. [1] [2]
  • Provided a comprehensive README.md with overview, quick start, API documentation, configuration, event mapping, and project structure.
  • Implemented environment-based configuration with sensible defaults in src/config.ts.

✅ Checklist clearly

  • I've tested my changes thoroughly.
  • I've followed the project's style and linting rules.
  • I've updated documentation (if required).

📌 Related issue clearly

Link related issues, if applicable: #123

@Shivansh-Khunger Shivansh-Khunger changed the title Add agui bridge Feature - add AG-UI bridge Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant