डेव्हलपर्स — API · MCP · CLI

एका ओळीत WIA Code तयार करा. मोफत मर्यादेत की आवश्यक नाही.

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 साठीही तेच लागू आहे. "एकत्रित वापर 10 कोटी वेळा पोहोचल्यावर बूस्टर वेगळा होतो आणि त्याच्या जागी तुमचा स्वतःचा लोगो येतो" हे उत्पादनाचे वचन आहे, त्यामुळे कोणत्याही एका मार्गासाठी अपवाद केलेला नाही. एन्कोडिंग पॅरामीटर्स (grid, bpc, bridge) देखील सर्व्हरवर निश्चित आहेत.

CLI — एक ओळ, इन्स्टॉलेशनशिवाय

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

Node 18 किंवा त्यापुढील आवृत्तीवर इन्स्टॉलेशनशिवाय लगेच चालते. कोणतीही डिपेंडन्सी नाही, त्यामुळे मिळवायला काही सेकंद लागतात.

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, संपर्क कार्ड, कार्यक्रम

तीन तयार प्रकार. तुम्हाला स्ट्रिंग्ज स्वतः तयार कराव्या लागत नाहीत — फील्ड्स द्या आणि सर्व्हर मानक 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 म्हणून परत येतात — कोणतीही प्रतिमा रेंडर होत नाही, त्यामुळे चुकीची विनंती कधीही रेंडर स्लॉट घेत नाही.

एकाच वेळी अनेक

प्रत्येक कोडसाठी एक ओळ. दर मर्यादा आल्यास ते मध्येच थांबण्याऐवजी थांबून पुढे चालू राहते, आणि अयशस्वी ओळी त्यांच्या खऱ्या ओळ क्रमांकांसह कळवते.

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 आणि मेटाडेटा 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 वरील वेब अ‍ॅपवरून हे थेट कॉल करू शकता. हे कुकीज न वापरणारे सार्वजनिक 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 ऐवजी दिले जाते — सर्व्हर फील्ड्समधून मानक स्ट्रिंग तयार करतो. वरील प्रकार विभाग पहा.
shapeसिल्हुएट (डीफॉल्ट heart). खालील तक्ता पहा.
cellPxप्रति सेल पिक्सेल (3–20, डीफॉल्ट 8). जास्त असल्यास प्रतिमा मोठी होते.
labelमेटाडेटामध्ये ठेवलेले लेबल. ते प्रतिमेवर काढले जात नाही.

सिल्हुएट्स आणि क्षमता

प्रत्येक सिल्हुएट वेगळी क्षमता ठेवतो (UTF-8 बाइट्स). लांब मजकुरासाठी square वापरा; लहान लिंकसाठी कोणताही आकार चालतो.

shapebytesshapebytes
square1450rose586
round1093clover521
hex861star386
heart854boomerang386

MCP — AI ला बनवू द्या

Claude सारख्या AI क्लायंटशी जोडा, म्हणजे संभाषणातच कोड तयार होतात. एंडपॉइंट https://mcp.wiacode.com/mcp आहे आणि कीची गरज नाही.

Claude Desktop सेटअप

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

तुमचा क्लायंट Streamable HTTP थेट सपोर्ट करत असल्यास, फक्त हा URL द्या.

टूल्स

साधनकाय करते
get_wia_code_infoWIA Code म्हणजे काय, तो QR कोडपेक्षा कसा वेगळा आहे आणि प्रत्येक सिल्हुएटची क्षमता किती आहे हे सांगते. हे आधी कॉल केल्याने अपयश कमी होते.
generate_wia_codeमजकुराचे कोड इमेजमध्ये रूपांतर करते. क्षमता ओलांडल्यास कोणते सिल्हुएट बसतील ते सांगते.
generate_wia_code_wifiWi-Fi क्रेडेन्शियल्स — स्कॅन केल्यास पासवर्ड न टाइप करता नेटवर्कमध्ये सामील होते.
generate_wia_code_cardसंपर्क मानक vCard स्वरूपात — स्कॅन केल्यास फोनच्या संपर्कांमध्ये जतन करण्याचा पर्याय देतो.
generate_wia_code_eventकार्यक्रम मानक iCalendar स्वरूपात — स्कॅन केल्यास तो कॅलेंडरमध्ये जोडला जातो.

मोफत मर्यादा

अधिक हवे असल्यास — मोठ्या प्रमाणात जारी करणे, भागीदारी किंवा व्यावसायिक वापरासाठी आम्हाला ईमेल करा. मर्यादा वाढवणारी की आम्ही देऊ. 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 मदत करतो.