DEV Community

HexZo Network
HexZo Network

Posted on AI-assisted

I Built an SDK for HexTelegram Development

In the last few weeks, I just did some upgrades to HexTelegram, like adding some tools and fixing temporary storage issues. Also, I fixed the root cause of the " Empty path " issue.

But now i just add a something BIG that allow you to costumize HexTelegram easily

I just add SDK for HexTelegram that allows you or your agent to create plugins

Checkout HexTelegram: https://github.com/HexZoNetwork/HexTelegram/

GitHub logo HexZoNetwork / htsdk

The SDK for HexTelegram

htsdk - HexTelegram SDK

Build custom agents + plugins for HexTelegram by HexzoNetwork

written permission. See LICENCE.

What is this?

htsdk is the public SDK for HexTelegram (HTG)

  • ✏ Build plugins that add commands to the bot (/plugin + /pl).
  • 🀖 Build your own agent speaking the same OpenAI-compatible protocol.
  • 🔐 Define auth providers add your costum provinder

Require Node 18+. Full guide with why/how/examples: DOCS.md.

Install (no npm publish needed)

npm install github:HexZoNetwork/htsdk
Enter fullscreen mode Exit fullscreen mode
const { definePlugin, createAgent } = require("htsdk");
Enter fullscreen mode Exit fullscreen mode

That's it - git install, no registry publish step. Works today, even before the first npm release (after release, npm install htsdk works too).

Layout

htsdk/
├── index.js            ← definePlugin, testPlugin, testTool, createAgent, splitTG, commandArgs
├── plugin.js           ← plugin-only re-exports
├── auth-providers.js   ← defineProvider
├── examples/
│   ├── hello-plugin.js        ← installable example (/hello /ping /echo)
│   ├── custom-agent.js        ← minimal



Top comments (0)