@jadpo/jadpo

中文文档
0.2.0发布于 2026/11/01Apache-2.0构建来源已验证

The jadpo command

原始使用文档
文档目录5 节
  1. What the compiler catches
  2. Learn more
  3. Status
  4. Build from source
  5. Contribute, report, licence

Jadpo

OpenSSF Best Practices OpenSSF Baseline

Jadpo is an experimental programming language for web backends that a coding agent writes and a person reviews. Data, HTTP routes, sign-in, permissions, outside services and background work are declared in the language, so the compiler can check them together and answer the review questions: what can this app do, who can do it, and what can it reach?

What the compiler catches

You ask your agent to show partners their details, and it sends back their API key too. In Jadpo that doesn't compile:

type PartnerName = Text {
    max_length: 100
}

/// What the partners page shows of a partner.
type PartnerProfile = Output {
    name: PartnerName
    partner_key: ApiKey
}
error: `PartnerProfile.partner_key` holds an `ApiKey`
 --> main.jadpo:8:18
  |
8 |     partner_key: ApiKey
  |                  ^^^^^^ sent to a client
  reason: An `ApiKey` is a secret value: it is never sent, logged, stored or shown. A response is written out, logged by proxies and kept by browsers, and a client never needs a secret back.
  next: Remove `partner_key`, and send what the client needs instead, such as whether one is set (agent)
  rule: type.secret_exposed
  help: https://jadpo.dev/docs/errors/type.secret_exposed

check failed: 1 error, 1 file

This is the compiler's real output, checked on every change. It names the fix and who should make it: (agent) means your coding agent can fix it itself. A leaking field, a route that skips sign-in, a record fetched without checking who may see it: each is a compile error like this one.

Learn more

Status

Experimental. All 21 areas of the language are specified. The compiler runs programs in an interpreter and builds native and WebAssembly deployables, but not everything specified is built yet. Production readiness and performance against established stacks are not established. The roadmap is the list of what remains, and jadpo.dev/status shows what is built today.

Build from source

You need Git and Rust through rustup; the repository pins the toolchain.

git clone https://github.com/jadpo-dev/jadpo.git && cd jadpo
cargo build --release --locked -p jadpo-cli
target/release/jadpo test examples/01-first-project

The 28 teaching projects go from a first function to databases, authentication, integrations and AI.

Contribute, report, licence

Code is Apache 2.0; documentation is CC BY 4.0. See TRADEMARKS.md for use of the Jadpo name.

版本与发布记录

@jadpo/jadpo 共发布 4 个版本,首次发布于 2026/10/30;过去 12 个月发布了 4 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.2.0latest2026/11/012 天前
0.1.02026/10/303 天前
0.0.02026/10/304 天前
0.0.0-stage2026/10/304 天前

关于 @jadpo/jadpo 的常见问题

@jadpo/jadpo 是什么?

jadpo命令

如何安装 @jadpo/jadpo?

在项目目录运行 npm install @jadpo/jadpo,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 jadpo,可以用 npx jadpo 直接运行。

@jadpo/jadpo 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/jadpo__jadpo 是否存在。

@jadpo/jadpo 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=14.14。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@jadpo/jadpo 可以商用吗?

@jadpo/jadpo 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@jadpo/jadpo 还在维护吗?

最新版本 0.2.0 发布于 2026/11/01(2 天前);至今共发布 4 个版本,其中过去 12 个月发布了 4 个;首次发布于 2026/10/30。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。