█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

designlang

किसी भी URL पर headless browser चलाकर लाइव DOM से design system पढ़ता है — एक ही command से DTCG tokens, Tailwind config, Figma variables और prompt pack

Web Scraping & Crawlingओपन सोर्स
भाषा
TypeScript
लाइसेंस
MIT
$npx designlang https://stripe.com
संक्षेप में

designlang क्या है?

designlang किसी भी URL पर headless browser चलाकर लाइव DOM से design system पढ़ता है — एक ही command से DTCG tokens, Tailwind config, Figma variables और prompt pack. यह Data & Labeling टूल्स की Web Scraping & Crawling श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और MIT लाइसेंस के तहत है।

सारांश

designlang किसी URL पर headless browser चलाता है और stylesheet या screenshot से नहीं, बल्कि लाइव DOM से design system पढ़ता है। एक command से सत्रह से ज़्यादा फ़ाइलें बनती हैं: DTCG design tokens (primitive, semantic और composite), Tailwind config, shadcn theme, Figma variables, motion tokens, typed component anatomy, brand voice, page-intent labels, और v0, Lovable, Cursor और Claude Artifacts के लिए तैयार prompt pack।

designlang output overview showing the artefacts produced from one extraction run — DTCG tokens, a Tailwind config, Figma variables and a brand book PDF.
What one run emits: DTCG tokens, Tailwind config, Figma variables and a brand book.design-extract README ↗

दिलचस्प बात यह है कि यह रंग और टाइप से आगे भी मापता है। असली browser चलाने की वजह से यह layout patterns, चार breakpoints पर responsive व्यवहार, और hover, focus और active states रिकॉर्ड कर सकता है — ऐसी चीज़ें जो static CSS parse नहीं देख सकता। इसके ऊपर WCAG contrast scoring और remediation सुझाव, CSS health audit, multi-page consistency checks, live source of truth के साथ drift checks, visual diffs, और README में डाला जा सकने वाला SVG badge वाला shareable graded report card भी है।

`designlang site` वह command है जो इसे single-URL extractors से अलग करता है: यह किसी साइट के canonical पेज — home, pricing, docs, blog, about, product — crawl करता है और coverage के आधार पर हर token चुनकर एक de-duplicated system बनाता है। coverage का मतलब है कि कितने पेज उस token का इस्तेमाल करते हैं, उनका हिस्सा। इससे पूरी साइट पर लागू होने वाले फ़ैसले उन एक-बार वाले, page-local फ़ैसलों से अलग हो जाते हैं; लगभग एक-जैसे रंग OKLab में मर्ज होते हैं। यह पूरी तरह deterministic है और इसे API key की ज़रूरत नहीं होती। बाकी subcommands दो साइटों की head-to-head तुलना करते हैं, दो design languages को fuse करते हैं, किसी system को दूसरी vocabulary में restyle करते हैं, clone को original से score करते हैं, और एक live token editor खोलते हैं।

AI workflows के लिए इसमें Claude Code, Cursor और Windsurf के लिए MCP server आता है, ताकि कोई agent सीधे किसी साइट के tokens मांग सके। साथ ही iOS SwiftUI, Android Compose, Flutter और WordPress के लिए multi-platform emitters और एक Chrome extension भी है। यह MIT-licensed है, Playwright पर बना है, और इसके लिए Node 20+ चाहिए। एक वैकल्पिक `--smart` classification step OpenAI-compatible endpoint को call करता है; deterministic paths ऐसा नहीं करते।

यह क्या करता है

  • Headless browser से लाइव DOM पर design system पढ़ता है, इसलिए hover/focus/active states और चार breakpoints पर responsive व्यवहार अनुमान से नहीं, बल्कि मापकर निकाले जाते हैं
  • एक command से 17+ artefacts बनाता है: DTCG tokens (primitive + semantic + composite), Tailwind v4 config, shadcn theme, Figma variables, motion tokens, component anatomy और एक prompt pack
  • `site` mode किसी साइट के canonical पेज crawl करता है और coverage के आधार पर हर token चुनता है, जिससे साइट-वाइड फ़ैसले पेज-लोकल फ़ैसलों से अलग होते हैं; लगभग एक-जैसे रंग OKLab में मर्ज होते हैं
  • Extraction के ऊपर quality passes: WCAG contrast scoring और remediation, CSS health audit, multi-page consistency, live source of truth के साथ drift checks और visual diffs
  • Claude Code, Cursor और Windsurf के लिए MCP server, ताकि coding agent अपने context में असली design system ला सके
  • Multi-platform emitters — iOS SwiftUI, Android Compose, Flutter, WordPress — के साथ एक Chrome extension और live token editor (`studio`)
  • Graded report card, जिसमें shareable SVG badge है, और head-to-head तथा clone-vs-original scoring के लिए `battle` / `fidelity` commands
  • डिफ़ॉल्ट रूप से deterministic और key-free; `--smart` classification वैकल्पिक है और OpenAI-compatible endpoint इस्तेमाल करता है

