Metadata-Version: 2.5
Name: chainnext
Version: 2.13.0
Summary: Chainnext: a Chainlit-compatible framework for building conversational AI.
Project-URL: Homepage, https://github.com/Puyanfar/chainnext
Project-URL: Documentation, https://github.com/Puyanfar/chainnext
Project-URL: Repository, https://github.com/Puyanfar/chainnext
Author: Willy Douhard, Dan Andre Constantini
License: Apache-2.0
Keywords: Agents,LLM,MCP,chainlit,chainnext,chat ui,chatbot ui,conversational ai,copilot,gen ai,langchain,openai
Classifier: Environment :: Web Environment
Classifier: Framework :: FastAPI
Classifier: Programming Language :: JavaScript
Classifier: Topic :: Communications :: Chat
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: User Interfaces
Requires-Python: <3.16,>=3.15.2
Requires-Dist: aiofiles<26.0.0,>=25.1.0
Requires-Dist: asyncer<0.1.0,>=0.0.20
Requires-Dist: click<9.0.0,>=8.5.1
Requires-Dist: dataclasses-json<0.7.0,>=0.6.7
Requires-Dist: fastapi<1.0.0,>=0.165.0
Requires-Dist: filetype<2.0.0,>=1.2.0
Requires-Dist: httpx<1.0.0,>=0.28.1
Requires-Dist: lazify<0.5.0,>=0.4.0
Requires-Dist: literalai<0.2.0,>=0.1.300
Requires-Dist: mcp<2.0.0,>=1.30.0
Requires-Dist: nest-asyncio2<2.0.0,>=1.7.4
Requires-Dist: packaging<27,>=26.3
Requires-Dist: pydantic-settings<3.0.0,>=2.16.3
Requires-Dist: pydantic<3.0.0,>=2.14.4
Requires-Dist: pyjwt<3.0.0,>=2.15.1
Requires-Dist: python-dotenv<2.0.0,>=1.2.4
Requires-Dist: python-multipart<1.0.0,>=0.0.34
Requires-Dist: python-socketio<6.0.0,>=5.18.1
Requires-Dist: starlette<2.0.0,>=1.10.0
Requires-Dist: syncer<3.0.0,>=2.0.3
Requires-Dist: uvicorn<1.0.0,>=0.54.0
Requires-Dist: watchfiles<2.0.0,>=1.3.0
Provides-Extra: custom-data
Requires-Dist: asyncpg<1.0.0,>=0.32.0; extra == 'custom-data'
Requires-Dist: azure-identity<2.0.0,>=1.27.0; extra == 'custom-data'
Requires-Dist: azure-storage-blob<13.0.0,>=12.31.1; extra == 'custom-data'
Requires-Dist: azure-storage-file-datalake<13.0.0,>=12.26.1; extra == 'custom-data'
Requires-Dist: boto3<2.0.0,>=1.44.9; extra == 'custom-data'
Requires-Dist: google-cloud-storage<4.0.0,>=3.17.1; extra == 'custom-data'
Requires-Dist: sqlalchemy<3.0.0,>=2.1.9; extra == 'custom-data'
Provides-Extra: mypy
Requires-Dist: mypy-boto3-dynamodb<2.0.0,>=1.44.0; extra == 'mypy'
Requires-Dist: mypy<3.0.0,>=2.4.1; extra == 'mypy'
Requires-Dist: pandas-stubs<4.0.0,>=3.1.0.261029; extra == 'mypy'
Requires-Dist: types-aiofiles<26.0.0,>=25.1.0.20261107; extra == 'mypy'
Requires-Dist: types-requests<3.0.0,>=2.33.0.20261030; extra == 'mypy'
Provides-Extra: tests
Requires-Dist: aiosqlite<1.0.0,>=0.22.1; extra == 'tests'
Requires-Dist: botbuilder-core<5.0.0,>=4.17.1; extra == 'tests'
Requires-Dist: discord-py<3.0.0,>=2.7.1; extra == 'tests'
Requires-Dist: langchain<2.0.0,>=1.5.2; extra == 'tests'
Requires-Dist: llama-index<1.0.0,>=0.14.26; extra == 'tests'
Requires-Dist: matplotlib<4.0.0,>=3.11.2; extra == 'tests'
Requires-Dist: moto<6.0.0,>=5.2.5; extra == 'tests'
Requires-Dist: openai<4.0.0,>=3.57.0; extra == 'tests'
Requires-Dist: pandas<4.0.0,>=3.1.1; extra == 'tests'
Requires-Dist: plotly<8.0.0,>=7.1.0; extra == 'tests'
Requires-Dist: polars<3.0.0,>=2.1.0; extra == 'tests'
Requires-Dist: pytest-asyncio<2.0.0,>=1.5.0; extra == 'tests'
Requires-Dist: pytest-cov<8.0.0,>=7.1.0; extra == 'tests'
Requires-Dist: pytest<10.0.0,>=9.2.0; extra == 'tests'
Requires-Dist: slack-bolt<2.0.0,>=1.30.0; extra == 'tests'
Requires-Dist: tenacity<10.0.0,>=9.2.1; extra == 'tests'
Requires-Dist: transformers<6.0.0,>=5.24.0; extra == 'tests'
Description-Content-Type: text/markdown

