ডেভেলপারদের জন্য — 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-এর ক্ষেত্রেও একই কথা প্রযোজ্য। "সঞ্চিত ব্যবহার ১০ কোটি বারে পৌঁছালে, বুস্টার আলাদা হয়ে যায় এবং তার জায়গায় আপনার নিজের লোগো বসে" — এটি একটি পণ্য প্রতিশ্রুতি, তাই আমরা কোনো একটি পথের জন্য ব্যতিক্রম রাখিনি। এনকোডিং প্যারামিটারও (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 / 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 · eventtext-এর বদলে দেওয়া হয় — সার্ভার ফিল্ড থেকে স্ট্যান্ডার্ড স্ট্রিং তৈরি করে। উপরের টাইপ সেকশন দেখুন।
shapeসিলুয়েট (ডিফল্ট heart)। নিচের টেবিল দেখুন।
cellPxপ্রতি সেলে পিক্সেল (৩–২০, ডিফল্ট ৮)। বড় মান মানে বড় ছবি।
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 এমন একটি গাইড যা ডেডিকেটেড স্ক্যানার ছাড়া মানুষকেও এটি পড়তে সাহায্য করে।