Teact
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.

PackageInstallUse when
@teactjs/corebun add @teactjs/coreThe engine: createBot, router, all hooks, plugins, React re-exports
@teactjs/uibun add @teactjs/uiComponents: Message, keyboards, media, formatting
@teactjs/telegrambun add @teactjs/telegramProduction Telegram transport (grammY driver)
@teactjs/plugin-sdkbun add @teactjs/plugin-sdkAuthoring your own plugins with definePlugin
@teactjs/storagebun add @teactjs/storageMemory / file / custom key-value persistence
@teactjs/testingbun add -D @teactjs/testingUnit-testing bots without hitting Telegram
@teactjs/clibun add -D @teactjs/cliLocal teact commands (dev, build, deploy, …)
create-teactbun create teactScaffolding 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.