Helper packages
Complete export inventory for formatting, filters, SEO, MCP, sitemap, paths, server, and skill subpaths.
A
JThe SDK publishes framework-neutral helper entry points. This page lists every public value and type on each helper subpath in version 1.34.0. Use your installed TypeScript declarations as the final authority after an upgrade.
Core helper exports
The root @cavuno/board entry exports the client plus cross-namespace helpers:
- Errors:
BOARD_API_ERROR_CODES,BoardApiError,isBoardApiError,isBoardPasswordRequired,isConflict,isForbidden,isNotFound,isRateLimited,isSignInMethodUnavailable,isSsoBrowserMismatch,isUnauthorized,isValidationError, and typesBoardApiErrorCode,AvailableSignInMethods,BuiltInSignInMethod. - Sign-in completion:
parseOAuthCompletion,ssoLinkProofBindingStore,SIGN_IN_REDIRECT_ERROR_CODES,SSO_LINK_PROOF_BINDING_TTL_MS, and typesOAuthCompletion,SignInRedirectErrorCode,SignInRole,SsoLinkProofBindingStore,BindingStorage. - Storage keys:
ACCESS_TOKEN_KEY,BOARD_ACCESS_GRANT_KEY,REFRESH_TOKEN_KEY. - Pagination:
paginateand typePaginator. - Version:
SDK_VERSION. - Messaging derivations:
isColdRule,isOwnMessage,lastOwnMessageId. - Apply derivations:
isSafeApplicationUrl,resolveApplyAction, and typeApplyAction. - Job alert digest links:
parseJobAlertClickParams,parseJobAlertUnsubscribeParams, and typesJobAlertClickParams,JobAlertUnsubscribeParams. - Client values and types:
createBoardClient,BoardClient,BoardSdk,CreateBoardClientOptions,BoardRequest,FetchOptions,Logger,Awaitable,CustomStorage, andStorageMode.
Resource request and response types are exported from the root and documented on their namespace pages.
@cavuno/board/format
Board-language display derivations for contract and data-shaping helpers. Label-producing helpers take board.context().language as their leading argument.
Values:
formatDate,formatMonthYear,formatPublishedRelativeDate.formatSalaryRange.resolveCustomFieldDisplay,COUNTRY_CODES,countryOptions.formatSalaryStat,formatSalaryStatRange,normalizeWebsiteUrl,buildJobBreadcrumbs.
Types (checked against the published type surface):
Chrome copy (uiCopy, display-label words, salary lexicon) is application-owned and is not exported from the SDK (ADR-0104). Own it in application messages or code.
@cavuno/board/filters
Values:
- Vocabularies:
REMOTE_OPTIONS,EMPLOYMENT_TYPES,SENIORITIES,JOB_SORTS,DEFAULT_SORT. - Parsing:
parseSeniority,parseListingFilters.
Display labels for seniority and sort options are application-owned (not exported).
Type: ListingFilters.
The parsers accept public URL input and drop unsupported filter values instead of throwing.
@cavuno/board/seo
Values:
- Blog:
createAuthorProfileJsonLd,createBlogArticleJsonLd. - Breadcrumbs:
buildJobBreadcrumbs,createBreadcrumbJsonLd. - Jobs:
ALL_COUNTRY_CODES,createJobPostingJsonLd,normalizeWebsiteUrl. - Listings:
listingHead(caller suppliestitleanddescription),listingJsonLd. - Salaries:
buildSalaryFaq(returns FAQ entry kinds + values; app composes prose; passcurrency),companyCategorySalaryJsonLd,companySalaryJsonLd(ItemList of categories),crossAxisSalaryJsonLd,faqJsonLd,formatSalaryStat,formatSalaryStatRange,itemListJsonLd,locationSalaryJsonLd(ItemList of top categories),SENIORITY_ORDER,skillSalaryJsonLd,sortBySeniority,titleSalaryJsonLd. PassseniorityName({ seniority, entity })for finished per-seniority distribution names (app owns word order);locationSalaryJsonLd/companySalaryJsonLdrequireoccupationUrl.
Types: ArticleJsonLdPost, BreadcrumbItemInput, JobBreadcrumb, JsonLdBoard, JsonLdObject, ListingHeadOptions, FaqItem, SalaryFaqEntry, SalaryJsonLdOptions, SalaryOccupationListOptions.
These helpers return plain objects or head descriptors. Your framework owns the final <meta>, <link>, and safely serialized <script type="application/ld+json"> elements.
@cavuno/board/seo-files
Byte-identical crawler and identity files for hosted boards, the dispatch Worker, and self-deployed frontends. This entry is isomorphic and has no runtime imports.
Values:
- Cache and content-type constants:
SEO_FILE_CONTENT_TYPE,ROBOTS_CACHE_CONTROL,ADS_TXT_CACHE_CONTROL,INDEXNOW_CACHE_CONTROL. - Bodies:
robotsBody,robotsResponse,adsTxtResponse,indexNowResponse. - Head descriptor:
googleSiteVerificationMeta.
robotsBody is the hosted robots.txt literal (including the Sitemap: line). Its User-Agent: * group declares Content-Signal: search=yes, ai-input=yes, ai-train=yes (Content Signals), so search engines and AI agents may index, cite and learn from the board. Pass sandbox: true to emit the no-crawl sandbox body. Pass listingPaths: { jobs, companies, talent } when your board uses its own URL words (for example /vacatures in place of /jobs); the pagination Disallow rules then use those roots, and any missing or unsafe value keeps the default root. If your board serves other languages under a language prefix, also pass localeListingPaths, a list with one { jobs, companies, talent } entry per language (for example { jobs: '/fr/emplois' }); each safe root adds the same pagination rules after the base-language ones, and a missing, unsafe or repeated root adds nothing. Null or empty adsTxt / indexNowKey return HTTP 404. Pass { method: 'HEAD' } for the same status and headers with an empty body.
@cavuno/board/mcp
Serves the board's public MCP server at /mcp on a self-deployed frontend, so AI assistants such as Claude, ChatGPT and Cursor can search the board's jobs, companies and salaries, and, with consentPath, let people sign in to their own account on the board. This entry is isomorphic and has no runtime imports.
Values: createMcpHandler, MCP_SITE_HEADER.
Types: CreateMcpHandlerConfig.
createMcpHandler({ board, baseUrl?, consentPath?, siteOrigin? }) returns one (request: Request) => Promise<Response> handler. Mount it at /mcp, /mcp/*, /.well-known/ard.json and /.well-known/ai-catalog.json for GET, HEAD and POST. board is the board's publishable key, so job and company links in tool results point at your frontend. POST /mcp forwards to POST /v1/boards/{board}/mcp; GET /mcp/docs forwards to the setup page at GET /v1/boards/{board}/mcp/docs; GET /mcp/server-card forwards to the MCP Server Card at GET /v1/boards/{board}/mcp/server-card; GET /.well-known/ard.json and GET /.well-known/ai-catalog.json forward to the ARD manifest at GET /v1/boards/{board}/mcp/ai-catalog, which lists that card so assistants can discover the server from your domain. A browser opening /mcp is redirected to /mcp/docs, other methods answer 405, and a body over 64 KB answers 413. Only the MCP transport headers are forwarded. Cookies are never forwarded; Authorization only with consentPath.
Sign-in from assistants
consentPath is the path of your consent page on your own site, such as /authorize or a translated path, without a query. Setting it turns on sign-in (OAuth 2.1) on your own domain, and needs board to be the board's publishable key: createMcpHandler throws a TypeError otherwise, and for a consentPath that could lead off your site:
- Every forward sends
x-cavuno-mcp-site(MCP_SITE_HEADER) with your site's origin, andPOST /mcpalso forwardsAuthorization. Cavuno signs people in only when that origin is the board's self-hosted frontend domain or one of its development origins, both set in Settings → SDK. A request that needs sign-in answers 401 with aWWW-Authenticatechallenge, passed through unchanged. - Also mount the handler at
/.well-known/oauth-protected-resource,/.well-known/oauth-protected-resource/mcp,/.well-known/oauth-authorization-server,/.well-known/poppy.jsonand/oauth/*, forGET,HEAD,POSTandOPTIONS./.well-known/poppy.jsonis the Personal Agent Protocol discovery document; it stays at the domain root under abasePath. The discovery documents forward toGET /v1/boards/{board}/mcp/oauth/.well-known/…, andPOST /oauth/register,/oauth/tokenand/oauth/revokeforward toPOST /v1/boards/{board}/mcp/oauth/{register,token,revoke}with their body (up to 64 KB) and theirContent-Type,Accept,User-AgentandAuthorizationheaders.OPTIONSon these paths answers the browser preflight itself. GET /oauth/authorizeredirects toconsentPathwith the query unchanged, without calling Cavuno.- A site served under a
basePathsuch as/jobboardmounts the handler at/jobboard/mcpand/jobboard/oauth/*. The two discovery documents stay at the domain root, with the path after their name:/.well-known/oauth-protected-resource/jobboard/mcpand/.well-known/oauth-authorization-server/jobboard. When your framework serves only below the base path, route those two from the server at the root. DeclarebasePath: '/jobboard'in the route manifest your site publishes at/.well-known/cavuno.json, which is where Cavuno reads the folder from, and include the base inconsentPath, such as/jobboard/authorize. siteOriginnames your site when the request URL the handler sees is another origin, such as behind a proxy that rewrites the host or scheme. It defaults to the request URL's origin, which also serves localhost and preview deployments registered as development origins.
The consent page's server code passes the page's query string unchanged to board.mcpConsent.get, with the visitor's session access token when they are signed in, and sends Allow or Cancel with board.mcpConsent.submit. Both calls send MCP_SITE_HEADER with the same origin the handler sends: siteOrigin when you set it, otherwise the request URL's origin. That origin is the sign-in's issuer, so a different one fails the sign-in.
@cavuno/board/sitemap
Values:
- Bucket model:
SITEMAP_BUCKETS,SITEMAP_CHUNK_SIZE,MIN_JOBS_PER_INDEXED_PAGE. - Filenames and chunks:
bucketFilename,parseBucketFilename,chunk. - XML:
xmlEscape,renderUrlset,renderSitemapIndex. - Board walking:
listedBuckets,buildBucketUrls, and thelastModified-preservinglistedBucketEntries,buildBucketEntries.
Types: SitemapBucket, SitemapUrlEntry, SitemapIndexEntry, ListedSitemapBucket.
The walkers (buildBucketUrls, buildBucketEntries, listedBuckets, listedBucketEntries) perform API reads. The filename, chunk, escape, and render helpers are pure.
@cavuno/board/paths
Values:
- Jobs:
jobDetailPath,jobsCategoryPath,jobsSkillPath,jobsLocationPath,jobsLocationCategoryPath,jobsLocationSkillPath. - Companies:
companyPath,companyMarketPath,companySalaryPath. - Salaries:
salaryTitlePath,salarySkillPath,salaryLocationPath. - Blog:
blogPostPath,blogTagPath,blogAuthorPath. - Talent:
talentProfilePath,talentLocationPath. - Suggestions:
suggestionPath(scope-aware resolver; returnsnullwhen the selection is a filter, not a navigation). - Shared:
BOARD_PATHS,boardUrl. - Job landing pages:
resolveJobLandingPage(resolve a place job landing page through a board'sJobLandingConsolidationMapto the page whose results it duplicates; typesJobLandingConsolidationMap,JobLandingPageInput,ResolvedJobLandingPage).
Every path helper returns a leading-slash path. boardUrl adds an origin and removes trailing slashes from that origin.
@cavuno/board/server
Node-runtime-independent server plumbing that accepts and returns strings rather than framework request objects.
Values:
- Session cookies:
SESSION_COOKIE_NAME,sessionCookieName,clearSessionCookie,isExpiringSoon,parseSessionCookie,serializeSessionCookie. - Board-access cookies:
BOARD_ACCESS_COOKIE_NAME,grantCookieName,clearGrantCookie,parseGrantCookie,serializeGrantCookie. - Redirect safety:
currentPathFromReferer,safeRedirectPath. - Refresh coordination:
createSessionRefresher.
Type: BoardSession.
Cookie serializers apply the package’s __Host-, Secure, httpOnly, path, and SameSite contract. createSessionRefresher requires a nostore client and coordinates one in-flight refresh; it does not install automatic retry behavior.
@cavuno/board/skills
This entry is Node-only because it reads the installed package from the filesystem.
Values: resolveFromPackageRoot, loadSkillManifest, loadSkillCorpus.
Types: LoadedSkill, SkillCorpus, SkillManifest, SkillManifestEntry.
resolveFromPackageRoot(relativePath, baseDir?) works from the installed layout. Bundled consumers that relocate the module must pass baseDir.
@cavuno/board/skills/types
Types only: SkillManifest and SkillManifestEntry. Use this subpath in non-Node consumers that need the manifest shape without importing filesystem code.
The package also exports @cavuno/board/skills/* for direct access to shipped skill artifacts named by the manifest.
Verify an import
Run your application typecheck after changing package versions. A missing symbol should fail at the import rather than being replaced with a locally reimplemented fallback.