Skip to content
Spraxium

Primary navigation

Changelog

See what changed in each release. If you already have a bot running, the notes show what you may need to adjust before upgrading.

Dec 01, 2026

Spraxium 0.11.0, a new plugin system

Spraxium 0.11.0 includes major changes to how plugins are configured and run. To enable an integration, put its package name under plugins in spraxium.config.ts. At startup, Core loads each plugin’s module, applies its defaults, and validates the options you supplied.

For a bot with buttons and scheduled jobs, you can use the Components defaults and set the São Paulo time zone for Schedule jobs that leave their own time zone unset.

snippet.ts
import { defineConfig } from '@spraxium/core';

export default defineConfig({
  plugins: {
    '@spraxium/components': {},

    '@spraxium/schedule': {
      timezone: 'America/Sao_Paulo',
    },
  },
});

To update a 0.10 bot, move the options you passed to helpers under the corresponding package keys. Core loads each plugin’s module from that configuration, so remove the imports that only served to activate those plugins. You can keep options in a separate file per package. Migration guide.

Community plugins follow the same process. Authors provide a module, an options schema, and a manifest. The CLI finds installed plugins through their manifests and uses package declarations to supply editor types. Run spraxium plugin sync to refresh those types. If two plugins declare the same ID, the logger names both and startup stops before the bot connects to Discord. Create a plugin.

Slash commands by server

You can also set the default destination for slash commands once per project. Set SLASH_GUILD_IDS in .env to one ID or a comma-separated list. With the variable unset, publication is global by default. An empty value raises a configuration error.

snippet.ts
import { defineConfig } from '@spraxium/core';

export default defineConfig({
  slash: {
    guilds: process.env.SLASH_GUILD_IDS,
  },
});

If you keep a test server, choose what goes there by folder or command class. Set the include and exclude rules alongside the server ID. Server publication examples.

New options for I18n, Webhook, and Signal Client

In I18n, you can configure pt-BR as a fallback for a missing pt-PT translation before using the default locale. Webhook lets you set which mentions a destination accepts and adjust that rule for an individual send. Signal Client can limit how long each send attempt waits for Discord. I18n · Webhook · Signal Client.

New CLI templates

The moderation-bot template includes /mod timeout and /mod untimeout. The welcome-bot template greets people when they join a server. Both are available in the CLI’s project selector.

snippet.sh
spraxium new my-bot

The HTTP template leaves the selector, and the deprecated package leaves the framework’s update workflow. CLI templates · RPC migration.

Nov 27, 2026

Spraxium 0.10.1: RPC in both directions

A dashboard can already ask the bot for Discord data. In 0.10.1, the bot can also ask the backend to do work and use the result in a command. A /ticket command, for example, can send the guild and user IDs to your backend, wait for it to save the ticket, then reply with the ticket ID. The incoming gateway on the bot stays the same. Use @spraxium/rpc-server to receive the calls on the backend, alongside the HTTP routes you already have.

The NestJS example includes both directions in one project, with a separate address and credential for each listener. The server package also works in other Node.js backends. If your application only needs backend-to-bot calls, its current setup is enough. Walk through the NestJS example or add a standalone Node gateway.

Signal can now use Redis to check nonces across bot processes. Replicas connected to the same store can agree on whether a webhook delivery has already been seen. Schedule also renews Redis leases while jobs run and checks which process owns the lease before releasing it. That helps long tasks avoid overlapping when you run several shards. Keep jobs safe to retry if they perform work that cannot be repeated. Signal setup · Schedule drivers.

The CLI database templates were updated for the current ORM versions. The checks cover generating a project, preparing the schema, and writing and reading a record in both development and the production build. They cover Prisma, Drizzle, TypeORM, MikroORM and Mongoose across the databases offered by the CLI.

Nov 25, 2026

Spraxium 0.10.0 introduces RPC

The main addition in 0.10.0 is Spraxium RPC. You can now call a method in your bot from a backend and use the response in a dashboard, script, or another service. This gives projects that run a bot alongside a web app a way to share the bot's features while keeping the Discord connection in one place.

