Skip to content

Installation

Runtime
Node.js 18+

Modern baseline

Output
CJS + ESM

Dual package

Types
Strict TS

Declarations included

Install package

npm install vibegram
FeatureSupportCJSESMNodeNotes
Runtime
Node.js 18+
yesyes18, 20, 22Matches package engines.
Module output
Dual package
dist/cjsdist/esm18+Types are emitted under dist/types.
Docs deployment
Static
--18+Safe for GitHub Pages.

Requirements

  • Node.js v18.0 or later
  • npm or yarn package manager

Install

bash
npm install vibegram

TypeScript Setup

VibeGram is written in TypeScript and ships with built-in type declarations. No additional @types packages are required.

json
// tsconfig.json (recommended settings)
{
    "compilerOptions": {
        "target": "ES2022",
        "module": "CommonJS",
        "strict": true,
        "esModuleInterop": true
    }
}

Project Structure

A typical VibeGram project:

my-bot/
├── src/
│   ├── index.ts        # Bot entry point
│   ├── commands/        # Command handlers
│   └── scenes/          # Scene definitions
├── package.json
└── tsconfig.json

Verify Installation

typescript
import { Bot } from 'vibegram';

const bot = new Bot('YOUR_BOT_TOKEN');

bot.command('ping', ctx => ctx.reply('pong'));

bot.launch().then(() => console.log('Bot is running'));

Run with:

bash
npx ts-node src/index.ts

Released under the ISC License.