Izstrādātājiem — API · MCP · CLI

Izveidojiet WIA Code vienā rindā. Bezmaksas robežās atslēga nav vajadzīga.

Building an AI or vision system? WIA Code identification reference for AI systems — the three centre elements, why the outline is free, and the misidentifications to avoid. Plain-text counterpart: /llms.txt.

Booster QR vienmēr ir iekļauts. Nav iespējas to izslēgt — tas pats attiecas uz API, MCP un CLI. "Kad kopējais lietojums sasniedz 100 miljonus reižu, booster atdalās un tā vietā parādās jūsu pašu logotips" ir produkta solījums, tāpēc mēs neveidojām izņēmumu nevienam ceļam. Kodēšanas parametri (grid, bpc, bridge) arī ir fiksēti serverī.

CLI — viena rinda, bez instalēšanas

npx wiacode "https://wiacode.com" --shape heart

Darbojas uzreiz ar Node 18 vai jaunāku versiju, bez instalēšanas. Tam nav atkarību, tāpēc tā iegūšana aizņem tikai dažas sekundes.

npx wiacode --list-shapes              # silhouettes and capacity
npx wiacode "Hello" --shape square -o hello.png
npx wiacode "a link" --shape heart --json    # print metadata only
npx wiacode card --name "Jane Doe" --tel "+82-10-1234-5678"   # wifi / card / event

Tipi — Wi-Fi, kontaktkarte, notikums

Trīs gatavi tipi. Jums nav pašiem jāveido virknes — nododiet laukus, un serveris izveidos standarta Wi-Fi / vCard / iCalendar saturu, baits pa baitam identisku tam, ko rada šīs vietnes ģenerators.

CLI

npx wiacode wifi  --ssid "MyNet" --password "secret"
npx wiacode wifi  --ssid "Cafe" --security nopass          # open network
npx wiacode card  --name "Jane Doe" --org "SmileStory" --tel "+82-10-1234-5678" --email "a@b.c"
npx wiacode event --title "Launch party" --start "2026-09-01 19:00" --end "2026-09-01 21:00" --location "Seoul"

REST

curl -X POST https://wiacode.com/api/v1/code \
  -H 'Content-Type: application/json' \
  -d '{"type":"card","name":"Jane Doe","tel":"+82-10-1234-5678","shape":"square"}' \
  -o card.png

Lauki

typeobligātsneobligāts
wifissid, passwordsecurity (WPA·WEP·nopass), hidden
cardnameorg, tel, email
eventtitle, startend, location, desc

Laiks tiek norādīts kā "2026-09-01 19:00". Atvērtam Wi-Fi tīklam nododiet security=nopass un izlaidiet paroli. Trūkstoši vai nepareizi formatēti lauki tiek atgriezti kā HTTP 400 ar ziņojumu, kas nosauc lauku — attēls netiek renderēts, tāpēc kļūdains pieprasījums nekad neaizņem renderēšanas vietu.

Vairāki uzreiz

Viena rinda — viens kods. Sasniedzot ātruma ierobežojumu, process gaida un turpina, nevis apstājas pusceļā, un ziņo par neveiksmīgajām rindām ar to reālajiem rindu numuriem.

npx wiacode batch people.jsonl --out-dir codes

# people.jsonl
{"type":"card","name":"Jane Doe","tel":"+82-10-1234-5678","out":"jane.png"}
{"type":"wifi","ssid":"Cafe WIA","security":"nopass"}
{"text":"https://wiacode.com","shape":"star"}

REST API

POST /api/v1/code

curl -X POST https://wiacode.com/api/v1/code \
  -H 'Content-Type: application/json' \
  -d '{"text":"https://wiacode.com","shape":"heart"}' \
  -o wiacode.png

Atbilde ir image/png. Pievienojiet ?format=json, lai iegūtu base64 un metadatus JSON formātā.

curl -X POST 'https://wiacode.com/api/v1/code?format=json' \
  -H 'Content-Type: application/json' \
  -d '{"text":"https://wiacode.com","shape":"square"}'

Izsaukšana no pārlūkprogrammas

To var izsaukt tieši no tīmekļa lietotnes jebkurā izcelsmē (origin). Tā ir publiska API, kas neizmanto sīkfailus, tāpēc CORS ir atvērts.

