Packages
Packages
The npm packages that make up Teact — what to install and when to use each scope.
Teact ships as a small set of scoped packages. @teactjs/core is the engine (reconciler, runtime,
router, hooks, plugin host, and the re-exported React primitives); @teactjs/ui holds the visual
components. Everything else is optional and layers on top.
| Package | Install | Use when |
|---|---|---|
| @teactjs/core | bun add @teactjs/core | The engine: createBot, router, all hooks, plugins, React re-exports |
| @teactjs/ui | bun add @teactjs/ui | Components: Message, keyboards, media, formatting |
| @teactjs/telegram | bun add @teactjs/telegram | Production Telegram transport (grammY driver) |
| @teactjs/plugin-sdk | bun add @teactjs/plugin-sdk | Authoring your own plugins with definePlugin |
| @teactjs/storage | bun add @teactjs/storage | Memory / file / custom key-value persistence |
| @teactjs/testing | bun add -D @teactjs/testing | Unit-testing bots without hitting Telegram |
| @teactjs/cli | bun add -D @teactjs/cli | Local teact commands (dev, build, deploy, …) |
| create-teact | bun create teact | Scaffolding a new project |
@teactjs/react, @teactjs/runtime, and @teactjs/renderer no longer exist — they were folded
into @teactjs/core. Import the engine and every hook from @teactjs/core, and components from
@teactjs/ui.