शुरू करें

designlang सीधे npx से Node 20+ पर चलता है; browser Playwright देता है। --smart classification चुनने पर ही किसी API key की ज़रूरत होती है, वरना नहीं।

एक पेज निकालें

सादा command किसी URL पर पूरी extraction चलाता है और artefact set लिखता है।

bashbash
npx designlang https://stripe.com

पूरी साइट का system बनाएं

`site` canonical पेज crawl करता है और coverage के आधार पर tokens चुनता है, इसलिए आपको एक de-duplicated system और consistency grade मिलता है — न कि वह जो संयोग से किसी एक पेज पर इस्तेमाल हुआ।

bashbash
npx designlang site stripe.com --max-pages 8

States और responsive व्यवहार कैप्चर करें

--full में screenshots, चार breakpoints वाला responsive pass और interaction states जुड़ जाते हैं।

bashbash
npx designlang --full https://stripe.com

Grade करें, तुलना करें और drift जांचें

Scoring commands अलग verbs हैं। `grade --badge` एक SVG badge भी लिखता है; `battle` दो साइटों की head-to-head तुलना करता है; `fidelity` उस clone को original से visuals और motion पर score करता है जिसे आप बना रहे हैं।

bashbash
npx designlang grade https://stripe.com --badge
npx designlang battle stripe.com vercel.com
npx designlang fidelity stripe.com --clone localhost:3000

Live token editor खोलें

`studio` एक local editor चलाता है, जहां tokens बदले, preview किए, export और share किए जा सकते हैं।

bashbash
npx designlang studio

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • जब redesign या rebuild को मौजूदा साइट के असली tokens चाहिए, जो screenshot से अंदाज़े से नहीं बल्कि मापकर निकाले गए हों, तब इसका इस्तेमाल करें
  • जब coding agent UI लिख रहा हो और उसे असली design system से शुरू करना चाहिए, तब इसका इस्तेमाल करें — MCP server tokens को उसके context में डाल देता है
  • पूरी साइट पर consistency और WCAG contrast ऑडिट करने के लिए इसका इस्तेमाल करें, साथ में एक graded report जिसे आप किसी और को दे सकते हैं
  • जब जांचना हो कि clone या implementation सचमुच original से मेल खाता है या नहीं, motion तक की बारीकी तक, तब इसका इस्तेमाल करें

How designlang compares

designlang alongside other open-source web scraping & crawling tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Firecrawl★ 215kकिसी भी वेबसाइट को अपने LLM ऐप्स के लिए साफ़ Markdown या स्ट्रक्चर्ड JSON में बदलें
Agent Reach★ 117kपहले से कॉन्फ़िगर की गई वेब-एक्सेस लेयर, जो CLI एजेंट को उन साइटों के लिए रीडर देती है जहाँ उसकी पहुँच नहीं है
Scrapling★ 108kएडैप्टिव Python वेब स्क्रैपिंग, जो साइट में बदलाव के बावजूद काम करती रहे और anti-bot सिस्टम को बायपास करे
Crawl4AI★ 88.4kवेब पेजों को साफ़, LLM के लिए तैयार Markdown में बदलने वाला ओपन सोर्स वेब क्रॉलर
Scrapy★ 65.7kबड़े पैमाने पर वेबसाइट क्रॉल करने और संरचित डेटा निकालने के लिए एक Python फ़्रेमवर्क
changedetection.io★ 36.2kLLM-फ़िल्टर्ड अलर्ट के साथ सेल्फ-होस्टेड वेब पेज चेंज मॉनिटरिंग
ScrapeGraphAI★ 33kसादी अंग्रेज़ी के प्रॉम्प्ट से LLM और ग्राफ़ पाइपलाइन द्वारा संरचित वेब डेटा निकालें
designlang★ 5.3kकिसी भी URL पर headless browser चलाकर लाइव DOM से design system पढ़ता है — एक ही command से DTCG tokens, Tailwind config, Figma variables और prompt pack