qiankun
यह क्या करती है
यह स्किल समझाती है कि qiankun का इस्तेमाल करके एक होस्ट ऐप और छोटे सब-ऐप कैसे बनाए जाएँ, जो रनटाइम पर उसमें लोड हों। यह उन वेब डेवलपर्स के लिए है जो बड़े फ़्रंट-एंड को हिस्सों में बाँटना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप मुख्य ऐप बनाना चाहते हैं जो कई अलग फ़्रंट-एंड ऐप लोड करे।
- ✓जब आप किसी मौजूदा Vite ऐप को माइक्रो सब-ऐप में बदलना चाहते हैं।
- ✓जब आप React या Vue के साथ माइक्रो-फ़्रंटएंड लोडिंग सेट कर रहे हों।
Skill का लिंक
https://github.com/umijs/qiankun/blob/next/skills/qiankun/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे मौजूदा Vite React ऐप को qiankun सब-ऐप में बदलने में मदद कीजिए, जिसे एक मुख्य shell लोड कर सके।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट काम के लिए संबंधित मार्गदर्शिका पढ़ता है, फिर होस्ट या सब-ऐप के चरणों का पालन करता है। टुकड़े एक-दूसरे को ढूँढ सकें, इसके लिए वह तय पोर्ट और मेल खाते ऐप नाम इस्तेमाल करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
qiankun
qiankun is a micro-frontend framework: a main (host) app loads sub (micro) apps from their HTML entries at runtime, each inside a JS sandbox, with opt-in CSS isolation. This skill is the agent-facing manual for qiankun 3.x.
Task routing
Read only the reference file(s) the task at hand needs:
| Task | Read |
|---|---|
| Create a micro (sub) app, or convert an existing Vite app | references/create-micro-app.md |
| Create a main (host) app | references/create-main-app.md |
| Anything else — migration, style isolation, sandbox, debugging | https://qiankun.umijs.org and examples/ in https://github.com/umijs/qiankun |
Before you start
Determine these, asking the user only when not inferable from context:
- App type — main (host/shell) or sub (micro app).
- App name — lowercase letters, numbers, hyphens. The name the host registers must exactly match the name the sub app uses in its classic-mode fallback.
- Framework — React or Vue; TypeScript or JavaScript. Templates in the references are TS; strip types for JS.
- Dev port — must be fixed and unique per app, because the host hard-references it in
entry. Convention: main app7099, sub apps7101,7102, …
Package versions — until qiankun 3.0 stable ships, rc is the dist-tag for the core packages:
| Package | Dist-tag | Goes in |
|---|---|---|
qiankun |
rc |
main app dependencies |
@qiankunjs/react / @qiankunjs/vue |
rc |
main app dependencies (optional UI binding) |
@qiankunjs/bundler-plugin |
rc |
sub app devDependencies |
Key facts
These invariants shape every task below:
- Vite sub apps need no dedicated build mode. qiankun 3 loads
<script type="module">natively through its ESM sandbox — regularvite dev/vite buildoutput is qiankun-ready as-is. - The JS sandbox is on by default. CSS isolation is opt-in per app via
styleIsolation: true(runtime CSS@scope). - A sub app must stay runnable standalone: when not loaded by qiankun (
window.__POWERED_BY_QIANKUN__is undefined) it renders itself directly. - Always unmount what you mount.
loadMicroAppreturns a handle whose.unmount()must be called when the app leaves; theMicroAppcomponent bindings do this automatically on component unmount. Unmounted instances stay cached for reuse by app name; only.unload()/unloadMicroApp(name)releases them, and the bindings never call those. - Webpack sub apps use
@qiankunjs/bundler-plugin/webpackinstead of the Vite plugin; see the docs.
After any creation task
Verify the result following the checklist at the end of the reference you used. If a browser tool is available, perform the checks yourself instead of asking the user to.
अक्सर पूछे जाने वाले सवाल
यह कौन-सा संस्करण कवर करती है?
यह qiankun 3.x की पुस्तिका है, और यह बताती है कि 3.0 स्थिर रिलीज़ तक कुछ मुख्य पैकेज rc टैग इस्तेमाल करते हैं।
क्या यह React के साथ Vue भी सपोर्ट करती है?
हाँ। स्किल React और Vue दोनों को कवर करती है, और उसके templates TypeScript में लिखे हैं।
माइग्रेशन या डीबगिंग के बारे में क्या?
मुख्य और सब-ऐप बनाने से आगे के विषयों के लिए स्किल आधिकारिक qiankun वेबसाइट और उदाहरणों की ओर इशारा करती है।
जानकारी
लेखक का मूल विवरण
Usage manual for building micro-frontend projects with qiankun 3.x. Use when the user wants to create a qiankun main (host) app or sub (micro) app, convert an existing Vite app into a qiankun micro app, or wire up micro-frontend loading with React/Vue.
repo: umijs/qiankun
लोकप्रियता
- GitHub स्टार
- 17k
- रैंकिंग में स्थान
- #10799
- लाइसेंस
- MIT
- अपडेट की गई
- 31/10/2026
कमेंट
- …
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।