nextkit

A toolkit for making ZX Spectrum Next games: a WiFi deployer that puts the latest build of a game on the Next straight from the PC, plus the code, art tools and tests the games share.

Live2026
nextkit5 screenshots

Overview

nextkit started as a way to stop copying SD cards. A small program on the Next, written in Z80N assembly, talks to the Next's ESP WiFi module directly. It lists the games a deploy server on the PC offers, then downloads the one you pick, with ZX-tape-style border stripes and sound that follow the real bytes. It checks the download by CRC, saves it to the SD card and starts it. Large games come down in 512K parts. The menu shows which games are out of date, and a Mega Drive pad works as well as the keyboard.

On the PC, node server/serve.ts serves the games listed in server/titles.json. On the Next, DEPLOY.BAS, fetched once with the standard .http dot command, loads the deployer, which drives the WiFi module with AT commands over the UART, so nothing extra needs installing on the Next. It checks the CRC of what arrived and of the file read back from the card before starting the game.

In the menu, a game's colour says whether the copy on this Next is the server's current build, going by the CRC rather than the version label:

  • green: up to date
  • magenta, with a * before the name: the server has a new build
  • white: not on this Next yet

It has grown into the shared base for my Next games, including NEXSTAR, TerraNova and Soccer Bus FC. The shared Z80 code covers:

  • AY music and sound effects
  • LZ unpacking
  • Layer 2 parallax
  • Mega Drive pads
  • a random-number generator that matches its TypeScript model
  • a debug menu every game uses (jump to any chapter, always win, god mode and so on)

There's also a turn-based battle engine, taken from TerraNova and made game-neutral; TerraNova's and NEXSTAR's ground battles run on it.

The PC side is TypeScript run directly by Node. It has an asset framework and a shared "house style" for the games' art, palette and picture tools for the Next's display modes. Its test harnesses drive the games in the ZEsarUX emulator with scripted checks, random-key soak tests and byte-for-byte comparisons with the TypeScript models.

It's been in active development since November 2026 and is in daily use deploying games to a real Next. It's a personal toolkit, built for my own games and not packaged for anyone else.

Screenshots: the deployer's menu; the menu showing its three states (a newer build on the server, up to date, not on this Next); a game downloading over WiFi; characters drawn with the shared house-style tooling; the deploy server's game list, redrawn in the 8×8 font. The Next screens come from ZEsarUX playing back a recorded WiFi session, so the game versions shown are older builds.

Datasheet

Target
ZX Spectrum Next (NextZXOS)
Deployer
Z80N assembly (sjasmplus 1.24), talks to the ESP WiFi module directly
PC side
TypeScript on Node, no build step
Transfer
HTTP over WiFi, CRC-checked, 512K parts for big games
Testing
ZEsarUX emulator on a NextZXOS SD image
Games using it
NEXSTAR, TerraNova, Soccer Bus FC

More projects

All projects