@wolfstar/plugin-sharder. The plugin spreads gateway shards across processes, cluster workers, worker threads, and machines. For the weekly summary across all packages, see the changelog overview.
0.3.0 (2026-10-20)
New features
- Own
stars.configkey — The module setsmeta.configKey, so you can write its options under the top-levelsharderkey ofstars.configinstead of the[specifier, options]tuple ofmodules. The tuple still works and is merged over the key. The key is typed indefineConfigonce the module is imported instars.config.ts.shardertakes no options yet and only reserves its name. (#259)
Updates
- New optional peer —
@wolfstar/schema(^0.9.0) is a new optional peer that carries theStarsConfigtype the keys extend.
Migration
@wolfstar/kitpeer raised — The@wolfstar/kitpeer range moves from^0.1.0to^0.2.0, the first version that readsconfigKey. If your project uses@wolfstar/kit0.1, update it.
0.2.1 (2026-10-06)
Updates
- Spawn errors are reported — When a strategy throws in
spawn, you now get aShardSpawnError(carrying the cause) throughshardErroron every attempt, instead of a silent retry. (#217)
Bug fixes
- Cluster strategy options — Fixes
ClusterStrategythrowingArray.prototype.some called on null or undefinedwhenexecArgvorargsare not given: only the given options are passed tocluster.setupPrimary, so Node keeps its defaults. A strategy throwing inspawnis now reported as aShardSpawnErrorthroughshardErroron every attempt, instead of being retried silently. (#217)
0.2.0 (2026-10-05)
New features
/moduleentrypoint — Adds@wolfstar/plugin-sharder/module. List it inmodulesinstars.configto add the package to the auto imports. It needs the optional@wolfstar/kitpeer. The main entrypoint is unchanged. (#190)
0.1.1
Bug fixes
./registerexport — Adds a no-op./registersubpath export. The Stars CLI build imports<name>/registerfor every@wolfstar/plugin-*dependency of a project, so the package crashed consumers at startup withERR_PACKAGE_PATH_NOT_EXPORTED. The entrypoint is a no-op: the package has no@wolfstar/http-frameworkPluginhook to register. (#123)
0.1.0
New features
- New package —
@wolfstar/plugin-sharderimplements discord.js’s sharder RFC (discordjs/discord.js#8084). (#112) ShardManager— Spawns shards as child processes, cluster workers, worker threads, or on other machines throughShardManagerProxy(NetworkStrategy, over TLS). It lays gateway shards out automatically, paces identifies across every process, and restarts or reshards with rolling spawns. (#112)- Crash supervision — Supervises crashes after Erlang/OTP: intensity, period, and one-for-one, one-for-all, or rest-for-one restarts. (#112)
ShardManagerProxy— Serves one manager with failover, or several at once, and routes messages between shards directly, locally or to peer proxies. (#112)ShardClient— The shard’s side: statuses, messages, requests with timeouts, abort and partial broadcasts, gateway shard control, andgatewayOptionsandidentifyThrottlerforGatewayClient. (#112)try*twins — Every fallible operation has atry*twin returning aResult<T, E>from@sapphire/result, and request handlers may return one. (#112)- Message handlers and transformers — Messages go through named, registrable handlers (JSON, V8, raw) and transformers (gzip, Brotli). (#112)