moon-api

0.2.0 • Public • Published

Moon

Moon is an minimal, JIT-compilable, secure code-interchange format. It is:

  • Safe: Moon isolates logic from side-effects, allowing you to securely run code from untrusted sources.

  • Fast: when compiled to JS, it beats popular libs by a large margin.

  • Compact: Moon has a canonical binary format for very small bundles.

  • Decentralized: Moon imports are hash-addressed, recursively resolved from IPFS.

  • Small: this entire implementation, for example. is a 7.5K JS file (gzipped).

Formally, it consists of the untyped λ-calculus extended with numbers, strings and maps.

Examples

  • Running some computations:

Learning

The best way to learn right now is looking at the examples on demos. Tutorials and documentations are being developed.

Readme

Keywords

none

Package Sidebar

Install

npm i moon-api

Weekly Downloads

1

Version

0.2.0

License

MIT

Last publish

Collaborators

  • maiavictor