Giter Club home page Giter Club logo

qrcode.show's Introduction

QRcode.show

Generate QR code easily for free - QR Code Generation as a Service.


INPUT:

curl qrcode.show/INPUT
curl qrcode.show -d INPUT
curl qrcode.show -d @/PATH/TO/INPUT
echo INPUT | curl qrcode.show -d @-

INPUT EXAMPLES:

curl qrcode.show/https://example.com
curl qrcode.show -d https://example.com
curl qrcode.show -d @/path/to/input.txt
echo https://example.com | curl qrcode.show -d @-

PARAMETERS:

    Accept                      Specify the output type
                                Options:
                                    application/octet-stream
                                    text/plain
                                    text/html
                                    image/svg+xml
                                    image/png
                                    image/jpeg
                                Default: application/octet-stream

    X-QR-Width                  Specify the default width

    X-QR-Height                 Specify the default height

    X-QR-Min-Width              Specify the minimum width

    X-QR-Min-Height             Specify the minimun height

    X-QR-Max-Width              Specify the maximum width

    X-QR-Max-Height             Specify the maximum height

    X-QR-Dark-Color             Specify the dark color (hex)
                                Format: rrggbb

    X-QR-Light-Color            Specify the light color (hex)
                                Format: rrggbb

    X-QR-Version-Type           Specify the QR version type
                                Options:
                                    normal
                                    micro
                                Default: auto detect

    X-QR-Version-Number         Specify the QR version number
                                Options:
                                    1..40 for normal
                                    1..4 for micro
                                Default: auto detect

    X-QR-EC-Level               Specify the error checking level
                                Options:
                                    L
                                    M
                                    Q
                                    H
                                Default: L

    X-QR-Quiet-Zone             Specify whether the quiet zone is added
                                Options:
                                    true
                                    false
                                Default: true

PARAMETER EXAMPLES:

curl qrcode.show/INPUT -H "Accept: image/svg+xml"

SHELL FUNCTIONS:

Shell functions that can be added to .bashrc or .bash_profle for quickly generating QR codes from the command line. The command takes the argument as input or reads from stdin if none was supplied and outputs the QR code to stdout: qrcode INPUT or echo INPUT | qrcode

qrcode () {
  local input="$*"
  [ -z "$input" ] && local input="@/dev/stdin"
  curl -d "$input" https://qrcode.show
}
qrsvg () {
  local input="$*"
  [ -z "$input" ] && local input="@/dev/stdin"
  curl -d "${input}" https://qrcode.show -H "Accept: image/svg+xml"
}
qrserve () {
  local port=${1:-8080}
  local dir=${2:-.}
  local ip="$(ifconfig | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | fzf --prompt IP:)" \
    && echo http://$ip:$port | qrcode \
    && python -m http.server $port -b $ip -d $dir
}

PROGRAMMING LANGUANGE EXAMPLES

๐Ÿš€ FEATURES :

  • No data collection or retention
  • Fast and simple API that works on both web and terminal
  • Supports GET and POST requests
  • Supports Accept header to control the output format

๐Ÿ“ TODO:

  • Support more parameters
  • Get a logo
  • Support dynamic QR codes
  • Generate premium/branded QR codes

๐Ÿ’– SPONSORS:

Top 5 sponsors get mentioned here (updated monthly) Visit https://opencollective.com/qrcodeshow

๐Ÿ“‹ CREDITS:

Only the direct dependencies for the main business logic are listed here. Please contact the project maintainer if you are missing from the list.

๐Ÿ”— RELATED LINKS:

๐Ÿ““ COPYRIGHT:

ยฉ Arijit Basu 2021

qrcode.show's People

Contributors

diosamuel avatar sayanarijit avatar siddhant-k-code avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qrcode.show's Issues

Add a QR code resolution parameter

Describe the solution you'd like
A resolution parameter to choose how big the QR code is (e.g. Google Chart's chs)

Additional context
Just add some simple parameter such as res=<width>x<height> or something. I dunno ยฏ_(ใƒ„)_/ยฏ

Document in Markdown

We Can Make this project, README in markdown with code snippets, headers, images, & more.

beautify the homepage

-i can work on beautifying the homepage by creating a sticky navbar.
-make it mobile friendly.
also any changes you'd like you can suggest.

Add more web frontend functionalities

Is your feature request related to a problem? Please describe.

We can pass many parametets from the command-line using http headers. But the web frontend is still lacking in functionalities. It can only generate SVG images and print the PDF, which is rather limited.

Describe the solution you'd like

Add a minimized "Advanced" button, clicking which we get more options. Options like download png/jpeg, set dimensions etc.

Describe alternatives you've considered

None

Additional context

The UI needs to be simple and easy to use. By default, users shouldn't be able to see all the buttons. Only by clicking the "Advanced" button, all the customisation options should appear.
Also, we need to keep the website lightweight. Let's avoid using external libraries as much as possible.

Qrcode.show Logo

Is your feature request related to a problem? Please describe.
A logo is required for the product

Describe the solution you'd like
I would like to try and design a logo for this.

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.