Giter VIP home page Giter VIP logo

appwrite-qr-generator's Introduction

โšก Appwrite - QR Code Generator

A dead simple Appwrite function that generates QR codes.

๐Ÿงฐ Usage

GET /qr

  • Returns a QR code in PNG image format.

Parameters

Parameter Description Type
data The data to be encoded in the QR code. String
version The version of the QR code. Integer between 1 and 40
errorCorrectionLevel The error correction level of the QR code. Higher = larger image, less data stored, but devices can read it more easily without errors. L, M, Q, or H
maskPattern The mask pattern of the QR code. Integer between 0 and 7
margin The margin of the QR code. Integer
scale The scale of the QR code. Integer
width The width of the QR code. Integer
colorLight The color of the light modules in the QR code. Valid CSS color string
colorDark The color of the dark modules in the QR code. Valid CSS color string
deflateLevel The deflate level of the QR code. Integer between 0 and 9
deflateStrategy The deflate strategy of the QR code. Integer between 0 and 3

Note that the data parameter is required, and all other parameters are optional.

Response

Sample 200 Response:

qr.png

GET /

  • Returns an HTML website for generating QR codes.

โš™๏ธ Configuration

Setting Value
Runtime Bun (1.0)
Entrypoint src/main.ts
Build Commands bun install
Permissions any
Timeout (Seconds) 15

๐Ÿ”’ Environment Variables

No environment variables required.

appwrite-qr-generator's People

Contributors

teamappwrite avatar unickorn avatar

Watchers

 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.