The bot uses @spraxium/rpc to handle calls, and the backend uses @spraxium/rpc-client to make them. Calls have types, authentication, and a time limit. When a bot uses native sharding, Spraxium sends a guild request to the shard responsible for that server. The setup guides cover a first call and integrations with backends such as NestJS and Express. Get started with RPC.

Why we're moving away from HTTP

With @spraxium/http, we were maintaining a web server inside the bot, including routes, middleware, CORS, validation, and HTTP errors. Many projects already had a backend doing that work. Supporting both meant maintaining similar features in two places and spending time on problems that web frameworks already handle.

RPC lets us focus on the connection between the backend and the bot. Your web framework manages the public API, login, and user permissions, while Spraxium handles calls to bot methods and routes them between shards. It also means you can keep the backend framework your project already uses.

As part of this change, @spraxium/http is deprecated. Existing projects can migrate one route at a time and keep the URLs their dashboards already call. We wrote a guide that follows the move from an HTTP route to an RPC call, including the changes on both sides. Read the migration guide.

Docs that follow your framework version

The documentation now has separate guides for each supported version. You can read the instructions for the version installed in your bot, then switch when you're ready to upgrade. The latest docs open by default, and the sidebar keeps the 0.9.0 archive available.

We also reviewed the existing guides, updated examples, and removed instructions that no longer matched the framework. Some features needed more explanation, so the RPC tutorials now follow a call from the backend to the bot, and the environment guides show how to organize validators as a project grows. You can follow the setup through the guides even if you're using the feature for the first time.

Skills for coding agents

There's a new skills catalog for working with Spraxium through coding agents. Each skill gives the agent instructions for a particular task, with examples and links to the relevant docs. The catalog covers project setup, commands, components, guards, scheduling, logging, and other parts of the framework.

You can read a guide on the site and download its file for your agent. The general skill helps it find the right topic, check the installed version, and follow the structure of the official examples. There's also a skill for migrating from HTTP to RPC, so the agent has the steps and context for that change. Browse the skills.

Changes on the website

We redesigned several parts of the site and improved how you move between guides, packages, articles, and release notes. The layout is more consistent, the menus are easier to use, and the docs keep your place in the sidebar when you open another page. Together, these changes make the site feel more organized and help you get back to what you were reading with less interruption.

Nov 24, 2026

Spraxium 0.9.1 adds a preview channel

Spraxium 0.9.1 adds spraxium use to change the framework version in an existing bot. Alongside this release, we opened the next channel with 1.0.0-dev.1, the first preview from the 1.0 development branch. You can try that work in a project and return to the stable version afterward.

Changing versions from your project

Run the command from the bot's directory. The dry run shows which packages would change, so you can review the switch before installing anything.

snippet.sh
spraxium use next --dry-run
spraxium use next
spraxium use stable

The CLI checks whether npm has the requested version for every Spraxium package declared by the bot. It then pins those packages to the same version and updates the lockfile using your project's package manager. If installation fails or resolves a different version, it restores the previous files and tries to reinstall those dependencies.

You can also pass an exact version, such as spraxium use 1.0.0-dev.1, when you need to reproduce a bug. Running use next again installs the preview available at that time, while use stable follows npm's latest tag. Version switching guide.

Knowing which build is running

The startup output now identifies development builds, including when the bot starts offline. Update notices follow the installed channel, so a stable bot gets stable updates and a preview can report a newer build in the same series. A newer stable release takes priority when one becomes available. The check runs in the background and caches its result for 24 hours.

The first preview includes a CommonJS entry point for Signal Client, shared Redis nonce storage for bots with multiple instances, and changes to scheduled job discovery and Redis leases. If you use those features, try your normal startup and restart routine with the preview and include the installed version in any bug report.

Nov 09, 2026

Spraxium 0.9.0 puts the packages on the same version

During development, we published a build as 1.0.0 before the work planned for that release was ready. That number made it look as though Spraxium 1.0 had shipped. With 0.9.0, we brought the packages back to a shared release line so it's easier to know which versions belong together.

A shared version for the framework

All Spraxium packages were released together at 0.9.0. If your bot uses several of them, you can keep them on the same number when updating. This also makes it easier to describe your installation when reporting a problem.

