How zahassanyum/raycast-slack-summaries works
Project type and purpose
• This is a Raycast extension (“Slack Summarizer”) written in TypeScript/React that lives entirely on the client (inside Raycast).
• Its job is to let a user pick a Slack channel or thread, fetch the text, send it to OpenAI, and render a bullet-point summary—all without any custom server.
File structure
• Top level: configuration files (.gitignore, tsconfig.json, package.json), asset folders (assets, metadata).
• src/ contains all the code:
• Two command entry points: summarize-channel.tsx and summarize-thread.tsx
• A components folder with SummaryDisplay.tsx for rendering results
• A utils folder with:
– slackAuth.js: handles PKCE OAuth flow and stores tokens in Raycast secure storage
– slackApi.js: calls Slack REST endpoints to fetch channels, threads, messages
– openaiApi.js: wraps OpenAI HTTP calls
– summarizer.js: coordinates fetching Slack data + calling OpenAI
– useToast.ts: UI notifications
README for additional insights
• Two Raycast commands (channel and thread)
• Uses Slack OAuth with no server, stores tokens locally
• Requires OpenAI API key and Slack scopes
• Describes features, limitations, and custom-prompt support