Metadata-Version: 2.5
Name: chainlit-ng
Version: 3.0.0a3
Summary: Chainlit NG: an actively maintained fork of Chainlit for production conversational AI apps.
Project-URL: Homepage, https://github.com/JonasKenke/chainlit-ng
Project-URL: Repository, https://github.com/JonasKenke/chainlit-ng
Project-URL: Issues, https://github.com/JonasKenke/chainlit-ng/issues
Project-URL: Changelog, https://github.com/JonasKenke/chainlit-ng/blob/main/CHANGELOG.md
Author: Willy Douhard, Dan Andre Constantini
Maintainer: Jonas Kenke
License: Apache-2.0
Keywords: Agents,LLM,MCP,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.15.0,>=3.10
Requires-Dist: aiofiles>=23.1.0
Requires-Dist: asyncer<0.1.0,>=0.0.8
Requires-Dist: audioop-lts<0.3.0,>=0.2.1; python_version >= '3.13'
Requires-Dist: click<9.0.0,>=8.1.3
Requires-Dist: croniter<7.0.0,>=6.0.0
Requires-Dist: dataclasses-json<0.7.0,>=0.6.7
Requires-Dist: fastapi>=0.116.1
Requires-Dist: filetype<2.0.0,>=1.2.0
Requires-Dist: httpx>=0.23.0
Requires-Dist: lazify<0.5.0,>=0.4.0
Requires-Dist: mcp<3.0.0,>=2.0.0
Requires-Dist: nest-asyncio<2.0.0,>=1.6.0
Requires-Dist: opentelemetry-api<2.0.0,>=1.45.1
Requires-Dist: packaging>=23.1
Requires-Dist: pydantic-settings>=2.14.2
Requires-Dist: pydantic<3.0.0,>=2.12
Requires-Dist: pyjwt[crypto]<3.0.0,>=2.13.0
Requires-Dist: python-dotenv<2.0.0,>=1.0.0
Requires-Dist: python-multipart<1.0.0,>=0.0.30
Requires-Dist: python-socketio<6.0.0,>=5.11.0
Requires-Dist: starlette>=0.47.2
Requires-Dist: syncer<3.0.0,>=2.0.3
Requires-Dist: tomli<3.0.0,>=2.0.1
Requires-Dist: uvicorn>=0.35.0
Requires-Dist: watchfiles<2.0.0,>=1.1.1
Provides-Extra: custom-data
Requires-Dist: aiohttp<4.0.0,>=3.9.0; extra == 'custom-data'
Requires-Dist: asyncpg<1.0.0,>=0.30.0; extra == 'custom-data'
Requires-Dist: azure-identity<2.0.0,>=1.14.1; extra == 'custom-data'
Requires-Dist: azure-storage-blob<13.0.0,>=12.24.0; extra == 'custom-data'
Requires-Dist: azure-storage-file-datalake<13.0.0,>=12.14.0; extra == 'custom-data'
Requires-Dist: boto3<2.0.0,>=1.34.73; extra == 'custom-data'
Requires-Dist: google-cloud-storage<4.0.0,>=2.19.0; extra == 'custom-data'
Requires-Dist: sqlalchemy[asyncio]<3.0.0,>=2.0.28; extra == 'custom-data'
Provides-Extra: mypy
Requires-Dist: mypy-boto3-dynamodb<2.0.0,>=1.34.113; extra == 'mypy'
Requires-Dist: mypy<3.0.0,>=2.0.0; extra == 'mypy'
Requires-Dist: pandas-stubs<4.0.0,>=2.2.2; (python_version >= '3.9') and extra == 'mypy'
Requires-Dist: types-aiofiles<26.0.0,>=23.1.0.5; extra == 'mypy'
Requires-Dist: types-requests<3.0.0,>=2.31.0.2; extra == 'mypy'
Provides-Extra: otel
Requires-Dist: opentelemetry-api<2.0.0,>=1.45.1; extra == 'otel'
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.45.1; extra == 'otel'
Requires-Dist: opentelemetry-sdk<2.0.0,>=1.45.1; extra == 'otel'
Provides-Extra: redis
Requires-Dist: redis<7.0,>=5.0; extra == 'redis'
Provides-Extra: tests
Requires-Dist: aiosqlite<1.0.0,>=0.20.0; extra == 'tests'
Requires-Dist: azure-ai-agents>=1.2.0b3; extra == 'tests'
Requires-Dist: botbuilder-core<5.0.0,>=4.15.0; extra == 'tests'
Requires-Dist: discord<3.0.0,>=2.3.2; extra == 'tests'
Requires-Dist: langchain>=1.0.0; extra == 'tests'
Requires-Dist: llama-index<1.0.0,>=0.13.0; extra == 'tests'
Requires-Dist: matplotlib<4.0.0,>=3.7.1; extra == 'tests'
Requires-Dist: moto<6.0.0,>=5.0.14; extra == 'tests'
Requires-Dist: openai<3.0.0,>=2.0.0; extra == 'tests'
Requires-Dist: opentelemetry-exporter-otlp-proto-http<2.0.0,>=1.45.1; extra == 'tests'
Requires-Dist: opentelemetry-sdk<2.0.0,>=1.45.1; extra == 'tests'
Requires-Dist: pandas<4.0.0,>=2.2.2; extra == 'tests'
Requires-Dist: plotly<8.0.0,>=7.0.0; extra == 'tests'
Requires-Dist: polars<3.0.0,>=2.0.0; extra == 'tests'
Requires-Dist: pytest-asyncio<2.0.0,>=1.0.0; extra == 'tests'
Requires-Dist: pytest-cov<8.0.0,>=7.1.0; extra == 'tests'
Requires-Dist: pytest<10.0.0,>=8.3.2; extra == 'tests'
Requires-Dist: redis<7.0,>=5.0; extra == 'tests'
Requires-Dist: semantic-kernel<2.0.0,>=1.24.0; extra == 'tests'
Requires-Dist: slack-bolt<2.0.0,>=1.18.1; extra == 'tests'
Requires-Dist: tenacity<10.0.0,>=9.0.0; extra == 'tests'
Requires-Dist: transformers<6.0,>=5.0; extra == 'tests'
Description-Content-Type: text/markdown

