以卡片式界面定义数据契约,覆盖模式、信任规则、数据同步、团队、术语表、交付与血缘等部分
data-contract — Svelte SaaS模板
作者 AgileDataGuides
一个用 Svelte 构建的数据契约编辑器,用于为数据集定义模式、信任规则、SLA、归属与血缘,并支持 ODCS、OpenMetadata、JSON、RTF、Word、PDF 等多种格式导出。
看看你的网站会是什么样
浏览真实页面截图,比较内容排版与手机效果。点击下方缩略图切换,放大查看整页细节。
全部页面与视图 2
截图用于了解视觉与布局,交互效果请以实际项目为准。
值得关注的模板亮点
从已有项目资料中,快速了解它的特点。
信任规则按完整性、唯一性、准确性、新鲜度、有效性、安全性、治理分类,可绑定到具体列并以自由文本保存规则表达式
支持 JSON、ODCS YAML(Bitol v3.0.2)、OpenMetadata Standards JSON、RTF、Word、PDF 多种导出格式
导入可自动识别原生 JSON、ODCS YAML、OpenMetadata 与 Context Plane 图格式
支持多个契约的创建、切换与删除,改动自动保存到浏览器 localStorage
开发模式下可将契约 JSON 写入 data/ 目录,供 Claude Code 等外部工具直接读取
模板详细介绍
这是一个面向数据生产方与消费方的数据契约编辑工具,把双方对某个数据集的约定写成可机读的文档。契约覆盖数据资产本身、列级模式(数据类型、PII/公开/机密分类、可空性、主键)、信任规则(完整性、唯一性、准确性、新鲜度、有效性、安全性等)、数据同步的服务级承诺(刷新频率、延迟、可用性、保留期)、团队角色与联系方式、依赖该契约的角色画像、业务术语表、交付与基础设施、以及对齐 PROV-O 的上游血缘。
界面采用点击选中卡片、再次点击就地编辑的交互方式,支持创建、切换和删除多个契约,改动自动保存到浏览器 localStorage。导出格式包括原生 JSON、ODCS YAML(Bitol v3.0.2)、OpenMetadata Standards JSON、RTF、Word 和 PDF;导入可自动识别原生 JSON、ODCS YAML、OpenMetadata 或 Context Plane 图格式。在开发模式下,Save 会把 JSON 写入 data/ 目录,便于 Claude Code 等工具直接读取。
仓库自述为 ALPHA 初始桩版本,作者发布它是为了与少数人协作确定该应用应有的外观与行为,因此功能与数据结构可能仍会变动。应用被明确设计为在本机运行,没有用户认证,任何能访问该服务的人都能读取和覆盖数据,不应部署到公网或公开服务器。在线演示完全在浏览器中运行,数据保存在 localStorage,并附带三个以 Stripe Customers、Subscriptions、Invoices 为例的契约,通过外键互相引用。
适合你的项目吗?
适用场景
- 为某个数据集编写生产方与消费方之间的显式数据契约
- 用列级分类与信任规则记录 PII、可空性、主键等模式约束
- 为数据管道声明刷新频率、延迟、可用性与保留期等服务级承诺
- 导出 ODCS 或 OpenMetadata 格式,与外部数据目录或治理工具对接
- 用 Stripe 客户、订阅、发票等示例契约演示跨数据集的外键引用关系
适合人群
- 需要为数据资产建立书面契约的数据工程与治理团队
- 希望用机读格式统一模式、质量期望与 SLA 约定的数据平台人员
- 需要把契约导出为 ODCS 或 OpenMetadata 以接入现有目录工具的组织
- 在本地环境中配合 Claude Code 等工具处理契约 JSON 的个人开发者
上手与定制指南
结合仓库当前版本的说明,按下面的资料检查内容、配置与运行要求。
- 1
需要 Node.js v18+ 与 pnpm(可用 npm install -g pnpm 安装)
- 2
在终端运行 ./start-data-contract.sh,应用默认启动于 http://localhost:5119
- 3
Save 写入 data/ 目录仅在开发模式(pnpm dev)下可用,因为需要服务器具备磁盘写入能力
- 4
应用没有用户认证,仅适合在本机运行,不要暴露到互联网或部署到公共服务器
- 5
演示图片、字体、图标等第三方素材需按各自许可单独核对,代码的 MIT 许可不覆盖它们
授权与来源资料
使用条件与限制
免费使用 · 保留许可声明本次收录的是公开仓库中采用 MIT 许可的免费版本;免费范围为该版本代码,不代表外部服务或第三方素材免费。
使用时需要遵守
- 允许免费使用、修改、商用和分发该版本代码。
- 分发代码副本或实质性部分时,保留原作者版权声明和完整 MIT 许可声明。
- 代码按现状提供;担保与责任限制以原许可证及适用法律为准。
额外费用与待核对事项
- 该应用仅设计为在本机本地运行,明确禁止将其暴露到互联网或部署到公共服务器上使用。
- 应用没有用户认证机制,任何能访问该服务的人都可以读取并覆盖你的数据,因此不适合多人或联网共享使用。
- Save 写入 data/ 目录的功能仅在开发模式(pnpm dev)下可用,需要服务器具备磁盘写入能力,其他运行方式下不可用。
- 项目自述为 ALPHA 初始桩版本,仅为与少数人协作确定应用形态而发布,功能与数据结构可能变动,不适合生产使用。
- 文档采用 CC BY-SA 4.0 许可,与代码的 MIT 许可不同,使用文档时需遵守其署名与相同方式共享的要求。
- 演示图片、字体、图标及其他第三方素材需按各自许可核对,不能仅凭代码的 MIT 许可判断。
- 域名、托管、数据库、支付或 AI 等外部服务可能另外收费。
查看原文依据
Permission is hereby granted, free of charge
许可证原文
This app is designed to run locally on your own machine. Do not expose it to the internet or deploy it on a public server.
README 原文
There is no user authentication, so anyone who can reach the server can read and overwrite your data.
README 原文
This only works in dev mode (`pnpm dev`) where the server can write to disk.
README 原文
This is the initial stubs version of the app, publishing it so I can collaborate with a few people on what the Data Contract app should actually look and behave like.
README 原文
https://github.com/AgileDataGuides/data-contract/blob/main/LICENSEhttps://github.com/AgileDataGuides/data-contract/blob/main/README.md**Documentation**: CC BY-SA 4.0
README 原文
DeepSeek 根据仓库许可证和 README 整理 ·2026-10-02。结果仅覆盖已读取资料,依赖、图片、字体及后续条款变更以各自原文为准。
项目核对记录与介绍依据
模板资料
- 来源平台
- GitHub
- 资料与维护参考分
- 资料较完整 · 80 / 100
- 技术栈
- Svelte
- 网站类型
- SaaS
这个分数如何计算
本站按许可资料(最高30分)、演示链接(12分)、预览图(10分)、Star数(15分)、记录的维护时间(15分)、描述完整度(8分)、功能记录(5分)和分类资料(5分)计算。它不是代码、安全或性能测试,也不是 Google 评分;有链接不代表已实测可用。
这个项目需要核对什么
- 记录的仓库更新时间
- 2026-09-30
- 截图检查日期
- 2026-10-02
已收录演示链接。请用你的内容与屏幕尺寸检查;有演示不代表表单、认证或支付已经可用。
目录记录的主要技术栈是 Svelte。请通过依赖清单和锁文件核对实际版本与托管要求。这些说明基于收录资料,不代表代码审计或部署实测。
查看具体选型方法 →介绍的制作与核对状态
介绍由 AI 辅助整理目录与仓库资料。仓库作者不等于这篇介绍的审核者。
已完成服务器许可规则与 AI 来源核对;未经过人工编辑审核。
查看当时使用的来源资料
SHA-256: 0dee971dac7336dedee38786014003f85bd7e82050c6a6ff4c8c2fd6db5a19e2
2026-10-02T10:34:23.105Z
来源文件 / 仓库# Data Contract Define data contracts for your data assets — the agreement between the team that produces a dataset and the teams that consume it. Captures schema, quality expectations, freshness commitments, ownership, lineage, and the business glossary terms that anchor the contract in your domain language. An [AgileDataGuides](https://agiledataguides.com/agiledata-templates/) Pattern Template app. ## ALPHA VERSION This is the initial stubs version of the app, publishing it so I can collaborate with a few people on what the Data Contract app should actually look and behave like. ## What It Does A Data Contract is an explicit, machine-readable agreement covering everything a consumer needs to depend on a dataset: | Section | Purpose | |---------|---------| | **Data Asset** | The single dataset the contract governs | | **Schema / Columns** | Every column with its data type, classification (PII / public / confidential), nullability, and primary-key status | | **Trust Rules** | Data-quality expectations the producer commits to enforce — completeness, uniqueness, accuracy, freshness, validity, security | | **Data Sync** | Service-level commitments — refresh frequency, latency, uptime, retention | | **Team** | Producers (owner), stewards, and consumers — with role-tagged contact info | | **Personas** | The roles who depend on this contract (e.g. CRO, CFO, Finance Analyst) | | **Glossary Terms** | Business glossary terms anchored to the contract — keeps language consistent across domains | | **Delivery / Infrastructure** | How the data is delivered — Snowflake, Kafka, REST API, dbt, … | | **Lineage** | PROV-O aligned upstream sources (source systems, ingestion jobs, transformation steps) | | **Status / Domain / Information Product / Tags** | Metadata tying the contract into the wider organisation | ## Try It Online **[Launch the Live Demo](https://agiledataguides.github.io/data-contract)** — no install required. The demo runs entirely in your browser. Your data is saved in localStorage and never leaves your device. The demo includes three example contracts modelling the **Stripe Customers**, **Stripe Subscriptions**, and **Stripe Invoices** APIs — the SaaS revenue funnel from customer master through MRR/ARR to recognised revenue. They thread together via foreign keys so you can see how contracts cross-reference each other in a real dataset stack. ## Install and Run Run `./start-data-contract.sh` from the terminal. The app starts at [http://localhost:5119](http://localhost:5119). **Requires**: [Node.js](https://nodejs.org/) (v18+) and [pnpm](https://pnpm.io/) (`npm install -g pnpm`). ## Features - **Tier 1–3 toolbar** — App switcher, contract metadata + actions, tab navigation - **Click-to-select cards** — click a card to view, click again to inline-edit - **Trust Rules** — categorise rules (Completeness, Uniqueness, Accuracy, Freshness, Validity, Security, Governance), pin to a column, store the rule expression as free text - **Data Sync** — typed properties (`frequency`, `latency`, `uptime`, `retention`) with units - **Lineage** — PROV-O-aligned items with provType (`entity` / `activity` / `agent`) and upstream relationships - **Manage Pattern Types** — per-contract customisation of the lookup catalogues that drive the toolbar chips (Status / Change Detection / History Window). Toggle patterns off, trash them, edit values, export/import per pattern or all - **Multiple export formats** — JSON (native), ODCS YAML (Bitol v3.0.2), OpenMetadata Standards JSON, RTF, Word, PDF - **Import** — auto-detects native JSON, ODCS YAML, OpenMetadata, or Context Plane graph format - **Multiple contracts** — create, switch between, and delete contracts - **Auto-save** — changes persist to browser localStorage automatically - **Save to disk** — writes JSON to `data/` for direct access by Claude or other tools ## Works With Claude Export your contract as JSON / ODCS / OpenMetadata and use it with [Claude Code](https://claude.ai/claude-code) or [Claude Chat](https://claude.ai): - *"What columns in this contract are missing trust rules?"* - *"Generate a dbt source.yml from this contract's columns."* - *"Are any of my contracts missing a freshness trust rule?"* - *"Suggest additional trust rules based on the column data types."* - *"Convert this Stripe contract to an OpenMetadata table definition."* ## Languages The Data Contract app speaks multiple data contract dialects via its Language Framework: - **Bitol / ODCS v3.0.2** — Open Data Contract Standard (YAML) - **OpenMetadata Standards** — OMS table + quality + SLA definitions (JSON) - **Context Plane** — native graph format for round-tripping with the wider Context Plane app Languages are pure translation modules — your contract data stays in the AgileData-native model on disk; export/import re-emits it in the chosen dialect on demand. ## Data Storage **Save** writes contract files to the `data/` folder as JSON. This only works in dev mode (`pnpm dev`) where the server can write to disk. Claude Code can then read these files directly. **Export** downloads files to your browser's downloads folder for sharing or backup. **Auto-save** persists the current state to browser localStorage automatically. ## Security This app is designed to run locally on your own machine. Do not expose it to the internet or deploy it on a public server. The Save feature writes files directly to your filesystem. There is no user authentication, so anyone who can reach the server can read and overwrite your data. If you need to share your work, use the **Export** buttons to download files and share them manually. ## Tech Stack - [SvelteKit 5](https://svelte.dev/) with Svelte 5 runes - [Tailwind CSS 4](https://tailwindcss.com/) - TypeScript - pnpm ## Licensing - **Code**: [MIT](../LICENSE) - **Documentation**: CC BY-SA 4.0
看看同类模板
对比同技术栈与用途的模板,找到更适合的视觉与内容结构。

CMSaasStarter
A modern SaaS template/boilerplate built with SvelteKit, Tailwind, and Supabase. Includes marketing page, blog…
Svelte · 后台

modernstack-saas
A modern SaaS template/boilerplate built with SvelteKit, Convex, Better Auth, and shadcn-svelte. Includes subs…
Svelte · 后台

alchemist-template
Production SaaS template engineered for AI agents to extend. Deno + Hono + Svelte 5 + Postgres, with a CLAUDE.…
Svelte · SaaS

sveltekit-saas-starter
Paradox Innovations - The Signal Lynx SaaS Template; Built with SvelteKit, Supabase & Key Commander
Svelte · SaaS

tstack
tstack 是一个面向 SvelteKit 的 SaaS 启动模板,它的核心卖点是“把 SaaS 的琐碎部分提前做好”。
Svelte · SaaS

react-starter-kit
Modern React starter kit with Bun, TypeScript, Tailwind CSS, tRPC, Stripe, and Cloudflare Workers. Production-…
Vite · SaaS
