Exhibit Net

Exhibit Net will be a collection of interlinked webpages that use a particular protocol to pass information from one page to the next as the user explores the network. This protocol will be especially good for making RPG text adventures, but it could also be used for a lot more. To make it easy for people to create pages for this network, I'm building a tool for generating simple Exhibit Net pages.

Adventure Builder

If you would like to contribute to Exhibit Net, you will need to have the ability to host arbitrary HTML pages on the web. If you don't know how, perhaps you should learn about GitHub Pages to find out how.

Protocol Specification

Each individual page on Exhibit Net is called an "exhibit".

When one exhibit sends the user to another exhibit (via hyperlink or automatic redirect), a packet of information is encoded in the URL address and parsed by the destination exhibit. This allows the exhibits to behave differently depending on the choices the user makes and the path they take as they explore the Exhibit Net.

The information packet is attached to the end of the URL using a hash ('#'). This is already a well-supported feature that web-browsers have. The information after the hash is not sent to the server, but can be read by the Javascript running on the page. The information is encoded as a list of individual items separated by ampersands('&'). The first item should be the URL of the exhibit the user is leaving, and the rest of the items are the "facts". Each fact is a URL-safe piece of text (doesn't contain ampersands, for example).

For example, lets say the user is currently viewing the exhibit at https://website.com/exhibit1.html, and they click something that takes them to another exhibit at https://joe.com/exhibit2.html, and the user currently has the following facts: 'is-poisoned' and 'has-sword', the link that takes them from the first exhibit to the second exhibit should be structured as follows:

Destination exhibit: https://joe.com/exhibit2.html

Items:
- Leaving exhibit: https://website.com/exhibit1.html
- Fact 1: is-poisoned
- Fact 2: has-sword

URL: https://joe.com/exhibit2.html#https://website.com/exhibit1.html&is-poisoned&has-sword

This allows the destination exhibit to know which exhibit the user came from as well as any other additional pieces of information that needs to be passed from one exhibit to the other.

Considerations

There are some things developers should keep in mind as they make their own exhibits: