irc-framework is a comprehensive and performant IRC framework designed for Node.js, suitable for building both IRC bots and full-fledged IRC clients. The current stable version is 4.14.0, with frequent releases (roughly monthly to bi-monthly) indicating active development. It emphasizes being lightweight, easy to use, and scalable for larger applications. Key differentiators include its compliance with IRCv3 specifications, support for multiple and auto-detected character encodings, and a complete test suite. The framework abstracts the IRC protocol, handles multiple simultaneous server connections, transparently manages server PONGing, and provides an event-driven model for handling IRC messages.
npm install irc-frameworkVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to create an IRC bot, connect to a server, and respond to messages with basic commands like 'hello' and '!join'.
Upgrade your Node.js runtime to version 14 or newer.
Review message parsing and handling logic. If you need to process malformed raw IRC data, subscribe to the `raw` event instead of `message` or other parsed events.
Implement a custom `on('ctcp request', ...)` handler to respond to `CLIENTINFO` if your application requires it.Verify SOCKS configuration and potentially update related dependencies if experiencing connection issues.
Implement an event handler for `irc error: 'banned'` or similar to gracefully handle bans, inform the user, or attempt to reconnect with different credentials/IP if appropriate. (Introduced in v4.10.0)
Ensure your server supports the chosen SASL mechanism. If on an affected version (pre-4.13.1), upgrading to `irc-framework@4.13.1` or newer may resolve internal detection issues.
Upgrade to `irc-framework@4.12.0` or newer, which includes a fix for `user.host` not being set during connection.
No dependency data recorded yet.