---
title: "Engineering nits: Building a Storybook for Slack Block Kit"
description: "incident.io built a Storybook-style catalogue for its 70+ Slack modals and similar number of messages by extending its Go modal registration framework so every `modal.Register` call also supplies named example variants built from test fixtures."
url: "https://swe.quest/articles/engineering-nits-building-a-storybook-for-slack-block-kit-532065c40b7a6e12"
canonical: "https://incident.io/blog/slack-previews"
source: "incident.io"
published: "2023-11-28"
difficulty: "medium"
kind: "Case study"
reading_minutes: 5
tags: ["developer-productivity","go","developer-tools","communications"]
---

# Engineering nits: Building a Storybook for Slack Block Kit

A post on [incident.io](https://swe.quest/sources/incident-io.md), published 2023-11-28, 5 min read, Case study. Original: [https://incident.io/blog/slack-previews](https://incident.io/blog/slack-previews)

## Summary

incident.io built a Storybook-style catalogue for its 70+ Slack modals and similar number of messages by extending its Go modal registration framework so every \`modal.Register\` call also supplies named example variants built from test fixtures. A \`slackpreview\` package collects these templates, and an API endpoint with a small Go template renders an index page linking each variant to Slack's Block Kit Builder, which serialises the whole Block Kit payload into a shareable URL. Because examples are cheap to write, they are required for every modal, letting anyone, including non-engineers, preview any Slack UI state within seconds.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)
- [Go](https://swe.quest/tags/go.md) (Languages)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Communications](https://swe.quest/tags/communications.md) (Domains)

## Prerequisites

- Slack app development
- Go init functions ([easy posts on Go](https://swe.quest/tags/go.md?difficulty=easy))

## Keywords

Slack Block Kit, Block Kit Builder, Storybook, incident.io

## Related posts

- [Agents need good developer experience too](https://swe.quest/articles/agents-need-good-developer-experience-too-0e7b893ce6372fdc.md): Modal · 2025-11-20 · Easy · 7 min read · Developer productivity, AI agents, AI for coding, API design
  Developer experience principles that make humans productive also help coding agents, because both depend on tight write-run-observe feedback loops.
- [Building a great developer experience at a startup](https://swe.quest/articles/building-a-great-developer-experience-at-a-startup-9f652c5e6c2db88a.md): incident.io · 2022-10-04 · Medium · 8 min read · Developer productivity, Go, TypeScript, Observability, CI/CD
  incident.io treats developer experience as leverage for sustaining engineering pace without accruing technical or product debt.
- [Building with the OpenAI Apps SDK: A Field Guide](https://swe.quest/articles/building-with-the-openai-apps-sdk-a-field-guide-4d32891d09b8bb2e.md): Render · 2025-10-29 · Medium · 8 min read · AI agents, LLMs, Developer tools, TypeScript, Debugging
  OpenAI's Apps SDK extends the Model Context Protocol with a widget layer: tools that return structuredContent with \`\_meta.openai/outputTemplate\` metadata get rendered as inline React components in ChatGPT.
- [Empowering Engineers with AI](https://swe.quest/articles/empowering-engineers-with-ai-c490ba73d4a1f2fc.md): Slack Engineering · 2024-11-08 · Easy · 7 min read · AI for coding, RAG & retrieval, LLMs, Developer productivity, ML platforms
  Slack built a set of internal generative-AI developer tools that it estimates will save 10,000+ engineering hours this year.
- [Lessons learned from building our first AI product](https://swe.quest/articles/lessons-learned-from-building-our-first-ai-product-85b401bfcc88ff2c.md): incident.io · 2024-01-17 · Medium · 12 min read · LLMs, Product engineering, Evaluation
  incident.io built suggested incident summaries with OpenAI: each time a responder posts an update, GPT proposes a new summary from the update, the Slack conversation and the previous summary, and a human accepts, edits or rejects it.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