We moved 1.0 development to its own branch. That gave us room to continue that work while maintaining the stable releases people were already using.

Dependency updates

This release also updated dependencies that had known vulnerabilities, including minimatch in the CLI, @hono/node-server in the HTTP package, and glob in the workspace. These fixes were included in the packages released under 0.9.0. View the release changes.

Aug 17, 2026

Spraxium 0.3.0 ends support for Node.js 20

With Spraxium 0.3.0, support for Node.js 20 ends. This release requires Node.js 22.23.2 or newer, below Node.js 27, including the supported Node.js 24 and 26 releases. The change lets us keep the framework and its tools on maintained runtimes.

Update the environment where the bot runs

Before installing the updated packages, check Node.js on your computer, on the server, and in any container or CI job that builds the bot. Updating the local installation alone can leave the deployed bot on an older runtime.

snippet.sh
node --version

For this release, the result needs to be at least v22.23.2 and below v27.0.0. Once the runtime is updated, install the packages and start the bot through your usual process.

These requirements describe the 0.3.0 release. When installing a later Spraxium version, check its documentation for the matching Node.js requirements.

May 05, 2026

Spraxium 0.2.0 adds dynamic components and shared guards

The first public release gave us more feedback from people building their own bots. In 0.2.0, much of the work went into the places where commands, components, and services meet. Dynamic buttons and selects can carry data between interactions, guards work across more handler types, and logging and webhooks have their own packages.

We also fixed problems with shutdown, scheduled tasks, and stored component data. The example apps were updated alongside the packages so you can see how those changes fit into a bot.

Component data survives a restart

The memory adapter was removed from context.storage and payload.storage in defineComponents. Choose filesystem, redis, or sqlite for data kept by these stores. The filesystem adapter writes to .spraxium/contexts.json and .spraxium/payloads.json, so it's an option for a single bot process that needs to keep its data between restarts.

The old adapter lost all state when the process stopped. A button flow could work during testing and then lose its context after a deploy. Using persistent storage makes that behavior easier to account for from the start, including expiration and revocation.

Logging and webhooks have their own packages

@spraxium/logger moves logging out of Core. It supports custom levels, timestamp formatting, token masking, and transports you can add yourself. You can also send entries to a Discord webhook. Console output no longer depends on chalk, and environment validation uses the logger's table builder for its startup output.

@spraxium/webhook gives a bot two ways to send webhook messages. A class with @WebhookSender can use @Send to send the value returned by a method. For code that chooses a destination or sends several messages, WebhookService exposes methods such as send, sendEmbed, sendMany, and sendAll. Named webhooks are configured once through defineWebhook, together with an optional username and an error handler.

More ways to handle Discord interactions

Context menu commands now support both user and message targets. Define them with @ContextMenuCommand, attach the handler with @ContextMenuCommandHandler, and use guards and @Ctx as you would for slash commands. They register alongside slash commands at startup. In development, unchanged command definitions can skip another registration request.

@Defer and @AutoDefer help with Discord's three-second response window. The first defers a reply after guards pass. The second waits for a threshold, which defaults to two seconds, and defers only if the handler still hasn't responded. The handler can keep using interaction.reply() when it has a response ready.

Handlers also gained decorators for specific input types. Slash options can use @SlashStringOption, @SlashIntegerOption, @SlashBooleanOption, @SlashUserOption, @SlashChannelOption, @SlashRoleOption, @SlashMentionableOption, @SlashAttachmentOption, and @SlashNumberOption. The existing @SlashOpt still works and is marked deprecated.

Modal fields now have decorators for text, selects, radio groups, checkbox groups, individual checkboxes, and file uploads. We also fixed submitted radio and checkbox values being lost before they reached the handler. The command and modal examples use the new decorators.

Data across buttons, selects, and multi-step flows

Dynamic components can build their label and appearance from data when they're rendered. For stored payloads, @ButtonPayload() and @SelectPayload() give that data back to the handler. The default lifetime is ten minutes and can be set on the component. @PayloadRef() lets a handler consume a payload after the first use, and ButtonPayloadService.revokeMany() can invalidate several buttons when a flow ends elsewhere.

