@well-known-js/core
v1.0.3
Published
Core utilities and types for generating .well-known files.
Maintainers
Readme
@well-known-js/core
Shared types and configuration helpers for the @well-known-js ecosystem.
Installation
pnpm add @well-known-js/coreUsage
Create a well-known.config.ts file and register one or more providers:
import { defineConfig } from "@well-known-js/core";
import { assetLinks } from "@well-known-js/assetlinks";
export default defineConfig({
providers: [
assetLinks({
statements: [{ include: "https://example.com/.well-known/assetlinks.json" }],
}),
],
});defineConfig() validates that provider routes are unique and preserves full TypeScript inference.
The package also exports the contracts used to create providers and framework adapters:
WellKnownConfigdescribes the shared configuration object;WellKnownProvider<TConfig>describes a reusable provider definition;WellKnownProviderInstancedescribes a configured provider;WellKnownGeneratedFiledescribes the generated path, filename, content type, and body.
Providers
@well-known-js/agent-card@well-known-js/api-catalog@well-known-js/gpc@well-known-js/did-web@well-known-js/did-configuration@well-known-js/mta-sts@well-known-js/sbom@well-known-js/oauth-authorization-server@well-known-js/oauth-protected-resource@well-known-js/apple-app-site-association@well-known-js/assetlinks@well-known-js/security-txt@well-known-js/webauthn@well-known-js/passkey-endpoints@well-known-js/openid-configuration
