Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

asteria

Prototyping a framework for JavaScript that works on the desktop

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

Asteria

⚠️ This project is deprecated. If you are interested in a similar concept, GocciaScript's custom runtime implementation should be a better starting point. (And GocciaScript already has Node.js API compatible sandbox filesystem) ⚠️

Prototyping framework for JavaScript, that works on the desktop

What does it do?

Asteria provides a framework and an IDE to rapidly prototype games.

Features

Core:

  • require function very similar to CommonJS (allows JSON reading and index.js in subfolders)
  • Console object by Dmitry A. Soshnikov
  • ES6 shim by Paul Miller
  • JSON.stringify and JSON.parse provided through BESEN

Window:

  • Window is the global object
  • window.innerHeight
  • window.innerWidth
  • window.setTimeout (in progress)
  • window.setInterval (in progress)
  • window.requestAnimationFrame (in progress)

Document:

  • document.addEventListener (in progress)
  • document.getElementById (in progress)

Filesystem:

  • Similar to Node.js fs Object
  • All operations are done synchronously
  • fs.fileExists: Checks if a file exists
  • fs.dirExists: Checks if a directory exists
  • fs.readFile: Reads a file (only text is supported)
  • fs.writeFile: Writes a file (only text is supported)

Eeek! Why are there binaries and dynamic libaries in the repository?

Well, they are there so you can try it for yourself without needing to compile the source for yourself.

Used libraries