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 62 Worlds Starter Worlds
Physics (AB) 1.0 Yes Three.js, Physijs Yes 94 Worlds Starter Worlds
P5 (AB) 1.0 Yes P5 Yes 22 Worlds Starter Worlds
Canvas (AB) 1.0 Yes None Yes 41 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 5 Worlds Starter Worlds
P5 1.0 Yes P5 No 228 Worlds Starter Worlds
Canvas 1.0 Yes None No 3 Worlds Starter Worlds
Webpage 1.0 No None No 14 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 1008 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.
 
Font:

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

Ancient Brain ™ is a trademark of Ancient Brain Ltd.

Platforms      Bug bounty      Contact

Stats      The name      Terms and conditions

Classes in Dublin      Call for partners