#27

10 posts · Last used 17d

Back to Timeline
BotKit by Fedify @botkit@hackers.pub · Jul 08, 2026
Boosted by fedicat @fedicat@pc.cafe

BotKit 0.5.0: A new design language, multi-bot instances, and consent-respecting quotes

한국어 (Korean): BotKit 0.5.0: 새로운 디자인 언어, 멀티봇 인스턴스, 그리고 동의 기반 인용 We're pleased to announce BotKit 0.5.0. This release changes how both the docs site and every bot's own pages look, and it stops limiting a server to one bot: a single process can now host a whole fleet of them. Quoting, and being quoted, goes through a consent step under FEP-044f, and a Redis-backed repository joins the SQLite and PostgreSQL ones for shared production storage. A few of these changes are breaking; see below for what to check before you upgrade. A new look for botkit.fedify.dev Until this release, botkit.fedify.dev read like a stock VitePress site: a workable but generic shell wrapped around the docs, with none of BotKit's own personality showing through. The theme and the landing page are both new. The palette now matches the real logo greens instead of a generic default, and headlines are set in Space Grotesk, paired with Inter for everything else; the display font is self-hosted, so no visitor's IP is handed to a font CDN. The new landing page frames BotKit's dinosaur mascot inside its signature unassembled-model-kit sprue frame, then leads with a tabbed installer for Deno, npm, pnpm, and Yarn and a one-file bot example before getting into what BotKit actually does: messages, events, multi-bot instances, and the pages it builds for a bot without any extra work from you. The deployment guides grew alongside the new landing page: they were split apart and fleshed out, and a new Cloudflare Workers guide joins the existing Deno Deploy, Docker, and self-hosting guides. A new look for your bot's pages The pages BotKit serves for your bot (its profile, its posts, its follower list) got the same attention, in the opposite direction. Until now they were built on Pico CSS pulled from an external CDN: a fine default, but a generic one that made every BotKit-hosted bot look like a demo of the same template, and that quietly sent every visitor's browser off to fetch a stylesheet from someone else's server. That's gone. Bot pages now use a self-contained design system, bundled with the package and served from BotKit's own content-addressed, cache-forever path: no external CDN, no build step, on either Deno or Node.js. The whole look is driven by a single accent color you choose (twenty names, the same legend Pico CSS uses, so your existing choice of color still works), tinting links, the follow button, and small highlights, while everything else stays quiet so your bot's name, avatar, and posts are what a visitor actually notices. A new PagesOptions.theme option ("auto", "light", or "dark") controls the color scheme independently of the accent. A repost is now marked and attributed to its original author instead of blending into the bot's own timeline. If you want to go further than the accent color allows, PagesOptions.css still lets you inject custom CSS on top of BotKit's own stylesheet. Multi-bot instances Until this release, a BotKit process could only ever be one bot. Running a second bot meant standing up a whole second server, even when the two bots could easily have shared the same infrastructure. That limitation, raised in #16, is gone: the new createInstance() function creates an Instance that owns the shared plumbing (the key–value store, the message queue, the repository, and HTTP handling), and any number of bots can live on it side by side, each with its own actor identity and event handlers. For a fixed, known set of bots, Instance.createBot() takes an identifier and a profile: import { createInstance, text } from "@fedify/botkit"; import { MemoryKvStore } from "@fedify/fedify"; const instance = createInstance({ kv: new MemoryKvStore() }); const greetBot = instance.createBot("greet", { username: "greetbot", name: "Greeting Bot", }); greetBot.onFollow = async (session, followRequest) => { await followRequest.accept(); await session.publish(text`Welcome, ${followRequest.follower}!`); }; For a family of bots resolved on demand (one per region, one per customer, thousands of them backed by a database), pass a dispatcher function instead of a fixed identifier, and BotKit resolves and federates each one lazily: const weatherBots = instance.createBot(async (ctx, identifier) => { if (!identifier.startsWith("weather_")) return null; const region = await db.getRegion(identifier.slice("weather_".length)); if (region == null) return null; return { username: identifier, name: `${region.name} Weather Bot` }; }); weatherBots.onMention = async (session, message) => { const code = session.bot.identifier.slice("weather_".length); await message.reply(text`Current weather: ${await db.getWeather(code)}`); }; Incoming activities are routed only to the bots they actually concern: the followed bot, the owner of a liked or replied-to message, mentioned bots, and bots followed by the sender. Multi-bot instances also serve a list of hosted bots at the web root, with each bot's own pages moving to /@{username}; a reserved instance actor signs shared-inbox requests when there's no single bot whose key obviously should. None of this touches single-bot deployments: createBot() keeps working exactly as it always has, with the bot's pages staying at the web root and its data migrated to the new storage layout automatically on startup. If you maintain a custom Repository implementation, though, this is a breaking change worth planning for: every method now takes the owning bot's identifier as its first parameter, Session.bot is a read-only ReadonlyBot instead of a mutable Bot, and local object URIs carry the owning bot's identifier (old-format URIs are still recognized and permanently redirected, so links other servers stored keep working). The full picture, including how to move an existing single-bot deployment onto a multi-bot instance later, is in the new Instance concept document. Thanks to @moreal@hackers.pub, whose early work-in-progress explorations of this problem surfaced its two hardest design questions (mapping usernames to identifiers for dynamic bots, and routing object URIs that used to carry no owner information) well before this implementation settled on its final shape. Consent-respecting quotes with FEP-044f BotKit has supported quoting since 0.2.0, but only in the Misskey family's style: a quoteUrl property and a Link tag, sent without ever asking the quoted author. Mastodon 4.4 and 4.5 do things differently: they verify quotes through FEP-044f's consent handshake before showing them as quotes at all. Without that handshake, a BotKit bot's quotes never rendered as quotes on Mastodon, and quotes of a BotKit bot showed up as unverifiable. BotKit now handles the FEP-044f handshake in both directions. When you quote a message, it sets the FEP-044f quote property and sends a QuoteRequest to the quoted author, alongside the Create it already sent. Publishing stays non-blocking: the post goes out immediately, and the quote is upgraded once (or if) approval arrives: const message = await session.publish(text`This message quotes another one.`, { quoteTarget: quoted, }); console.log(message.quoteApprovalState); // "pending" On the receiving side, a new quotePolicy option (on createBot(), and per message on Session.publish()) controls how your bot answers incoming quote requests: automatically for everyone ("public", the default), automatically for followers only, never ("nobody"), or held for manual review through the new Bot.onQuoteRequest event: bot.onQuoteRequest = async (session, request) => { if (request.state === "pending") await request.accept(); }; Bot.onQuoteAccepted, Bot.onQuoteRejected, and Bot.onQuoteRevoked cover what happens next for quotes your own bot sent, Message.quoteApproved reports whether an incoming quote carries a valid authorization stamp, and AuthorizedMessage.unauthorizeQuote() lets you revoke one you previously granted. The legacy quoteUrl and Misskey-style tags are still sent alongside the new property, so nothing about quoting on Misskey and its relatives changes. The full design is spread across #27 through #33. A Redis repository (@fedify/botkit-redis) BotKit has had a SQLite repository since 0.3.0 and a PostgreSQL one since 0.4.0, but neither is the natural fit for a bot that runs as several worker processes sharing one store, which is exactly the shape a Redis-backed deployment usually takes. The new @fedify/botkit-redis package fills that gap with RedisRepository, built directly on Redis strings, sets, and sorted sets rather than going through a generic key–value abstraction: import { createBot, MemoryKvStore } from "@fedify/botkit"; import { RedisRepository } from "@fedify/botkit-redis"; const bot = createBot({ username: "mybot", kv: new MemoryKvStore(), repository: new RedisRepository({ url: "redis://localhost:6379/0" }), }); Because several workers can share one Redis instance, the read-modify-write paths that matter most under concurrency (message updates, follower bookkeeping, quote authorization indexes) are protected by short-lived locks that get renewed while a slow update is still running, rather than by assuming only one process ever touches the data at a time. The package supports both a connection URL it manages itself and an existing node-redis client you inject and keep control of, and it's available for both Deno and Node.js. #12 and #35 cover the rest of it. Smaller improvements The npm package's TypeScript declaration files no longer accidentally include the runtime Temporal polyfill code, which had been leaking into consumers' .d.ts output. Fedify was upgraded to 2.3.1, Hono to 4.12.27, and LogTape to 2.2.3. As always, the full list of changes is in CHANGES.md, and every API mentioned above is documented at botkit.fedify.dev. Thank you to everyone who filed issues, opened discussions, and tried BotKit out. If you build something with BotKit, run into a rough edge, or just want to talk through an idea before opening an issue, GitHub Discussions is the place for exactly that. For something closer to real time, BotKit's chat now lives on Matrix at #fedify:matrix.org. Drop in and say hello.
0
0
1
Bubbles @bubbles@social.bubbles.town · Jul 06, 2026
0
0
0
St. Louis Cardinals News @cardinals@social.gamefan.net · Jul 03, 2026
St. Louis Takes Chicago to Church as Cardinals Clobber the Cubs CHICAGO, ILLINOIS - JULY 03: Nathan Church #27 of the St. Louis Cardinals runs the bases after hitting a three-run home run during the second inning against the Chicago Cubs at Wrigley Field on July … https://www.vivaelbirdos.com/st-louis-cardinals-game-information/72511/st-louis-takes-chicago-to-church-as-cardinals-clobber-the-cubs #STLCards #Cardinals #StLouisCardinals #MLB #Baseball #VivaElBirdos [Viva El Birdos]
0
0
0
Italian News by RSS @ItalianNews@mastodon.ozioso.online · May 22, 2026
Punto Informatico: Immagini realistiche e immersive con il monitor Samsung Gaming Odyssey G5 Con il monitor da gaming Samsung Gaming Odyssey G5 da 27 pollici potrai goderti immagini incredibilmente realistiche e immersive. The post Immagini realistiche e immersive con il monitor Samsung Gaming Odyssey G5 appeared first on Punto Informatico. Realistic and immersive images with the Samsung Gaming Odyssey G5 monitor. With the Samsung Gaming Odyssey G5 27-inch gaming monitor, you can enjoy incredibly realistic and immersive images. The post Realistic and immersive images with the Samsung Gaming Odyssey G5 appeared first on Punto Informatico. #27-inch #first #PuntoInformatico https://www.punto-informatico.it/immagini-realistiche-immersive-con-monitor-samsung-gaming-odyssey-g5/
0
0
2
Italian News by RSS @ItalianNews@mastodon.ozioso.online · Mar 09, 2026
Punto Informatico: LG UltraGear: monitor gaming da 27″ curvo per vivere ogni videogioco Con il monitor da gaming curvo LG UltraGear da 27 pollici puoi vivere ogni videogioco il modo più immersivo e realistico, ora scontato al 36%. The post LG UltraGear: monitor gaming da 27″ curvo per vivere ogni videogioco appeared first on Punto Informatico. LG UltraGear: 27-inch curved gaming monitor to experience every video game. With the LG UltraGear curved 27-inch gaming monitor, you can experience every video game in the most immersive and realistic way, now discounted by 36%. #LGUltraGear #27-inch https://www.punto-informatico.it/lg-ultragear-monitor-gaming-da-27-curvo-per-vivere-ogni-videogioco/
0
0
0
Italian News by RSS @ItalianNews@mastodon.ozioso.online · Mar 05, 2026
Punto Informatico: Lenovo Legion da 27 pollici: monitor da gaming che azzera il tempo di risposta Il monitor da gaming Lenovo Legion da 27 pollici ha un tempo di risposta di appena 0,5 ms, un refresh rate da 240 Hz ed è in promo al 23%. The post Lenovo Legion da 27 pollici: monitor da gaming che azzera il tempo di risposta appeared first on Punto Informatico. Lenovo Legion 27-inch monitor: gaming monitors that eliminate response time. The 27-inch Lenovo Legion gaming monitor has a response time of just 0.5 ms, a 240 Hz refresh rate, and is on sale at 23%. #LenovoLegion #27-inch #240Hz https://www.punto-informatico.it/lenovo-legion-27-pollici-monitor-gaming-azzera-tempo-di-risposta/
0
0
0
sekurak News @sekurakbot@mastodon.com.pl · Feb 17, 2026
AI bez lukru #27: AI ex machina Cześć! Z tej strony Tomek Turba. AI bez lukru to cykl moich felietonów o sztucznej inteligencji bez marketingowego lukru, bez korporacyjnych slajdów i bez bajek o „rewolucji, która wszystko zmieni”. Pokazuję AI taką, jaka jest naprawdę: z absurdami, wpadkami, halucynacjami i konsekwencjami, o których rzadko mówi się głośno. Bez zadęcia,... #WBiegu https://sekurak.pl/ai-bez-lukru-27-ai-ex-machina/
1
0
0
Double Double @doubledouble@mastodon.world · Feb 02, 2026
Cearah Parchment (NET#35 Illinois Fighting Illini) records her 7th DOUBLE double of the season with 23 points & 10 rebounds. [NET#35 Illinois 75 @ NET#27 Washington 66] @illiniwbb #WCBB
0
0
0
Double Double @doubledouble@mastodon.world · Feb 02, 2026
💥 WBB UPSET 💥 (NET#35) Illinois Fighting Illini 75 @ (NET#27) Washington Huskies 66
0
0
0

You've seen all posts