Lambë
概览
作者提供的说明(英文原文)
Shape-aware query language for structured data — JSON, YAML, TOML, HCL, CSV, Markdown.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i2 项中通过 2 项依据公开信息检查;尚未扫描代码
- 使用情况i非常新★ 1
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio
- 分类: 开发者工具
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:2 项中通过 2 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 注册中心没有列出需要填写的密钥。
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
链接指向作者自己的文件;我们不托管也不重新打包它。打开文件后,Claude Desktop 会进行安装。
在终端中运行这条命令
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
哪些应用可以使用它
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月11日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 hakimjonas 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于2个月前
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
用户评价
还没有评价
与“开发者工具”中的其他服务器比较i
- 星标数多于此分类中其他 5741 个服务器的 65%
- 发布到注册中心的时间比此分类中其他 5741 个服务器的 35% 更新
- 基础检查结果等于或优于此分类中其他 5741 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Lambë 安全吗?
它在 2 项适用的基础检查中通过了 2 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于2个月前,最新版本(0.14.0)于2个月前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 MCPB。
有什么可以替代它?
同一分类中有:REA, Netdata, Front-End Checklist
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Netdata
Real-time infrastructure monitoring with metrics, logs, alerts, and ML-based anomaly detection.
Front-End Checklist
Review frontend code and live pages against 386 quality-gated web development rules.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Lambë
*A query language for structured data that shows you what you're working with.*
lam queries JSON, YAML, TOML, HCL, CSV, TSV, and Markdown. Unlike other query tools, it tells you what your query *does* before you run it — the shape at each pipe stage, which output formats can serialize the result, what would go wrong.
Use it when you don't already know the data: inspecting an unfamiliar API response, auditing a Helm chart, verifying a CI pipeline's assumptions, or asking an AI agent to extract something without guessing at the structure.
$ lam --to toml '.dependencies | keys' pubspec.yaml
Error: TOML output requires a map at the root, got list . Try appending one of: | as(toml) # Wraps the list under a single-entry map (equivalent to {items: .}).
$ lam --to toml '.dependencies | keys | as(toml)' pubspec.yaml items = ["rumil", "rumil_parsers", "rumil_expressions"]
Queries are bounded and always terminate. No recursion, no lambdas, no def. That's the tradeoff: Lambë doesn't try to be a programming language, so its shape inference, --explain, --schema, and error remediations all work.
*Lambë (pronounced "lam-beh") means "language" in Quenya (Tolkien's elvish). The package name is lambe for ASCII compatibility.*
Installation
One-line installer (Linux and macOS, no sudo, verifies SHA256 checksums):
curl -fsSL https://raw.githubusercontent.com/hakimjonas/lambe/main/install.sh | sh
This downloads lam and lam-mcp from the latest GitHub release into ~/.local/bin/. Environment variables LAMBE_VERSION (pin a version) and LAMBE_PREFIX (change install dir) are supported; see the script for details.
Other options:
# From pub.dev (Dart users)
dart pub global activate lambe
Dart library
dart pub add lambe
Build from source
git clone https://github.com/hakimjonas/lambe.git && cd lambe dart compile exe bin/lam.dart -o lam
See Getting started for all installation options.
Shape-aware output
Lambë checks the result of your query against the shape the target format can serialize. When they match, output is produced. When they don't, the error names the required shape and lists query fragments that would bridge it. In an interactive terminal, Lambë offers to apply the chosen fragment and retry in place.
$ lam --to toml '.name' pubspec.yaml
TOML output requires a map at the root, got string. Try appending one of: | as(toml) # Wraps the scalar under a single-entry map (equivalent to {value: .}).
Apply a bridge? [1] | as(toml) # Wraps the scalar under a single-entry map (equivalent to {value: .}). [q] cancel
1
value = "rumil"
The same flow applies to CSV and TSV (which require a list of records at the root) and HCL (which requires a map).
Suggestions surface the intent-level as( ) form. The explanation names the raw fragment ({value: .}, to_entries, etc.) the bridge composes, so --explain and manual composition stay available to anyone who wants them.
Non-scalar cells in CSV/TSV
By default, nested lists or maps in CSV/TSV cells are rejected — there is no faithful delimited rendering for them. When you need a quick export and lossy is acceptable, pass --flatten-cells json (CLI) or :flatten-cells json (REPL) to encode them as JSON strings inline. Round-tripping the resulting file back into Lambë does not recover the original structure; prefer reshaping the data query-side when fidelity matters.
as(fmt) — bridging in the query language
When the shape of the target format is known up front, as(fmt) performs the bridge inside the query. The combinator is a no-op when the input already satisfies the target, applies a single curated bridge when one exists, and lists the candidates when more than one could apply.
$ lam --to toml '.dependencies | as(toml)' pubspec.yaml
rumil = "^0.6.0" rumil_parsers = "^0.6.0" rumil_expressions = "^0.6.0"
$ lam --to csv '.dependencies | as(csv)' pubspec.yaml key,value rumil,^0.6.0 rumil_parsers,^0.6.0 rumil_expressions,^0.6.0
as accepts json, yaml, toml, csv, tsv, and hcl.
--explain — see the shape at every pipe stage
--explain walks the pipe backbone of a query and reports the shape at each stage, followed by the set of output formats the final shape can be serialized as. It performs static analysis only and does not evaluate the query; pass a data file to seed with real shape information, or omit it to trace against an unknown input.
$ lam --explain '.dependencies | keys' pubspec.yaml
.dependencies : map | keys : list
Writable as: json, yaml, csv, tsv Not writable as: toml, hcl
Explain flags provably-empty filters (filter(.missing) on a known shape) and runtime-rejection mismatches (filter on a non-list input) by default. Pass --explain-trivial to also flag sort_by/group_by/map/unique_by whose argument references a missing field (often a typo, sometimes intentional). For agent tooling and build pipelines, --explain-json emits the same information as a structured JSON document.
--schema — declare a shape and let Lambë check your work
When you have a JSON Schema for your data — from an API contract, OpenAPI spec, or hand-written docs — point --schema at it:
$ lam --schema api.schema.json --explain '.users | map(.email)' response.json
.users : list >> | map(.email) : list >
Writable as: json, yaml, csv, tsv Not writable as: toml, hcl
The schema fills in information data alone can't express: optional fields (from JSON Schema's required), element shapes of empty lists, types shapeOf couldn't infer from sampling. --explain shows them; the evaluator trusts them.
With data present, Lambë also validates: a schema saying age: number against data with age: "30" exits 1 at load time with a JSON-path-annotated diagnostic. No silent drift, no running a query against data that doesn't match its contract.
A sibling .schema.json is auto-detected, so a project convention of placing schemas next to data works without explicit flags.
The reverse direction is symmetrical: lam --print-shape data.json emits the inferred shape as a JSON Schema document. Round-trip:
lam --print-shape data.json > data.schema.json # bootstrap a schema from data
lam --schema data.schema.json '.users' data.json # use it back
Accepted JSON Schema keywords: type, properties, items, required. Value-level constraints (minimum, pattern, enum, etc.), structural combinators (allOf, oneOf), $ref, and conditional schemas are rejected with a per-keyword error. Lambë is a shape system, not a validation engine — for richer validation, reach for ajv or check-jsonschema.
Query Syntax
Queries start with . (the current data) and chain operations with |:
. the whole document
.name access a field .users[0] index into a list .users[0].address.city chain access .users | filter(.age > 30) pipe into an operation .users | map(.name) transform each element
Pipelines read left to right. Each | passes its result to the next operation:
.users | filter(.active) | sort_by(.name) | map(.name)
This takes .users, keeps active ones, sorts by name, and extracts names.
Expressions
.price * .qty arithmetic (+, -, *, /, %)
.age > 30 comparison (<, >, <=, >=, ==, !=) .active && .verified logic (&&, ||, !) if .age > 65 then "senior" else "active" conditional {name, total: .price * .qty} construct a new object "\(.name) is \(.age)" string interpolation .[1:3] slice a list or string
Operations
Operations follow | and transform the piped value:
. | filter(.age > 30) keep matching elements
. | map(.name) transform each element . | sort_by(.age) sort by a key . | group_by(.dept) group into [{key, values}] . | length count elements . | first first element . | sum sum numbers . | keys map keys or list indices . | has("field") check if a field exists . | unique remove duplicates . | flatten flatten one level of nesting . | to_entries map to [{key, value}] pairs . | filter_values(. > 5) filter a map's values . | as(toml) bridge to an output format
See the full list in Pipeline Operations below.
CLI
# Extract values
lam '.database.host' config.toml lam '.spec.containers[0].image' deployment.yaml
Filter and transform
lam '.users | filter(.age > 30) | map(.name)' data.json
Aggregate
lam '.items | map(.price) | sum' data.json
Sort and pick
lam '.items | sort_by(.price) | first' data.json
Object construction
lam '.users | map({name, senior: .age > 65})' data.json
String interpolation
lam '.users | map("\(.name) is \(.age)")' data.json
Shape trace
lam --explain '.users | map(.name)' data.json
Shape inspection (JSON Schema output)
lam --print-shape data.json
Schema-checked queries: validate data against a schema as it runs
lam --schema api.schema.json '.users | map(.email)' response.json
CI validation
lam --assert '.version != "0.0.0"' package.json lam --assert '.replicas >= 2' deployment.yaml
Format conversion
lam --to yaml '.config' data.json lam --to csv '.users | map({name, age})' data.json lam --to toml '.config | as(toml)' data.json lam --to csv --flatten-cells json '.users' data.json # encode nested cells as JSON
Line-delimited JSON (logs, event streams)
lam --ndjson '.user.id' events.ndjson tail -f app.log | lam --ndjson '.level'
Query any format (auto-detected from extension)
lam '. | filter(.status != "closed")' issues.csv lam '.resource | map(._labels)' main.tf lam '.children | filter(.type == "heading") | map(.children[0].text)' README.md
Pipe from stdin
curl -s https://api.example.com/users | lam '.results | filter(.active)'
Interactive REPL
lam -i data.json
lambe v0.14.0 - type :help for commands, :q to quit
Data loaded: {3 fields, 42 users}
lambe> .users | filter(.age > 30) | map(.name) ["Bob", "Carol"]
lambe> .users[0] {name: "Alice", age: 25, active: true}
lambe> :schema {users: [{name: "string", age: "number", active: "boolean"}]}
lambe> :to yaml Output format: yaml
When a query produces a result the current output format cannot serialize, the REPL lists the available bridges inline; pressing the number of a suggestion applies it and prints the bridged output. Tab completion works on field names (.us ) and pipeline operations (| fil ). The REPL also supports syntax highlighting, persistent history (~/.lambe_history), Ctrl+R reverse search, and multi-line input with \ continuation.
Library
import 'package:lambe/lambe.dart';
// Query pre-parsed data final name = query('.users[0].name', data);
// Query a JSON string final version = queryJson('.version', '{"version": "1.0.0"}');
// Query any format final host = queryString('.database.host', tomlString, format: Format.toml);
// Parse once, evaluate many times final ast = parseAst('.users | filter(.active) | map(.name)'); final result1 = evaluateAst(ast, dataset1); final result2 = evaluateAst(ast, dataset2);
// Format conversion final yaml = formatOutput(data, OutputFormat.yaml); final csv = formatOutput(users, OutputFormat.csv);
// Shape inference and JSON Schema output final shape = shapeOf(data); // Shape ADT final schemaJson = renderJsonSchema(shape); // JSON Schema text
//