A virtual tabletop you host yourself, built from plugins.

Taflor is the virtual table of PhaseSix, turned into a project of its own. It runs as a complete instance on your server, or inside a host site that brings its own accounts and game content. Effects, skins, dice, tools and whole game systems are plugins, and you can write your own.

Taflor is in development. The latest release is 0.3.0, released on , and you can't install it yet, because its packages aren't published and the source isn't public. The table already runs on its own plugin system, with its effects, dice, frames, markers, paths and measuring tools as bundled plugins.

  • The core sits in the middle of the board.
  • Around it are the base plugins that ship with Taflor: effects, dice skins, frames, markers, paths, props, measuring tools and the standard dice system.
  • The open places are for your plugins.

What Taflor is

PhaseSix is a website for tabletop role-playing games, and it has a virtual table: maps with fog of war, tokens, notes, dice, an initiative tracker, sound and video. Taflor takes that table out of PhaseSix and makes it work on its own.

PhaseSix keeps using it as the first host and the first game system. A fix to the table reaches every site that runs it.

On your own server

One container image and PostgreSQL. A setup wizard creates the first game, you invite your players, and a management interface of its own handles plugins, game systems, games and users.

Inside a host

As Django apps inside a host project, or as the same image started with a preset by a hosting service. The host decides who may sit at which table and where tokens and handouts come from.

How it fits together

The ideas the whole design follows. The documentation has the details.

Everything is a plugin
The core draws the board, moves objects and keeps every player in sync. Effects, skins, token frames, dice skins, props, object kinds, tools, menus and panels come through registries that the core uses itself. The base plugins use the same API as yours.
Plugins live on your server
Install from the bundled set, a folder, a zip upload, a GitHub release, a manifest URL or a catalogue. Taflor keeps the files locally, checks their hashes and pins the version per game. Nothing loads from a remote URL while you play.
Game systems
Characters, foes and other entities with their own dice and sheets. A system is JavaScript plus data, the server keeps its documents in a generic store, and it rolls the dice itself from a declarative dice spec.
Ways to sign in
Django accounts by default. Game accounts that only work inside one game, for players who don't want another login. Any OpenID Connect provider, "Log in with PhaseSix" among them.
Untrusted code stays in a sandbox
Code from unvetted sources runs in sandboxed frames. Code that runs in the page itself has to be installed by an admin, and hosted sites only run the in-page code they ship themselves.
Versioned contracts
The plugin API, the wire protocol, the plugin manifest and the sheet protocol carry version numbers and are published as JSON Schema or type declarations. A conformance suite checks that the server keeps to them.
Server extensions
For what JavaScript can't do: ordinary Django apps, installed from pip, a Git URL or a local path.

What 0.3.0 brings

Release 0.3.0 moved most of the table's features out of the core and into plugins. The changelog lists every change of every release.

  • A plugin loader on the table page. It registers each plugin's data first and then starts the plugins one after another, each within 5 seconds. A plugin that fails is rolled back, and the plugins that need it are skipped.
  • 23 bundled plugins that use the same API as yours. They bring the dice, audio and video, GM info, markers, measuring with the ruler, paths with the pen tool, 17 animated table effects, 43 dice skins, 16 dice effects, 25 token frames and 25 image frames, fog styles, note papers, 13 cloth patterns, pings, cursors, movement trails, procedural props and a seafaring pack. The list of bundled plugins is generated from their manifests.
  • Hooks for plugins: listeners, filters and providers from a catalogue that ships with the protocol package.
  • The test kit @taflor/testkit starts a plugin the way the table page does, with a fake host and a sync that keeps everything in memory. The docs explain writing a plugin and testing it, with example plugins that the tests run.
  • Protocol 2, with an error code on every refusal. Conformance runners in Python and JavaScript play the same scenarios against the server and against the table that runs in the browser alone.
  • A Content Security Policy on the table page, which only reports violations for now.
  • The first load of a table takes longer than in 0.2.0, because the plugins bring many small files. On our busy test scene it went from 260 to 380 ms. Release 0.4.0 works on bringing it back down.

Where it stands

The plan from the specification, step by step. There are no dates.

  1. Specification Done

    Requirements, architecture, protocols and the migration from PhaseSix, written down and reviewed twice.

  2. The cut Done

    The table code moved from PhaseSix into the Taflor repository, with its history.

  3. The generic core Done

    A host interface without PhaseSix code, protocol version 2, client registries, the base plugins, JSON Schemas and the conformance suite, released step by step as 0.1.0, 0.2.0 and 0.3.0.

  4. 0.4.0: load time In progress

    The first load of a table gets back to where it was before the plugin split.

  5. M1: standalone host Planned

    Done when a game master starts the image, runs the setup wizard, invites two players and plays a table with the base plugins.

  6. M2: plugins Planned

    Done when a third-party plugin and a sandboxed sheet plugin install, pin, update and roll back.

  7. M3: systems Planned

    Done when an example system with one actor type, one sheet and one roll works end to end.

  8. M4: extensions and docs Planned

    Done when an example server extension installs through the management interface and the "first plugin" tutorial works as written.

  9. Version 1.0 Planned

    The first standalone release, once M1 to M4 are done and the table runs as fast as PhaseSix's table does today.

Taflor is maintained alongside PhaseSix, without a support promise.

Not in version 1

So you know what to expect before you plan a campaign around it.

  • No hosted service. You run Taflor yourself, or a hosting service runs it for you.
  • No marketplace and no payments. Plugin catalogues are plain JSON files.
  • No database other than PostgreSQL. The compose file brings one along.
  • No import of Foundry worlds or Roll20 exports.
  • No JavaScript on the server. Dice rules the server checks are declarative.
  • No build step for you. The core and the plugins are plain ES modules, and a host never has to run a build tool.