federation-client
Use when verifying or listing Solid app registrations, discovering federation registry memberships or storage spec versions, or maintaining federation-client entry points and bundles.
- License 许可
- MIT
- 所属仓库
- jeswr/solid-sdk
- 最近更新
- 2026-11-15
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- federation-client
- description
- Use when verifying or listing Solid app registrations, discovering federation registry memberships or storage spec versions, or maintaining federation-client entry points and bundles.
02 资源文件 45
- 参考文档config/api-extractor.json1.0 KB
- 参考文档config/api-extractor.node.json1.0 KB
- 参考文档etc/federation-client.api.md5.7 KB
- 参考文档etc/federation-client.node.api.md933 B
- 许可证LICENSE1.0 KB
- 参考文档package.json2.5 KB
- 参考文档README.md2.9 KB
- 脚本scripts/build-deps.mjs5.3 KB
- 脚本scripts/build-dist.mjs12.5 KB
- 脚本src/context-loader.ts1.0 KB
- 参考文档src/contexts/federation-context.json2.8 KB
- 参考文档src/contexts/oidc-context.json1.3 KB
- 参考文档src/contexts/README.md1.2 KB
- 脚本src/index.ts2.3 KB
- 脚本src/list.ts4.2 KB
- 脚本src/node.ts8.2 KB
- 脚本src/registry.ts12.2 KB
- 脚本src/selfDescribe.ts3.6 KB
- 脚本src/serialize.ts1.8 KB
- 脚本src/ssrf.ts2.1 KB
- 脚本src/types.ts3.3 KB
- 脚本src/verify.ts12.1 KB
- 脚本src/vocab.ts3.1 KB
- 脚本src/wrappers.ts9.8 KB
- 脚本test/fixtures.ts5.1 KB
- 脚本test/ip-classification.characterization.test.ts7.5 KB
- 脚本test/iri.test.ts7.5 KB
- 脚本test/list.test.ts3.7 KB
- 脚本test/namespaces.test.ts6.3 KB
- 脚本test/node-dist.test.ts4.1 KB
- 脚本test/node.test.ts33.5 KB
- 脚本test/offline-contexts.test.ts7.2 KB
- 脚本test/registry-fixtures.ts3.7 KB
- 脚本test/registry.test.ts10.9 KB
- 脚本test/selfDescribe.characterization.test.ts5.0 KB
- 脚本test/selfDescribe.test.ts5.6 KB
- 脚本test/serialize.test.ts2.0 KB
- 脚本test/ssrf-dns-fallback.test.ts5.5 KB
- 脚本test/ssrf-no-regression.adversarial.test.ts6.8 KB
- 脚本test/ssrf.test.ts47.4 KB
- 脚本test/verify.test.ts8.9 KB
- 脚本test/vocab.test.ts1.1 KB
- 参考文档tsconfig.build.json222 B
- 参考文档tsconfig.json596 B
- 脚本vitest.config.ts438 B
03 SKILL.md 正文
<!-- AUTHORED-BY Codex GPT-6.1-Sol -->
Federation client
The root @jeswr/federation-client entry provides verify, verifyDataset, list,
selfDescribe, serialize, discoverFromRegistry, and resolveStorageSpecVersion.
App registration is self-description; registry membership is a separate assertion.
For attacker-controlled URLs, pass a guarded fetch to verify and list. Import
createGuardedFetch, guardedFetch, isLoopbackAddress, isPublicAddress,
classifyIpLiteral, and refuseRedirects from @jeswr/guarded-fetch. These six helpers
are no longer exported from federation-client's root (breaking change).
The root retains SsrfError, RedirectRefusedError, and the DnsLookup, GuardOptions,
and ResolvedAddress types for callers of its own functions. The separate
@jeswr/federation-client/node entry provides createNodeGuardedFetch, nodeGuardedFetch,
createPinningDispatcher, and createValidatingLookup, with types from
@jeswr/guarded-fetch/node. Prefer the Node guarded fetch for server-side DNS pinning;
the bare dispatcher rejects an explicit timeoutMs.
The build bundles both entries together and shares guarded-fetch in a private chunk to
preserve error-class identity. Keep every emitted chunk in dist/; mirrors ship that
directory, while this workspace never commits it. Node helpers must import guarded-fetch
directly and must not depend on helper exports from federation-client's public root.
Keep undici and static Node imports out of the browser-safe root's module graph.
After building, regenerate both API reports with
pnpm --filter @jeswr/federation-client run api:report. The built-artifact regression in
test/node-dist.test.ts checks native ESM loading, removed root exports, and guarded calls
with injected DNS and refused targets, without production network requests.
Follow the workspace RDF discipline: parse with @jeswr/fetch-rdf, access data through
@solid/object / @rdfjs/wrapper typed accessors, and serialize with n3.Writer or
@jeswr/rdf-serialize. Never hand-build triples in code, tests, or examples.
04 同仓库更多 Skills
storage-conformance
Work on @jeswr/storage-conformance, the shared storage conformance suite package in the Solid SDK workspace.
fetch-rdf-engine-tests
Maintain fetch-rdf's real Node WASM parser integration tests without introducing a reverse engine dependency in fetch-rdf.
alpha
Use when checking fixtures, including folded YAML descriptions.
widget
Use when testing package skills: YAML quoting works.
web-seo
Use when improving technical and entity SEO for a modern personal, portfolio, documentation, or marketing site, including crawlable HTML, canonical metadata, sitemap and robots, Person/ProfilePage JSON-LD, Core Web Vitals, and honest ranking expectations.
solid-wac
Use when implementing or auditing Solid server WAC authorization, ACL creation and inheritance, auxiliary-resource escalation, method-to-mode mapping, 401 versus 403 challenges, WAC-Allow, or defensive typed ACL parsing with @solid/object and @rdfjs/wrapper.