kciter/qart.js
kciter/qart.js has 3,188 GitHub stars and 176 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-05 21:39 UTC. Last push 2023-09-02.
Generate artistic QR code. 🎨
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalqart.js
Merges Pictures and QR Codes for Artistic QR Codes.
Glance At
https://kciter.github.io/qart.js/
Installation
NPM
$ npm install qartjs
or clone this repository and copy qart.min.js to your project.
CDN
<script src="https://cdnjs.cloudflare.com/ajax/libs/qartjs/1.0.2/qart.min.js"></script>
Usage
In the browser
<script src="../dist/qart.min.js"></script>
<script>
// directly appending canvas to the document
new QArt({
value: value,
imagePath: './example.png',
filter: filter,
size: 195
}).make(document.getElementById('qart'));
// using callback
new QArt({
value: value,
imagePath: './example.png',
filter: filter,
size: 195
}).make(function (canvas) {
document.getElementById('qart').appendChild(canvas)
});
</script>
With ES6
import QArt from 'qartjs';
const qart = new QArt({
value: value,
imagePath: './example.png',
filter: filter,
size: 195
});
// directly appending canvas to the document
qart.make(document.getElementById('qart'))
// using callback
qart.make((canvas) => {
document.getElementById('qart').appendChild(canvas);
});
With React
This is a simple implementation of QArt as React Component. react-qart
With Angular.JS
There is a directive available for using qart.js in Angular.js: angular-qart
With Vue 2.x
There is a directive available for using qart.js in Vue.js 2.x : vue-qart
Options
| Field | Type | Description | Default |
|---|---|---|---|
| value | String | The data of the QR code. | Required |
| imagePath | String | The path of the combined image. | Required |
| filter | String | Define an image filter. threshold or color |
threshold |
| size | Integer | Define an image size in pixels. | 195 |
| version | Integer | QRCode version (1 <= version <= 40) | 10 |
| background | CSSColor | Implement background if exist | undefinded |
| fillType | scale_to_fit/fill | Place image type(fill or scale to fit) | scale_to_fit |
Dependency
Inspire
TODO
- Server-Side Rendering.
- CLI Command.
Donate
If you like this open source, you can sponsor it. :smile:
LICENSE
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,359 starspublic-apis/public-apis
A collective list of free APIs
496,646 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
437,152 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,047 stars