Skip to content
PN Scripts

Game templates

Songbridge Game Template

The complete TypeScript and three.js source of Songbridge, a browser puzzle game where the melody you play builds the path your creatures walk on. Write songs in one config file and publish your own game.

  • TypeScript
  • three.js
  • Vite 8
  • Web Audio
  • Vitest and Playwright
  • Paid
  • External marketplace: Gumroad

Sold on Gumroad. PN Scripts does not take payment for it here.

Songbridge in play: round creatures cross a river on coloured stepping stones raised by the note pads

What it solves

The gap

Hand-made puzzle levels take long to design and are easy to get wrong: one unsolvable level and players leave.

What it is

A finished puzzle game whose levels are generated from short song recipes and proven solvable by a solver bot on every test run.

How you use it

Unzip, run npm install and npm run dev, add a song to src/game.config.ts and run npm test to check it can be played for three stars.

Source code of a real, playable game to reskin and learn from, not an engine or a drag-and-drop builder.

Who it is for

Use it when

  • Publishing your own music puzzle game on CrazyGames, Poki, itch.io or your site.
  • Learning procedural level generation with a solver that proves levels are fair.
  • Building a branded music game for a client.

Built for

  • Web and indie game developers who know some TypeScript.
  • Studios and freelancers who make branded browser games for clients.

What you get

Write songs, not levels

Each song is a short recipe: tempo, key, length, gap sizes and the chance of thorns, low rocks and golden notes. The generator writes the melody first and builds the level around it.

Proven fair on every test run

npm test lets a solver bot with human-like reaction play every song for three stars and checks 60 days of daily songs. Test players also prove that mashing buttons loses.

Reskin from the same file

Title, logo, tagline, world names and colour themes, note colours and musical scale, the note sound of each world and the creature colours.

Accessible by design

Every note has its own shape, number, height and colour-blind-safe colour; a visual beat, a note guide and reduced motion make it playable with the sound off.

Ready for web portals

One command builds CrazyGames (one-file build for their uploader), Poki and itch.io or own-site versions and checks download size.

Specs

Vendor
PN Scripts
Type
Template
Platforms
JavaScript
Latest version
v1.1.0
Pricing
One-time purchase · From USD 19.00 Minimum price on Gumroad; you may choose to pay more.
License
PN Scripts Template Licence 1.0
Deployment
Download (ZIP of source code)
Maturity
v1.1.0, released 2026-10-06

Compatibility

Platform or runtime Supported versions Tested up to
Node.js 22.12 or newer Not stated

Releases

  1. v1.1.0

    Release notes (opens in a new tab)

Stack

  • TypeScript
  • three.js
  • Vite 8
  • Web Audio
  • Vitest and Playwright

Get the Songbridge template

Buy the source code on Gumroad. Gumroad handles the payment and the download.

Sold on Gumroad. PN Scripts does not take payment for it here.

Questions

Build and sell any number of your own games from it, on web portals, app stores or your own site, and build games for clients. No attribution is needed. You may not resell or share the template source itself. The full PN Scripts Template Licence 1.0 is in the download.

Node.js 22.12 or newer and Chrome. Basic TypeScript helps for changes beyond the config file.

Desktop Chrome and Chrome's mobile emulation, not yet iOS Safari, Firefox or a real phone; difficulty is tuned with bots. The Poki adapter loads the real Poki SDK and completes a break locally, but has not yet run inside Poki's Inspector.

The code was written with AI assistance and then reviewed and tested by PN Scripts. All art and audio are generated by code; there are no AI-generated image or audio files.

On Gumroad, which takes the payment and delivers the download. PN Scripts does not take payment on this site.