A webhook bridge service that forwards Sentry error notifications to Slack.
- Convert Sentry events to Slack messages
- Support for 3 message formats:
- Basic: Essential error information and stack trace
- Detailed: Comprehensive info including browser, OS, tags, and user activity
- Grouped: Error pattern and frequency analysis (coming soon)
- Source code context display
- Error location highlighting
- Real-time notifications
git clone https://github.com/fabric0de/Slack-Webhook-in-Sentry
cd Slack-Webhook-in-Sentry
npm installCreate a .env file and set the following variables:
NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_supabase_anon_keyCreate the following tables in Supabase:
create table webhooks (
id uuid default uuid_generate_v4() primary key,
created_at timestamp with time zone default timezone('utc'::text, now()) not null,
slack_webhook_url text not null,
message_format text default 'basic'::text,
name text
);create table webhook_events (
id uuid default uuid_generate_v4() primary key,
created_at timestamp with time zone default timezone('utc'::text, now()) not null,
webhook_id uuid references webhooks(id),
event_type text
);- Create a Slack Incoming Webhook URL
- Register a new webhook through the web interface
- Add the generated webhook URL to your Sentry webhook settings
POST /api/webhooks/[id]: Receives Sentry events and forwards them to Slack
- Error type and message
- Location and environment
- Source code context
- Simple stack trace
- All Basic Format information
- Browser/OS information
- User information
- Recent activity history
- Tag information
- Additional context data
npm run devnpm run build- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
MIT License