@codewithantonio/messagekit-core
v0.1.4
Published
MessageKit Core is the shared implementation package for MessageKit. It provides Zod schemas, TypeScript types, and reusable operations such as `sendTelegramMessage`.
Downloads
790
Readme
MessageKit Core
MessageKit Core is the shared implementation package for MessageKit. It provides Zod schemas, TypeScript types, and reusable operations such as sendTelegramMessage.
Most users should prefer the MessageKit CLI or MCP packages. This package is intended for programmatic usage and for downstream MessageKit interfaces that need direct access to the shared implementation.
Installation
npm install @codewithantonio/messagekit-coreUsage
import { sendTelegramMessage } from "@codewithantonio/messagekit-core";
const result = await sendTelegramMessage({
botToken: process.env.TELEGRAM_BOT_TOKEN!,
chatId: "123456789",
message: "Hello from MessageKit",
});
console.log(result.messageId);Publishing
Publish this package from packages/core:
bun run build
npm pack --dry-run
npm publish --access publicIf npm requires a one-time password, rerun the publish command with the current code:
npm publish --access public --otp=<code>The dry run should include only README.md, package.json, and compiled files under dist/.
This package publishes native Node ESM. Keep relative TypeScript imports using the runtime .js extension, such as ./schemas.js, so tsc emits JavaScript that Node can load without a bundler.
