{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/5"}],"enrichment":{"capability":"Provides the core message routing layer for Jupyter AI, automatically detecting chat sessions and routing messages to registered callbacks based on message type.","skillfed_tags":["jupyterlab-extension","message-routing","jupyter-ai"],"use_cases":["Build a Jupyter AI extension that responds to custom slash commands by registering a callback with observe_slash_cmd_msg and pattern matching.","Detect when users start new chat sessions to initialize extension-specific state or connect to external services.","Route regular chat messages to a custom handler for logging, filtering, or preprocessing before they reach the main chat interface.","React to chat document resets (when .chat files are modified directly) to synchronize extension state with the updated document.","Implement multi-room chat monitoring by registering separate callbacks for different room_ids to track activity across sessions."],"what_it_does":"jupyter_ai_router is a JupyterLab server extension that implements the foundational message routing layer for Jupyter AI. It automatically detects when new chat sessions are initialized and establishes observers on their message streams, then routes incoming messages to registered callbacks based on type\u2014slash commands (like /help or /ai-generate) are separated from regular chat messages. Other extensions register callbacks via methods like observe_chat_init, observe_slash_cmd_msg, and observe_chat_msg to handle specific events without managing chat lifecycle themselves.\n\nThe router supports regex pattern matching for slash command handlers, allowing extensions to match exact commands or families of commands. It depends on jupyter-server and jupyterlab-chat, making it part of the Jupyter AI ecosystem rather than a standalone tool. The extension is actively maintained, supports Python 3.9 through 3.13, and is designed to be consumed by other Jupyter AI extensions via the web app settings dictionary.","worth_installing":"Yes, if you are building a Jupyter AI extension and need to handle chat events. The router eliminates boilerplate chat lifecycle management and provides a clean callback interface. Install friction is low, maintenance is active, and the BSD license is unrestrictive. Not applicable for standalone use outside the Jupyter AI ecosystem."},"id":"jupyter-ai-router","links":{"html":"https://skillfed.io/packages/jupyter-ai-router","md":"https://skillfed.io/packages/jupyter-ai-router.md","pypi":"https://pypi.org/project/jupyter-ai-router/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-08","license_spdx":null,"license_treatment":"permissive","name":"jupyter-ai-router","python_support":"supports_current","summary":"Core routing layer of Jupyter AI"},"popularity":{"monthly_downloads":92825,"position":13419,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.7"}
