💭Concepts
A high-level view of a stage project and how they fit in the context of a chat.
Project Structure
public/
chub_meta.yaml # Information like the stage's name.
src/
Stage.tsx # The core stage implementation.
# This is the main file to edit.
TestRunner.tsx # A runner for testing.
assets/
test-init.json # Testing data for the Test Runner.
index.scss # CSS styling
main.tsx # The app's entry point.
App.tsx
package.json # Dependency management
.github/ # A utility file that creates the stage
workflows/ # project in Chub, and builds and deploys it
deploy.yml # on push.
.eslintrc.cjs # Linter configuration file
index.html # The root HTML
tsconfig.json # TypeScript configuration file
tsconfig.node.json # TypeScript configuration file
vite.config.ts # Vite configuration file
yarn.lock # Freezes dependenciesWhere a Stage Exists in a Chat



Stage Lifecycle and Communication
Top-Down Communication Points
Initialization
Before a Prompt
After a Response
On a Swipe or Jump
Rendering
Bottom-Up Communication Points (Experimental/Unstable)
Last updated