Graphrt

QR Code

Buat file PNG atau SVG (error correction, ukuran, warna) dan baca kode QR dan Micro QR dari gambar lokal (zxing-wasm dimuat dari node_modules, tidak pernah dari CDN), batas piksel, hanya membuat file output baru

Stabil v0.1.0 Node.js 2 aksi
Pakai di Graphrt Desktop

Tentang

Plugin Graphrt untuk kode QR. Workflow dan agent bisa membuat kode QR sebagai file PNG atau SVG baru, dan membaca kode QR di gambar lokal. Pembuatan memakai qrcode, pembacaan memakai zxing-wasm (pembaca ZXing C++ yang di-compile ke WebAssembly), keduanya JavaScript dan WebAssembly murni tanpa build native.

Yang bisa dilakukan

  • generate: text (a URL or any text) as png or svg, with error_correction (L, M, Q, H), margin, module_size or image_size, dark_color and light_color, include_data: true also returns the SVG text or a PNG data: URL.
  • decode: QR, Micro QR and rMQR codes in a png, jpeg, gif or bmp image: each code's text, content type, error correction level and corner positions, up to max_codes, try_harder also tries rotated and inverted images.

Aksi

Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.

  • Generate a QR code qr-code.generate
  • Decode QR codes qr-code.decode

Pengaturan

Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.

  • QR_CODE_INPUT_DIRS (required for decode)
    Comma-separated directories (absolute or ~/...) that images may be read from, subdirectories included
  • QR_CODE_OUTPUT_DIR (required for generate)
    Existing directory for generated codes, they can be read back by decode
  • QR_CODE_MAX_INPUT_BYTES 25 MiB
    Largest image to decode
  • QR_CODE_MAX_OUTPUT_BYTES 10 MiB
    Largest generated file
  • QR_CODE_MAX_INPUT_PIXELS 40000000
    Most pixels (width × height, read from the header) of an image to decode
  • QR_CODE_MAX_OUTPUT_PIXELS 16777216 (4096²)
    Most pixels of a generated PNG ((modules + 2 × margin) × module_size, squared)

Cara memakainya

Di Graphrt Desktop

  1. Buka Plugins dan cari QR Code.
  2. Klik Install lalu setujui.
  3. Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
  4. Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Plugin di Graphrt Desktop

Dengan CLI

terminal
$ graphrt plugin install qr-code
workflow.yaml
- id: qr_code
  type: qr-code.generate
Plugin di docs