BotKit by Fedify :botkit:<p>Are you interested in creating bots for the <a class="mention hashtag" rel="nofollow noopener noreferrer" href="https://hollo.social/tags/fediverse" target="_blank">#<span>fediverse</span></a>? Meet <a class="mention hashtag" rel="nofollow noopener noreferrer" href="https://hollo.social/tags/BotKit" target="_blank">#<span>BotKit</span></a>, a <a class="mention hashtag" rel="nofollow noopener noreferrer" href="https://hollo.social/tags/TypeScript" target="_blank">#<span>TypeScript</span></a> framework that makes bot development easier than ever!</p>
<p>Key Features:</p>
<p><strong>True Independence</strong></p>
<ul>
<li>Create standalone <a class="mention hashtag" rel="nofollow noopener noreferrer" href="https://hollo.social/tags/ActivityPub" target="_blank">#<span>ActivityPub</span></a> bots</li>
<li>No need for a Mastodon or Misskey account</li>
<li>Free from platform-specific limitations</li>
</ul>
<p><strong>Simple and Intuitive API</strong></p>
<ul>
<li>Create a complete bot in a single TypeScript file</li>
<li>Intuitive event handlers for mentions, follows, and messages</li>
<li>Rich text formatting with Markdown support</li>
</ul>
<p><strong>Modern Deployment</strong></p>
<ul>
<li>Deploy on Deno Deploy, <a href="http://Fly.io" rel="nofollow noopener noreferrer" target="_blank">Fly.io</a>, Railway, or any virtual server</li>
<li>Minimal dependencies</li>
<li>Designed for modern cloud platforms</li>
</ul>
<p><strong>Enterprise-Ready Foundation</strong></p>
<ul>
<li>Built on Fedify, a rock-solid ActivityPub framework</li>
<li>Seamless federation with Mastodon, Misskey, and other platforms</li>
<li>Robust compatibility across the fediverse</li>
</ul>
<p><strong>Developer Experience</strong></p>
<ul>
<li>Full TypeScript support with great IDE integration</li>
<li>Comprehensive documentation</li>
<li>Built-in testing utilities</li>
</ul>
<p>Here's a quick example of how simple it is to create a bot:</p>
<pre><code>import { createBot, mention, text } from "@fedify/botkit";
const bot = createBot<void>({
username: "greetbot",
name: "Greet Bot",
summary: text`A friendly bot that greets people!`,
// ... configuration ...
});
// Respond to mentions
bot.onMention = async (session, message) => {
await message.reply(text`Hi, ${message.actor}! Thanks for saying hello!`);
};
export default bot;
</code></pre>
<p>Getting Started:</p>
<ol>
<li>Install <a class="mention hashtag" rel="nofollow noopener noreferrer" href="https://hollo.social/tags/Deno" target="_blank">#<span>Deno</span></a></li>
<li>Run: <code>deno add jsr:@fedify/botkit@^0.1.0-dev</code></li>
<li>Create your bot with just a few lines of code</li>
</ol>
<p>Check out our documentation at <a href="https://botkit.fedify.dev/" rel="nofollow noopener noreferrer" target="_blank">https://botkit.fedify.dev/</a> to learn more!</p>
<p><a class="mention hashtag" rel="nofollow noopener noreferrer" href="https://hollo.social/tags/fedidev" target="_blank">#<span>fedidev</span></a></p>