How chatterino/chatterino2 works
Chatterino 2 is a Twitch chat client. Its broad runtime is organized around an application coordinator that initializes account, window, command, notification, and Twitch-facing services; users interact through the chat UI and those services. The tree also shows substantial message construction, moderation/highlight, plugin, and third-party provider subsystems. Evidence is limited to the README, the supplied excerpts, and SOURCE INDEX references; edges are omitted where those sources do not establish a caller or data transfer.
Main entry points: Application.cpp Application coordinator · NotificationController.cpp Notifications · main.cpp Application entry · NetworkManager.cpp Network manager
Components 20
Application runtime
- Application entry
src/main.cpp - Application coordinator
src/Application.cpp - Startup arguments
src/common/Args.hpp - Network manager
src/common/network/NetworkManager.cpp
Chat experience
- Window manager
src/singletons/WindowManager.cpp - Chat channel
src/common/Channel.hpp - Chat messages
src/messages/Message.hpp - Message builder
src/messages/MessageBuilder.hpp - Message elements
src/messages/MessageElement.hpp
Twitch services
- Account controller
src/controllers/accounts/AccountController.hpp - Twitch IRC server
src/providers/irc/IrcConnection2.cpp - Twitch PubSub
src/providers/twitch/PubSubManager.cpp - Twitch EventSub
src/providers/twitch/eventsub/Controller.cpp - Live updates
src/providers/liveupdates/BasicPubSubManager.hpp
Additional capabilities
- Commands
src/controllers/commands/CommandController.cpp - Highlights
src/controllers/highlights/HighlightController.cpp - Notifications
src/controllers/notifications/NotificationController.cpp - Lua plugins
src/controllers/plugins/PluginController.cpp - Third-party providers
src/providers
Other components
- Chat user
Connections 17
- Chat user → Application entry: starts client
README.md - Application coordinator → Account controller: loads accounts
src/Application.cpp - Application coordinator → Window manager: initializes windows
src/Application.cpp - Application coordinator → Commands: creates controller
src/Application.cpp - Application coordinator → Notifications: creates controller
src/Application.cpp - Application coordinator → Highlights: creates controller
src/Application.cpp - Application coordinator → Twitch IRC server: initializes and connects
src/Application.cpp - Application coordinator → Twitch PubSub: creates service
src/Application.cpp - Application coordinator → Live updates: initializes updates
src/Application.cpp - Application coordinator → Twitch EventSub: initializes event APIs
src/Application.cpp - Application entry → Startup arguments: reads arguments
src/main.cpp - Network manager → Network manager: manages requests
src/common/network/NetworkManager.cpp - Commands → Chat channel: uses channel context
src/controllers/commands/CommandController.cpp - Notifications → Chat messages: uses messages
src/controllers/notifications/NotificationController.cpp - Notifications → Message builder: uses builder
src/controllers/notifications/NotificationController.cpp - Window manager → Message elements: uses message elements
src/singletons/WindowManager.cpp - Twitch PubSub → Live updates: uses manager
src/providers/twitch/PubSubManager.cpp