const r = await fetch('https://wiacode.com/api/v1/code?format=json', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ text: 'https://wiacode.com', shape: 'heart' })
});
const { image, meta } = await r.json();
document.querySelector('img').src = image;   // data:image/png;base64,...

GET /api/v1/shapes

curl https://wiacode.com/api/v1/shapes

Parametri

nosaukumsobligātsapraksts
textKodējamais teksts vai URL. Garus URL labāk vispirms saīsināt.
typewifi · card · event. Izmanto text vietā — serveris izveido standarta virkni no laukiem. Skatiet sadaļu „Tipi” augstāk.
shapeSilueta (noklusējuma heart). Skatiet tabulu zemāk.
cellPxPikseļi šūnā (3–20, noklusējuma 8). Lielāka vērtība nozīmē lielāku attēlu.
labelMetadatos saglabāta etiķete. Tā netiek zīmēta uz attēla.

Siluetas un ietilpība

Katra silueta satur atšķirīgu daudzumu (UTF-8 baiti). Garam saturam izmantojiet square; īsām saitēm der jebkura forma.

shapebytesshapebytes
square1450rose586
round1093clover521
hex861star386
heart854boomerang386

MCP — ļaujiet AI to izveidot

Savienojiet to ar AI klientu, piemēram, Claude, un tas veido kodus tieši sarunā. Galapunkts ir https://mcp.wiacode.com/mcp, un atslēga nav vajadzīga.

Claude Desktop iestatīšana

{
  "mcpServers": {
    "wiacode": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.wiacode.com/mcp"]
    }
  }
}

Ja jūsu klients tieši atbalsta Streamable HTTP, vienkārši norādiet tam URL.

Rīki

rīksko dara
get_wia_code_infoPaskaidro, kas ir WIA Code, kā tas atšķiras no QR koda un kāda ir katras siluetas ietilpība. Šī izsaukšana vispirms samazina kļūmes.
generate_wia_codePārvērš tekstu koda attēlā. Ja tas pārsniedz ietilpību, tas pasaka, kuras siluetas derētu.
generate_wia_code_wifiWi-Fi pieejas dati — skenēšana pievieno tīklam bez paroles ievadīšanas.
generate_wia_code_cardKontakts kā standarta vCard — skenēšana piedāvā to saglabāt tālruņa kontaktos.
generate_wia_code_eventNotikums kā standarta iCalendar — skenēšana pievieno to kalendāram.

Bezmaksas limiti

Ja jums vajag vairāk — masveida izdošanai, partnerībai vai komerciālam lietojumam rakstiet mums e-pastu. Mēs dosim jums atslēgu, kas paaugstina limitu. wiasoom@smilestory.ai

WIA Stream — when one code isn't enough

A single WIA Code holds up to 1,450 bytes. When the payload is larger — a document, a book chapter, an audio clip — Stream splits it across many frames. A screen plays them in sequence, a camera collects them, and the scanner reassembles the file. No internet, no server. It already ships in the generator.

What matters here is not speed — it is whether the transfer finishes at all. Stream needs every frame. A frame that fails to read must wait for the next pass, and may fail again. So a per-frame reading gap does not average out; it multiplies into the completion time. In our degradation sweep at matched physical size (1064 vs 1088 px, n=17, QR read with ZBar), a high-version QR frame read 52.9% of the time while a WIA frame read 17 of 17. Feeding those rates into a cyclic-broadcast model, a 286-frame QR transfer needs about 8 passes to complete while a 155-frame WIA transfer needs about one.

Read this honestly: n = 17 is a small sample. By the rule of three, "17 of 17" should be read as ≥ 82% with 95% confidence, and the 52.9% figure carries a 29–77% interval. Taking the least favourable end of both, the completion-time gap is still about 2.4×. Screen-to-camera capture on real handsets and printed output have not been measured yet. And QR wins on blur resistance at equal frame size — we only pull ahead once capacity is matched.

Vairāk

Atvērt ģeneratoru →

WIA Code ir SmileStory Co., Ltd. produkts. Booster QR ir ceļvedis, kas palīdz to nolasīt arī tiem, kam nav īpaša skenera.