developing-data-apps-locally
यह क्या करती है
यह स्किल CLI से बनाए या डाउनलोड किए Lightdash डेटा ऐप के स्थानीय संपादन का मार्गदर्शन करती है। यह उन डेवलपरों के लिए है जो Lightdash के ऊपर कस्टम डेटा ऐप बनाते हैं।
कब इस्तेमाल करें
- ✓जब आप अपने कंप्यूटर पर Lightdash डेटा ऐप संपादित करना चाहते हैं।
- ✓जब आपको डेटा ऐप बनाना, उसका प्रीव्यू देखना या उसे अपलोड करना है।
- ✓जब आप लिंक्ड कनेक्शन के ज़रिए डेटा ऐप से बाहरी API जोड़ना चाहते हैं।
Skill का लिंक
https://github.com/lightdash/lightdash/blob/main/packages/cli/src/handlers/apps/authoring/developing-data-apps-locally/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरा डाउनलोड किया Lightdash डेटा ऐप लोकल पर सेट कीजिए, उसका प्रीव्यू देखिए, और सही चलने पर अपलोड कीजिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल बताती है कि डेटा तक पहुँच केवल Lightdash क्वेरी SDK से होती है और बाहरी API लिंक्ड कनेक्शन इस्तेमाल करते हैं। फिर वह बनाने, प्रीव्यू करने और अपलोड के चरणों और अपलोड आउटपुट में दिखने वाली जाँचों में मार्गदर्शन देती है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Developing Lightdash Data Apps Locally
You are editing a Lightdash data app that was created or downloaded with the Lightdash CLI.
The only way to reach data is the SDK
- All app data access goes through
@lightdash/query-sdk. Deployed apps use Lightdash's postMessage bridge;lightdash apps previewuses a loopback proxy restricted to the same SDK routes and project. Do not add directfetchor REST calls. - For the SDK surface (query builder,
useLightdash, filters, downloads), read thelightdash-data-appskill in this folder.
External HTTP APIs go through linked connections
- The one sanctioned path to a third-party API is
lightdash.externalFetch('<alias>', ...)against an external connection a project admin configured and linked to this app (see thelightdash-data-appskill). - The app's links are declared in this folder's
lightdash-app.ymlunderexternalConnections(- alias: stripe/connectionSlug: stripe-api). When the key is present, upload reconciles the app's links to match it exactly — so to link a connection that already exists in the project, add its{alias, connectionSlug}entry and upload. Do not remove entries casually: an entry removed from the list (or an empty list) unlinks on upload, and a manifest without the key leaves links unchanged. - Watch the upload output: a
connectionSlugthat doesn't exist in the target project is skipped with a warning (the app uploads, butexternalFetchon that alias fails at runtime). Linking requires either the admin-levelmanage:ExternalConnectionpermission or an admin-enabled connection plus permission to manage the target data app — if a link is skipped or forbidden, report it to the user instead of retrying. - If the app needs an API with no existing connection, stop and say so — do not vendor an HTTP client or try to reach it another way. An admin must create the connection first (in project settings, or as code:
lightdash download --include-external-connections, editlightdash/external-connections/<slug>.yml,lightdash uploadwith the secret inLIGHTDASH_EXTERNAL_CONNECTION_SECRET_<SLUG>); then it can be linked via the manifest as above.
Library boundaries — build with what's preinstalled
- The app builds against a fixed template dependency set — see
package.json(React, Recharts, d3 + d3-cloud/d3-sankey, Radix primitives, Tailwind, lucide-react, date-fns, html-to-image, jspdf, and more). Design within this set; it covers almost all data-app needs. - Adding new npm packages only works when the Lightdash organization has custom dependencies enabled — assume it does not. When disabled, upload rejects new dependency declarations. Do not attempt
pnpm addto find out; ask the user whether their organization has custom dependencies enabled before considering a new library. - Do not work around a missing library by vendoring its source into
src/, inlining minified code, or fetching code at runtime. If the template set genuinely cannot express what's asked, say so and let the user decide.
The edit → build → upload loop
Run these commands from this folder under apps/<slug>/. The upload path ../.. selects the Lightdash content root.
- Edit files under
src/only. - Run
lightdash apps validateto check the source, manifest, dependencies, external-connection aliases, and semantic references against the downloaded context. Uselightdash apps validate --buildto add the Cloud-parity Vite production build; use--liveto check against fresh project explores or--format jsonin CI. A green run reports any call sites it could not fully analyze instead of silently claiming complete coverage. lightdash upload --apps <slug> --path ../..(theslugfrom this folder'slightdash-app.yml) — the server rebuilds and serves the app. The server rebuild remains the final result that ships.
Cloud-parity local builds
lightdash apps validate --buildassemblessrc/in an isolated copy of the CLI's trusted template and invokes barevite build— it deliberately does not typecheck because the Cloud build does not typecheck.- Apps made with
lightdash apps createalready have the standard template dependencies installed. Afterlightdash download, runnpm installbefore requesting--buildifnode_modulesis absent. Validation does not install the standard dependency set implicitly. - Apps with custom dependencies are restored into the isolated build di
अक्सर पूछे जाने वाले सवाल
क्या मैं डेटा सीधे कॉल कर सकता हूँ?
नहीं, स्किल कहती है कि सारी डेटा पहुँच क्वेरी SDK से होती है, सीधे अनुरोधों से नहीं।
बाहरी API कैसे काम करते हैं?
एडमिन बाहरी कनेक्शन सेट करता है, और ऐप अपनी मेनिफ़ेस्ट फ़ाइल में उससे लिंक करता है।
अपलोड के बाद मुझे क्या जाँचना चाहिए?
स्किल कहती है कि अपलोड आउटपुट पढ़ें, जो चेतावनी देता है कि कोई कनेक्शन नाम मौजूद नहीं है।
जानकारी
लेखक का मूल विवरण
Use when editing a locally created or downloaded Lightdash data app — how local editing, building, and uploading work, and what is read-only.
repo: lightdash/lightdash
लोकप्रियता
- GitHub स्टार
- 6.2k
- रैंकिंग में स्थान
- #14403
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
breakup-pr
6.2kआपके एजेंट को बड़े pull request को छोटे, एक के ऊपर एक जुड़े हिस्सों में बाँटने में मदद करती है, जिन्हें एक-एक करके रिव्यू और मर्ज किया जा सके।
lightdash-agent-slack-messaging
6.2kआपके एजेंट को Lightdash एडमिनिस्ट्रेटरों के लिए साफ़ और मित्रवत रखरखाव तथा गतिविधि रिपोर्ट लिखने में मदद करती है, केवल उपलब्ध सबूतों के आधार पर।
developing-in-lightdash
6.2kआपके एजेंट को Lightdash डैशबोर्ड और चार्ट को JSON के रूप में पढ़ने, बनाने और संपादित करने में मदद करती है, हर चार्ट प्रकार की सेटिंग के साथ।
filter-expressions
6.2kआपके एजेंट को Lightdash मीट्रिक क्वेरी के लिए सही फ़िल्टर एक्सप्रेशन लिखने में मदद करती है, जिनमें कस्टम मीट्रिक पर फ़िल्टर भी शामिल हैं।
मिलती-जुलती 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 फॉलो करवाता है।