Skip to content

Latest commit

 

History

History
98 lines (56 loc) · 4.28 KB

README.md

File metadata and controls

98 lines (56 loc) · 4.28 KB

Axilla

A web-based implementation of Pixlet which is used to develop Tidbyt applications.

See it live: axilla.netlify.app

AXILLA

Axilla Query Parameters

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.

Special Parameters

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.

Applet Query Parameters

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.

Examples

All Defaults

axilla.netlify.app

Raw GIF Image

format=gif&output=image

Base 64 Image String

output=base64

Other Parameters

The default Axilla applet accepts one parameter: text. Other applets can define and accept their own query parameters.

text=You%20Rock!

External Applets

Without App Parameters

With App Parameters

Forking / Netlify Deployment

Axilla is deployed to Netlify and utilizes Netlify Functions (which uses AWS Lambda under the hood). To deploy your own version of Axilla:

  1. Fork this repo (click Fork button on the top-right corner of this page)
  2. Link your forked repo to Netlify
  3. Visit https://YOUR-SITE-NAME.netlify.app/

Local Development

  1. Install Netlify Dev

  2. Install Pixlet

  3. Install Axilla dependencies:

     npm install
    
  4. 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.

Test

Run unit tests:

npm run test

Run unit tests and watch for changes:

npm run test:watch

Pixlet

This application contains code from, and includes binaries of, Pixlet which is covered under the Apache License Version 2.0.