본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)6.2k · #14403

developing-data-apps-locally

하는 일

이 스킬은 CLI로 만들거나 내려받은 Lightdash 데이터 앱을 로컬에서 편집하는 과정을 안내합니다. Lightdash 위에 맞춤 데이터 앱을 만드는 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓자신의 컴퓨터에서 Lightdash 데이터 앱을 편집하고 싶을 때.
  • ✓데이터 앱을 빌드, 미리보기, 업로드해야 할 때.
  • ✓외부 API를 연결 설정을 통해 데이터 앱에 연결하고 싶을 때.

스킬 링크

https://github.com/lightdash/lightdash/blob/main/packages/cli/src/handlers/apps/authoring/developing-data-apps-locally/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/lightdash/lightdash/blob/main/packages/cli/src/handlers/apps/authoring/developing-data-apps-locally/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“내려받은 Lightdash 데이터 앱을 로컬에서 설정하고, 미리 보고, 작동하면 업로드해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

스킬은 모든 데이터 접근이 쿼리 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 preview uses a loopback proxy restricted to the same SDK routes and project. Do not add direct fetch or REST calls.
  • For the SDK surface (query builder, useLightdash, filters, downloads), read the lightdash-data-app skill 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 the lightdash-data-app skill).
  • The app's links are declared in this folder's lightdash-app.yml under externalConnections (- 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 connectionSlug that doesn't exist in the target project is skipped with a warning (the app uploads, but externalFetch on that alias fails at runtime). Linking requires either the admin-level manage:ExternalConnection permission 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, edit lightdash/external-connections/<slug>.yml, lightdash upload with the secret in LIGHTDASH_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 add to 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.

  1. Edit files under src/ only.
  2. Run lightdash apps validate to check the source, manifest, dependencies, external-connection aliases, and semantic references against the downloaded context. Use lightdash apps validate --build to add the Cloud-parity Vite production build; use --live to check against fresh project explores or --format json in CI. A green run reports any call sites it could not fully analyze instead of silently claiming complete coverage.
  3. lightdash upload --apps <slug> --path ../.. (the slug from this folder's lightdash-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 --build assembles src/ in an isolated copy of the CLI's trusted template and invokes bare vite build — it deliberately does not typecheck because the Cloud build does not typecheck.
  • Apps made with lightdash apps create already have the standard template dependencies installed. After lightdash download, run npm install before requesting --build if node_modules is 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
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