සංවර්ධකයින් — API · MCP · CLI

එක පේළියකින් WIA Code එකක් සාදන්න. නොමිලේ සීමාව තුළ key එකක් අවශ්‍ය නැත.

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.

බූස්ටර් QR එක සැමවිටම ඇතුළත් වේ. එය ක්‍රියාවිරහිත කිරීමට විකල්පයක් නැත — API, MCP සහ CLI සියල්ලටම මෙය එසේමය. "සමස්ත භාවිතය මිලියන 100කට ළඟා වූ විට, බූස්ටරය වෙන් වී එහි ස්ථානයට ඔබේම ලාංඡනය එයි" යනු නිෂ්පාදන පොරොන්දුවක් වන බැවින්, එක් මාර්ගයකට වුවද අපි විශේෂ ව්‍යතිරේකයක් සෑදුවේ නැත. එන්කෝඩින් පරාමිතීන් (grid, bpc, bridge) ද සර්වරයේ නියම කර ඇත.

CLI — ස්ථාපනයකින් තොරව එක පේළියකින්

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

Node 18 හෝ ඉන් පසුව අනුවාදයක ස්ථාපනයකින් තොරව වහාම ක්‍රියාත්මක වේ. එයට dependencies නොමැති නිසා ලබාගැනීමට තත්පර කිහිපයක් ප්‍රමාණවත් වේ.

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

වර්ග — Wi-Fi, සම්බන්ධතා කාඩ්පත, උත්සවය

සූදානම් වර්ග තුනකි. string ඔබටම එකලස් කිරීමට අවශ්‍ය නැත — ක්ෂේත්‍ර ලබා දෙන්න, සර්වරය මෙම වෙබ් අඩවියේ ජනරේටරය නිපදවන දෙයට byte-for-byte සමාන ප්‍රමිතික Wi-Fi / vCard / iCalendar අන්තර්ගතය සාදයි.

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

ක්ෂේත්‍ර

typeඅනිවාර්යවිකල්ප
wifissid, passwordsecurity (WPA·WEP·nopass), hidden
cardnameorg, tel, email
eventtitle, startend, location, desc

වේලාවන් "2026-09-01 19:00" ලෙස වේ. විවෘත Wi-Fi ජාලයක් සඳහා security=nopass ලබා දී මුරපදය මඟහරින්න. නොමැති හෝ වැරදි ලෙස සාදන ලද ක්ෂේත්‍ර, ක්ෂේත්‍රය නම් කරන පණිවිඩයක් සමඟ HTTP 400 ලෙස ආපසු එයි — රූපයක් නිර්මාණය නොවේ, එබැවින් වැරදි request එකක් කිසිදා render slot එකක් ගන්නේ නැත.

එකවර බොහෝ ගණනක්

එක් පේළියක් එක් කේතයකි. rate limit එකකදී එය අඩක් නවත්වනවා වෙනුවට රැඳී පසුව දිගටම කරගෙන යයි, සහ අසාර්ථක වූ පේළි ඒවායේ සැබෑ පේළි අංක සමඟ වාර්තා කරයි.

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

ප්‍රතිචාරය image/png වේ. base64 සහ metadata JSON ලෙස ලබාගැනීමට ?format=json එක් කරන්න.

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

බ්‍රවුසරයකින් එය කැඳවීම

ඕනෑම origin එකක web app එකකින් ඔබට එය සෘජුවම කැඳවිය හැක. එය cookies භාවිත නොකරන public API එකක් නිසා CORS විවෘතව ඇත.

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

පරාමිතීන්

නමඅනිවාර්යවිස්තරය
textඑන්කෝඩ් කළ යුතු පෙළ හෝ URL එක. දිගු URL කලින් කෙටි කිරීම වඩා හොඳය.
typewifi · card · event. text වෙනුවට ලබා දේ — සර්වරය ක්ෂේත්‍ර වලින් ප්‍රමිතික string එක එකලස් කරයි. ඉහත වර්ග කොටස බලන්න.
shapeසිල්හූට් එක (පෙරනිමිය heart). පහත වගුව බලන්න.
cellPxසෑම කොටුවකටම pixel ගණන (3–20, පෙරනිමිය 8). වැඩි අගයක් යනු වැඩි රූප ප්‍රමාණයකි.
labelmetadata තුළ තබා ගන්නා ලේබලයකි. එය රූපයේ අඳින්නේ නැත.

සිල්හූට් සහ ධාරිතාව

සෑම සිල්හූට් එකක්ම දරාගත හැක්කේ වෙනස් ප්‍රමාණයකි (UTF-8 බයිට්). දිගු අන්තර්ගතය සඳහා square භාවිත කරන්න; කෙටි සබැඳි සඳහා ඕනෑම හැඩයක් ගැලපේ.

shapebytesshapebytes
square1450rose586
round1093clover521
hex861star386
heart854boomerang386

MCP — AI එකට එය සාදන්නට දෙන්න

Claude වැනි AI client එකකට එය සම්බන්ධ කරන්න, එවිට එය සංවාදය තුළදීම කේත සාදයි. endpoint එක https://mcp.wiacode.com/mcp වන අතර key එකක් අවශ්‍ය නැත.

Claude Desktop සැකසුම

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

ඔබේ client එක Streamable HTTP සෘජුවම සහාය දක්වන්නේ නම්, එයට URL එක ලබා දෙන්න.

මෙවලම්

මෙවලමඑය කරන දේ
get_wia_code_infoWIA Code එකක් යනු කුමක්ද, එය QR කේතයකින් වෙනස් වන්නේ කෙසේද, සහ සෑම සිල්හූට් එකක ධාරිතාව කුමක්ද යන්න පැහැදිලි කරයි. මුලින්ම මෙය කැඳවීමෙන් අසාර්ථක වීම් අඩු වේ.
generate_wia_codeපෙළ කේත රූපයක් බවට පත් කරයි. එය ධාරිතාව ඉක්මවා ගියහොත්, කුමන සිල්හූට් ගැලපේද යන්න ඔබට කියයි.
generate_wia_code_wifiWi-Fi අක්තපත්‍ර — scan කිරීමෙන් මුරපදය නොටයිප් කර ජාලයට සම්බන්ධ වේ.
generate_wia_code_cardසම්බන්ධතාවක් ප්‍රමිතික vCard එකක් ලෙස — scan කිරීමෙන් එය දුරකථනයේ contacts වලට සුරැකීමට යෝජනා කරයි.
generate_wia_code_eventඋත්සවයක් ප්‍රමිතික iCalendar එකක් ලෙස — scan කිරීමෙන් එය දින දර්ශනයට එකතු කරයි.

නොමිලේ සීමා

ඔබට තවත් අවශ්‍ය නම් — තොග නිකුත් කිරීම්, හවුල්කාරිත්ව හෝ වාණිජ භාවිතය සඳහා, අපට ඊමේල් එකක් යවන්න. සීමාව ඉහළ නංවන key එකක් අපි ඔබට ලබා දෙන්නෙමු. 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.

තවත්

ජනරේටරය විවෘත කරන්න →

WIA Code යනු SmileStory Co., Ltd. හි නිෂ්පාදනයකි. බූස්ටර් QR යනු විශේෂිත ස්කෑනරයක් නොමැති අයටද එය කියවීමට උදව් වන මාර්ගෝපදේශකයෙකි.