Small values can also travel in the custom ID through encoding: 'inline'. The handler reads them with @ButtonParams() or @SelectParams(). This is useful for a record ID or a flag that can stay in the message. Discord's 100-character limit still applies, and the framework checks it when rendering the component.

For a flow with several steps, ContextService.create() gives you shared data to attach with rowWithContext(). A handler receives it through @FlowContext() and can save its changes with flow.save(). A component can carry context together with a payload or inline parameters.

ButtonService.buildMixedRow() combines different dynamic button types in one row and returns the stored payload references for later revocation. Inside a Components V2 container, @V2DynamicRow splits a list of items into rows automatically.

Guards now run for buttons, selects, and modals through the same execution path used by Core. That includes global guards registered at startup. A permission check used by a slash command can also protect the interactions that follow it.

Startup and development

A project lock at .spraxium/spraxium.lock helps avoid starting the same bot twice from one directory. It records the process ID, checks whether an old process is still running, and removes stale locks. The --force-unlock and --no-lock flags, also available as SPRAXIUM_FORCE_UNLOCK and SPRAXIUM_NO_LOCK, cover cases where you need to change that behavior.

Spraxium startup message when a project is already running

Startup also checks for updates to installed Spraxium packages in the background. Results are cached for 24 hours across projects on the same machine. Set SPRAXIUM_NO_UPGRADE_NOTIFIER=1 to turn that check off.

Startup notice showing available Spraxium package updates

Translations, scheduled jobs, and examples

The i18n package adds buildLocalizedButton, buildLocalizedSelect, buildLocalizedModal, buildLocalizedEmbed, and buildLocalizedV2 to resolve translation keys from component definitions. In Schedule, @RunOnce(date) adds a job for a specific date and removes it after execution. A date that's already passed at startup produces a warning.

There are examples for shared guards, localized components, webhooks, and context menus. The slash command example also shows deferral. Package keywords were updated to help people find the packages on npm, and Codespaces now runs the build during setup.

Fixes across the packages

Shutdown now waits for handlers that are still running. Guards and exceptions were made more consistent across handler types, including errors after a reply was deferred. Signal gained nonce storage options and fixes to envelope verification.

We also fixed recovery from damaged payload entries, fallback behavior in Redis and file stores, and @RunOnce state changes around restarts. In the HTTP package, rate limiting and access logging are now connected to the request flow. Those settings existed in 0.1.0 but weren't being applied.

Apr 20, 2026

Spraxium 0.1.0, the first public release

Spraxium started inside Spacelaxy. We were repeating the same setup across Discord bots and needed a place for each feature, along with a way to share services between commands. The module system, dependency injection, and guards grew out of that work.

Our bots used versions of the framework for over a year before we opened the repository. With 0.1.0, we put that code into public packages, added documentation and examples, and made it available for other people to build with.

What's in the first release

@spraxium/core handles modules, shared services, commands, events, guards, and the bot's lifecycle. @spraxium/common provides the decorators and types those features use. Together they give a bot's code a structure that can grow as new features are added.

There are optional packages for the work around those commands. @spraxium/env checks environment variables at startup and reports missing or invalid values before the bot connects. @spraxium/i18n loads translations and resolves the language for a server, with typed keys that can be used in command handlers and embeds. @spraxium/schedule adds cron and interval jobs that start when the bot is ready and stop with the application.

For integrations, @spraxium/http provides a web server alongside the bot, with controllers, input validation, and a bridge for operations that use Discord. @spraxium/signal receives signed events from other services, and @spraxium/signal-client sends them from a Node.js backend. Both ends share the event types.

The CLI creates a project, generates modules, providers, commands, and guards, and runs the development server with hot reload. The included templates show how to put those pieces together in a working bot.

What we're looking at next

The first public version includes the modules and services we had been using in our own bots. More people using the framework will also bring configurations we haven't worked with as often. Dynamic module setups, circular dependencies, and advanced HTTP routes are areas where reports from real projects will help us.

The next round of work focuses on clearer dependency injection errors, better CLI output during development, and more tests for Signal. If you run into a problem, an issue with the steps to reproduce it helps us check it against the same setup.