A web-based implementation of Pixlet which is used to develop Tidbyt applications.
See it live: axilla.netlify.app
note: all query parameters are optional
Parameter | Default | Description |
---|---|---|
format | webp |
Image format generated by Pixlet. webp or gif |
output | html |
Output type returned by the API. html , image , or base64 |
applet | AXILLA | URL of a Pixlet applet (which should be a Starlark .star file.). Maximum file size 10MB. |
pixelate | true |
Set to false to disable pixelation simulation. Note: This is only used when output is html . |
note: when present, other params are ignored and an applet is not executed
Parameter | Default | Description |
---|---|---|
version | undefined |
When true returns Axilla and Pixlet version information as plain text. |
Query parameters can be passed to Pixlet for use within an applet (i.e. config.get('param')
). These parameters are defined by the applet itself. Note: Axilla query parameters listed above are reserved and will not be passed to the applet.
The default Axilla applet accepts one parameter: text
. Other applets can define and accept their own query parameters.
applet=https://raw.githubusercontent.com/tidbyt/pixlet/main/examples/hello_world.star
applet=https://raw.githubusercontent.com/tidbyt/pixlet/main/examples/clock.star
applet=https://raw.githubusercontent.com/btjones/community/main/apps/flags/flags.star&show_name=true&country_code=us
applet=https://raw.githubusercontent.com/btjones/community/main/apps/randomslackmoji/random_slackmoji.star&query=dance
Axilla is deployed to Netlify and utilizes Netlify Functions (which uses AWS Lambda under the hood). To deploy your own version of Axilla:
- Fork this repo (click Fork button on the top-right corner of this page)
- Link your forked repo to Netlify
- Visit https://YOUR-SITE-NAME.netlify.app/
-
Install Axilla dependencies:
npm install
-
Launch Axilla locally:
npm run dev
Note: When running locally, Axilla assumes you have Pixlet installed globally on your system and will use the pixlet
command to execute. A version of Pixlet is included in this repo but has been built to run on the Amazon Linux 2 operating system so that it can run when deployed as a Netlify/Lambda function.
Run unit tests:
npm run test
Run unit tests and watch for changes:
npm run test:watch
This application contains code from, and includes binaries of, Pixlet which is covered under the Apache License Version 2.0.