<h1 align="center">Welcome to Chainnext 👋</h1>

<p align="center">
<b>Build python production-ready conversational AI applications in minutes, not weeks ⚡️</b>
</p>

<p align="center">
    <a href="https://pypi.org/project/chainnext" rel="nofollow"><img alt="PyPI" src="https://img.shields.io/pypi/v/chainnext" style="max-width:100%;"></a>
    <a href="https://pypi.org/project/chainnext" rel="nofollow"><img alt="Downloads" src="https://img.shields.io/pypi/dm/chainnext" style="max-width:100%;"></a>
    <a href="https://github.com/Puyanfar/chainnext/graphs/contributors" rel="nofollow"><img alt="Contributors" src="https://img.shields.io/github/contributors/Puyanfar/chainnext" style="max-width:100%;"></a>
    <a href="https://github.com/Puyanfar/chainnext/actions/workflows/ci.yaml" rel="nofollow"><img alt="CI" src="https://github.com/Puyanfar/chainnext/actions/workflows/ci.yaml/badge.svg" style="max-width:100%;"></a>
</p>

Chainnext is a fork of the archived [Chainlit](https://github.com/Chainlit/chainlit) project. The goal is to keep the familiar Chainlit app API while distributing a maintained package under a new name.

<p align="center">
    <a href="https://github.com/Puyanfar/chainnext"><b>Repository</b></a>  •
    <a href="https://docs.chainlit.io"><b>Upstream Chainlit docs</b></a>  •
    <a href="https://github.com/Chainlit/cookbook"><b>Upstream cookbook</b></a>
</p>

## Names: PyPI vs import vs CLI

The **PyPI / GitHub name is `chainnext`**. The **Python import, CLI, and on-disk config names stay `chainlit`** so existing apps keep working.

| What                  | Name          | Example                                            |
| --------------------- | ------------- | -------------------------------------------------- |
| GitHub repository     | `chainnext`   | `https://github.com/Puyanfar/chainnext`            |
| PyPI package          | `chainnext`   | `pip install chainnext`                            |
| Python import         | `chainlit`    | `import chainlit as cl` / `from chainlit import *` |
| CLI                   | `chainlit`    | `chainlit run app.py` / `chainlit hello`           |
| Config directory      | `.chainlit/`  | `.chainlit/config.toml`                            |
| Welcome file          | `chainlit.md` | project-root markdown shown in the UI              |
| Environment variables | `CHAINLIT_*`  | `CHAINLIT_AUTH_SECRET`, `CHAINLIT_PORT`, …         |

Do **not** `pip install chainlit` for this fork, and do **not** `import chainnext` — that module does not exist.

## Installation

Chainnext requires **Python 3.15.2 or newer**. Open a terminal and run:

```sh
pip install chainnext
chainlit hello
```

If this opens the `hello app` in your browser, you're all set!

### Development version

The latest in-development version can be installed straight from GitHub with:

```sh
pip install git+https://github.com/Puyanfar/chainnext.git#subdirectory=backend/
```

(Requires Node.js 26.13.1+, npm 12.2.3+, and pnpm 12.22.0.)

## 🚀 Quickstart

### 🐍 Pure Python

Create a new file `demo.py` with the following code:

```python
import chainlit as cl


@cl.step(type="tool")
async def tool():
    # Fake tool
    await cl.sleep(2)
    return "Response from the tool!"


@cl.on_message  # this function will be called every time a user inputs a message in the UI
async def main(message: cl.Message):
    """
    This function is called every time a user inputs a message in the UI.
    It sends back an intermediate response from the tool, followed by the final answer.

    Args:
        message: The user's message.

    Returns:
        None.
    """

    # Call the tool
    tool_res = await tool()

    await cl.Message(content=tool_res).send()
```

Now run it!

```sh
chainlit run demo.py -w
```

<img src="/images/quick-start.png" alt="Quick Start"></img>

## 📚 More Examples - Cookbook

You can find various examples of Chainlit-compatible apps [here](https://github.com/Chainlit/cookbook) that leverage tools and services such as OpenAI, Anthropic, LangChain, LlamaIndex, ChromaDB, Pinecone and more.

Tell us what you would like to see added in Chainnext using the GitHub issues.

## 💁 Contributing

We welcome bug fixes and security fixes. At this time, pull requests that introduce new features are not reviewed or merged; please open an issue to discuss feature ideas first.

For detailed information on how to contribute, see [here](/CONTRIBUTING.md).

## 📃 License

Chainnext is a fork of Chainlit and is open-source under the [Apache 2.0](LICENSE) license.
