How rauchg/slackin works
Slackin is a Node.js service for public Slack communities: visitors see an organization landing page, submit an email, pass reCAPTCHA, and receive a Slack invitation. It also serves organization metadata, an embeddable live-count iframe badge, and an SVG badge; live counts come from periodic Slack API polling and are pushed to connected clients. The graph follows the sampled server entry point and its explicit calls. Browser asset behavior and some deployment/configuration details were not sampled, so their links are limited to documented or visible references.
Main entry points: index.js HTTP server and routes · slack.js Slack polling and counts · splash.js Landing page renderer · iframe.js Iframe badge renderer
Components 17
Web service
- HTTP server and routes
lib/index.js - Invite validation
lib/index.js - Organization data route
lib/index.js - Live count socket
lib/index.js
Slack data and invites
- Slack polling and counts
lib/slack.js - Slack invitation request
lib/slack-invite.js - Status logging
lib/log.js
Pages and badges
- Landing page renderer
lib/splash.js - Iframe badge renderer
lib/iframe.js - SVG badge renderer
lib/badge.js - Page client assets
lib/assets/client.js - Iframe client assets
lib/assets/iframe.js
External services
- Slack API
- Google reCAPTCHA
Other components
- Community visitor
- Embedding site
- Connected badge clients
Connections 23
- Community visitor → HTTP server and routes: requests pages
lib/index.js - HTTP server and routes → Slack polling and counts: starts polling
lib/index.js - HTTP server and routes → Status logging: attaches logger
lib/index.js - HTTP server and routes → Landing page renderer: renders page
lib/index.js - HTTP server and routes → Iframe badge renderer: renders iframe
lib/index.js - HTTP server and routes → SVG badge renderer: renders badge
lib/index.js - HTTP server and routes → Invite validation: handles invite
lib/index.js - HTTP server and routes → Organization data route: serves metadata
lib/index.js - HTTP server and routes → Live count socket: registers socket
lib/index.js - Invite validation → Google reCAPTCHA: verifies response
lib/index.js - Invite validation → Slack invitation request: requests invitation
lib/index.js - Slack polling and counts → Slack API: fetches team data
lib/slack.js - Slack invitation request → Slack API: invites member
lib/slack-invite.js - Slack polling and counts → Live count socket: emits count changes
lib/index.js - Live count socket → Connected badge clients: pushes count updates
lib/index.js - Slack polling and counts → Organization data route: provides organization counts
lib/index.js - Slack polling and counts → Landing page renderer: provides page counts
lib/index.js - Slack polling and counts → SVG badge renderer: provides badge counts
lib/index.js - Slack polling and counts → Iframe badge renderer: provides iframe counts
lib/index.js - Landing page renderer → Page client assets: loads client script
lib/splash.js - Iframe badge renderer → Iframe client assets: embeds client script
lib/iframe.js - Embedding site → HTTP server and routes: embeds live badge
readme.md - Connected badge clients → HTTP server and routes: connects by socket
readme.md