How chainlit/cookbook works
Project type and purpose
• This is an open-source monorepo (“Chainlit Cookbook”) containing a collection of standalone demo projects. Each folder under the root is a self-contained Chainlit chatbot UI example, illustrating different features, LLM providers, or integrations.
File structure
• Top-level:
• .gitignore, README.md – repo-wide configuration and entrypoint documentation.
• One directory per demo (e.g., ai-web-search-linkup, anthropic-chat, custom-frontend, react-native-chat, etc.).
• Inside each demo folder:
• app.py – the Python Chainlit application entrypoint.
• chainlit.md – Chainlit configuration and UI annotations.
• requirements.txt and .env.example – dependencies and environment-variable templates.
• Optional subfolders (public, src, frontend) hold static assets, React/Vue code, or helper modules.
• “archive” contains older or experimental demos.
README for additional insights
• The root README explains how to clone the repo, install dependencies, select a demo folder, and launch via “chainlit run app.py -w”.
• No monolithic architecture; each demo is standalone.