Giter Site home page Giter Site logo

avidnewb / axilla Goto Github PK

View Code? Open in Web Editor NEW

This project forked from btjones/axilla

0.0 0.0 0.0 93.66 MB

A web-based implementation of Pixlet.

Home Page: https://axilla.netlify.app

License: MIT License

JavaScript 91.51% CSS 2.28% HTML 1.64% Starlark 4.56%

axilla's Introduction

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.

axilla's People

Contributors

avidnewb avatar btjones avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.