- Display live chat from a Twitch channel
- Show follower and subscriber counts
- Track custom goals such as follower or subscription milestones
- Look up stream status, viewer counts, and channel metadata
- Retrieve clips, schedules, and channel information
- Send chat messages to a Twitch channel
- Search channels, games, and categories
Common use cases and example apps
How Twitch connections work
Twitch uses OAuth 2.0 for authentication. When you connect Twitch, you authorize Lovable to access Twitch on behalf of the authenticated account. Twitch uses Lovable’s gateway architecture for secure OAuth handling and automatic token refresh. See Gateway-based connectors for details on authentication and usage limits. Each Twitch connection is tied to one Twitch account. You can create multiple connections if needed. For example, you might connect separate accounts for development, production, or different creators.How to connect Twitch
Workspace admins and owners can connect Twitch. When the connection is created, Twitch becomes available across all projects in the workspace.Prerequisites
Before connecting Twitch, make sure you have:- A Twitch account
- A Lovable workspace admin or owner role
Step 1: Choose the account to connect
Your connection uses a Twitch account directly. No developer application or API key is required. Make sure the connected account has the permissions required for your use case. For example:- To read follower data, the account must have moderator access for the channel.
- To send chat messages, the account must have permission to post in the channel.
- To access subscription data, the connected account must be the channel owner.
Step 2: Connect Twitch to Lovable
- Open Connectors and select Twitch.
- Click Add connection.
-
In Display name, enter a name for the connection. For example
Twitch Production. -
Configure scopes (optional)
Expand Advanced settings to configure the Twitch API permissions your app needs.
Default scopes include:
user:read:email— View the account’s emailchannel:read:subscriptions— View channel subscription datamoderator:read:followers— View follower data for moderated channelsuser:write:chat— Send messages to Twitch chat
- Click Connect. A Twitch authorization window will open. Make sure pop-ups are allowed.
- Log in to Twitch, review the requested permissions, and click Authorize.
Limitations
The Twitch connector currently cannot:-
Read Twitch chat in real time through the gateway
Twitch chat uses IRC over WebSocket, which cannot be proxied through the Lovable gateway. To read chat messages, your app must connect directly to Twitch’s chat endpoint:wss://irc-ws.chat.twitch.tvReading public chat does not require authentication. Sending chat messages through the Twitch API does require authentication. -
Receive EventSub webhooks
Incoming Twitch events such as stream start notifications or follow events are not currently supported. -
Support per-user Twitch login
Each connection authenticates a single Twitch account. End users of your app cannot connect their own Twitch accounts through this connector.
Manage your connection
Connections are managed from Connectors: select , then open the connection.- Unlink projects to remove access from specific projects while keeping the connection available for others. See Unlink projects from a connection for the steps.
- Delete the connection to remove it from the workspace entirely. Deleting is permanent. It removes the credentials from all linked projects, and app features that use stop working until a new connection is added. See Delete a connection for the steps and who can delete.