<h1 align="center">Chainlit NG</h1>

<p align="center">
  <b>Build production-ready conversational AI applications in Python.</b><br />
  Tool-call approvals, agent questions, observability, and a modern React 19 frontend.
</p>

> **Fork notice:** Chainlit NG is an independent fork of the original [Chainlit](https://github.com/Chainlit/chainlit) project. The upstream project is no longer actively maintained. This line continues development with security fixes and new interaction features. Source, issues, and releases: [JonasKenke/chainlit-ng](https://github.com/JonasKenke/chainlit-ng).

## Install

```sh
pip install chainlit-ng
```

Requires Python 3.10 or newer.

The Python import is unchanged:

```python
import chainlit as cl
```

The CLI is `chainlit-ng`. The `chainlit` command remains as an alias, so existing scripts and deployment commands keep working.

```sh
chainlit-ng hello
```

## Quickstart

Create `demo.py`:

```python
import chainlit as cl


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


@cl.on_message
async def main(message: cl.Message):
    tool_res = await tool()
    await cl.Message(content=tool_res).send()
```

Run it with auto-reload:

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

## What's new in 3.0

- **Tool-call approvals** with schema-generated edit forms and request-changes feedback.
- **`cl.ask` questions** with options, free text, typed multi-field forms, checkbox multi-select, optional fields, and explicit answer provenance.
- **Thread sharing** with opt-in, read-only grants for named users.
- **Safer MCP**: named servers, a user-server URL allowlist, and per-user OAuth.
- **OpenTelemetry export** with a fixed redaction allowlist.
- **Skills, prompt gallery, and scheduled prompts.**
- **UI improvements**: message timestamps, compact chain-of-thought, side-view by element id, and a configurable upload directory.

Screenshots and the full feature overview are in the [repository README](https://github.com/JonasKenke/chainlit-ng#readme).

## Security

Security fixes in this line include the MCP fixes for CVE-2026-45018 and CVE-2026-45019, Azure AD hybrid state and `id_token` verification with a per-login nonce, lone-surrogate request handling, element ownership checks, upload validation, markdown and media hardening, thread-grant ACLs, and OpenTelemetry redaction and export bounds. This is not a claim that every upstream bug is fixed.

See the [MCP advisory](../docs/security-advisory-2026-mcp.md) and the [changelog](../CHANGELOG.md).

## Migrating from Chainlit 2.x

The [3.0 migration guide](../docs/migration-3.0.md) covers the package and CLI rename, the npm package rename, the Recoil to Zustand state change, and breaking configuration updates.

```sh
pip uninstall chainlit
pip install chainlit-ng==3.0.0
```

## Documentation

Guides for approvals, questions, thread sharing, MCP OAuth, telemetry, skills, and scheduled prompts live in the [docs directory](../docs).

## License

Apache License 2.0. Chainlit NG is an independent fork of [Chainlit](https://github.com/Chainlit/chainlit); the original authors and contributors retain credit for the code and documentation they wrote.
