An experimental simulation of the brain as a simple process of remote node communication
The Great Brain is a database-less and authentication-free project that sends and receives boolean data between remote servers. Each remote server the brain connects to is considered a 'node', which responds with one of the following: text, an image, audio or a video.
In this basic format, the key is to keep the code as minimal as possible and vary the HTML content response as much as possible.
Feel free to fork any of our sample nodes below and replace with your respective content. The sample nodes are all developed in Sinatra, Haml and Sass. Once you are happy with your node, deploy to a server where we can access the site. An easy place to deploy to is Heroku.
You can create a node in any language that you want and host on any server that we can access. The only requirements we need are two API JSONP (GET) calls - one returning HTML and the other returning a 0 or 1. The API specifics are outlined below:
{
"result": "<img src='http://myawesomenode.com/images/somethingcrazy.gif' />"
}
{
"result": 0
}
After you create the node, the easiest way to let us know is to create a public repository on Github, fork The Great Brain and send a pull request to add your node to our main node list.
Currently we will support any HTML tags, except <script> and <style>. Our whitelist of attributes currently include 'src', 'autoplay' and 'style'. If your node is found to be problematic (e.g. you're attempting to do bad things or the server is down), we will remove it from the master list until it is fixed.
This currently works best with the latest version of Firefox.