API docs

This is a summary page comparing all the APIs. Click on API name to see its documentation. See what is an API.

Go to the Starter Worlds page to see Starter Worlds for all APIs on one page.

These APIs use specific versions of third-party libraries. These APIs will not change in the future, so that all runs will always work. Rather, new APIs will be added.

 
 

"Ancient Brain" APIs

The following APIs include third-party libraries and a useful Ancient Brain framework to make writing Worlds easy and short.

These APIs are useful for writing JS Worlds for this site:


API Version Uses canvas Graphics libraries AB framework Worlds using this API Starter Worlds
Three (AB) 2.0 Yes Three.js Yes 93 Worlds Starter Worlds
Physics (AB) 1.0 Yes Three.js, Physijs Yes 100 Worlds Starter Worlds
P5 (AB) 1.0 Yes P5 Yes 25 Worlds Starter Worlds
Canvas (AB) 1.0 Yes None Yes 43 Worlds Starter Worlds
 
 

"Plain" APIs

The following APIs include third-party libraries and nothing else (no useful Ancient Brain framework). The World author has to write everything themselves.

These APIs are useful for porting JS Worlds to this site unchanged:


API Version Uses canvas Graphics libraries AB framework Worlds using this API Starter Worlds
Three 2.0 Yes Three.js No 24 Worlds Starter Worlds
Physics 1.0 Yes Three.js, Physijs No 7 Worlds Starter Worlds
P5 1.0 Yes P5 No 672 Worlds Starter Worlds
Canvas 1.0 Yes None No 3 Worlds Starter Worlds
Webpage 1.0 No None No 33 Worlds Starter Worlds
 
 

Earlier version APIs

Worlds with an earlier version of the API will run fine. Just that a later version of the API exists. These earlier APIs will exist forever, so the Worlds will run forever. And you can go on using the earlier API forever.

Over time, we expect most Worlds on this site to have APIs in this section rather than in the "latest version" section. But this is not a problem.


API Version Uses canvas Graphics libraries AB framework Worlds using this API Starter Worlds
Three (AB) (1.0) 1.0 Yes Three.js Yes 1015 Worlds None
Three (1.0) 1.0 Yes Three.js No 1 World None
 
 
The background is a program, showing the JavaScript graphics used on this site.
The globes light up when you log in.
 
Font:

© Ancient Brain Ltd. 2018-19. All rights reserved.

Ancient Brain ™ is a trademark of Ancient Brain Ltd.

Platforms      Stats      The name      Terms and conditions

Bug bounty      Classes in Dublin      Contact

Call for partners
If you are interested in writing a programming course or textbook, Ancient Brain is looking for partners. We will work with you, and integrate your course into the site. This is an opportunity for someone looking to develop a course or textbook to partner with a site to support it and promote it.