Skip to content

Webhook relay/proxy tool - capture, inspect, and forward webhooks in real-time

Notifications You must be signed in to change notification settings

plutolaboratories/tunnelhook

Repository files navigation

tunnelhook

This project was created with Better-T-Stack, a modern TypeScript stack that combines React, TanStack Router, Hono, ORPC, and more.

Features

  • TypeScript - For type safety and improved developer experience
  • TanStack Router - File-based routing with full type safety
  • TailwindCSS - Utility-first CSS for rapid UI development
  • shadcn/ui - Reusable UI components
  • Hono - Lightweight, performant server framework
  • oRPC - End-to-end type-safe APIs with OpenAPI integration
  • workers - Runtime environment
  • Drizzle - TypeScript-first ORM
  • SQLite/Turso - Database engine
  • Authentication - Better-Auth
  • Turborepo - Optimized monorepo build system

Getting Started

First, install the dependencies:

bun install

Database Setup

This project uses SQLite with Drizzle ORM.

  1. Start the local SQLite database (optional): D1 local development and migrations are handled automatically by Alchemy during dev and deploy.

  2. Update your .env file in the apps/server directory with the appropriate connection details if needed.

  3. Apply the schema to your database:

bun run db:push

Then, run the development server:

bun run dev

Open http://localhost:3001 in your browser to see the web application. The API is running at http://localhost:3000.

Deployment (Cloudflare via Alchemy)

  • Dev: bun run dev
  • Deploy: bun run deploy
  • Destroy: bun run destroy

For more details, see the guide on Deploying to Cloudflare with Alchemy.

Project Structure

tunnelhook/
├── apps/
│   ├── web/         # Frontend application (React + TanStack Router)
│   └── server/      # Backend API (Hono, ORPC)
├── packages/
│   ├── api/         # API layer / business logic
│   ├── auth/        # Authentication configuration & logic
│   └── db/          # Database schema & queries

Available Scripts

  • bun run dev: Start all applications in development mode
  • bun run build: Build all applications
  • bun run dev:web: Start only the web application
  • bun run dev:server: Start only the server
  • bun run check-types: Check TypeScript types across all apps
  • bun run db:push: Push schema changes to database
  • bun run db:generate: Generate database client/types

About

Webhook relay/proxy tool - capture, inspect, and forward webhooks in real-time

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •