Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/michareiser/speedy.js-saas
Speedy.js compiler as a service
https://github.com/michareiser/speedy.js-saas
compiler saas speedyjs
Last synced: 15 days ago
JSON representation
Speedy.js compiler as a service
- Host: GitHub
- URL: https://github.com/michareiser/speedy.js-saas
- Owner: MichaReiser
- Created: 2017-06-13T15:11:04.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-01T13:30:10.000Z (over 7 years ago)
- Last Synced: 2024-11-08T13:47:47.232Z (about 2 months ago)
- Topics: compiler, saas, speedyjs
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Speedy.js as a Service
Heroku Service for compiling TypeScript files to WebAssembly.
## Compile Request
Post your files to `https://speedyjs-saas.herokuapp.com/compile`
```json
{
"files": [
{
"fileName": "fib.ts",
"source": "async function test(value: int) { \"use speedyjs\";\n return value; }"
}
],
"tsconfig": {
"saveWast": true
}
}```
The output differs depending on the specified tsconfig and [speedy.js options](https://github.com/MichaReiser/speedy.js/blob/master/packages/compiler/src/speedyjs-compiler-options.ts#L10).
```json
[
{
"fileName": "fib.ts",
"sourceMapText": "...",
"wasm": [23, 45 ],
"wast": "(module\n (type $0 ...",
"js": "var __awaiter = ...\n",
"exitStatus": 0,
"diagnostics": []
}
]
```The schema for the request is located [here](./schemas/compile-schema.json).
## Publish to Heroku
Run `git push heroku master` to push the local version to heroku.