Building a Tic-Tac-Toe Game with n8n (Just for Fun)
In this article, I describe how I built a simple browser-based tic-tac-toe game with an unusual backend: everything runs on n8n.
Instead of a classic API server, I use:
- An n8n static webhook to serve the built frontend (HTML, JS, CSS).
- An n8n API webhook to handle game logic (start, move, get state, stats).
- Redis to store game state between requests.
- A small Bun-powered deploy script that builds the frontend and uploads the assets into n8n.
The result is a fully playable tic-tac-toe game where a single n8n instance + Redis act as the entire backend stack.
If you want to read the full story, check my Medium post:
https://kulikovd.medium.com/building-a-tic-tac-toe-game-with-n8n-just-for-fun-62414fa4005d
The project source code is available on GitHub:
https://github.com/garfik/tictactoe
You can play the live game here:
https://n8n.kulikov.fi/webhook/tic-tac-toe-web