# Code Deb SEO Monitor SDK

**Target release:** `@codedeb/seo-monitor@0.1.0` passed isolated ESM installation and TypeScript checks. Its public npm publication has not been independently verified; check the registry before installation.

SEO change tracking across software releases — intended for developers building reliable storefronts, search infrastructure and production applications. Unlike a hosted platform, the SDK does not require a Code Deb account for its pure functions.

## Build, test and stage

```bash
npm ci
npm run test:nepal-sdks
npm run sdk:pack:verify
node scripts/sdk/stage-npm-package.mjs sdk-seo-monitor
```

These commands prepare the candidate without publishing it. Review the generated `.sdk-artifacts/npm-stage/sdk-seo-monitor` contents and all licenses. After a successful, independently verified npm release, the installation command will be `npm install @codedeb/seo-monitor`. Do not advertise this command as publicly working before release verification.

## Quickstart using implemented exports

```ts
import {compareSeoSnapshots,assertSeoBudget} from '@codedeb/seo-monitor';
const delta=compareSeoSnapshots({release:'old',capturedAt:'2026-10-01',pages:[]},{release:'new',capturedAt:'2026-11-21',pages:[]});
console.log(delta.counts);
```

## Public API contract

| Entry point or function | Responsibility |
| --- | --- |
| `compareSeoSnapshots(before,after)` | Compare status, metadata, canonical, robots, hreflang and sitemap changes |
| `assertSeoBudget(delta,budget)` | Fail release gates when changes exceed severity thresholds |

## Production integration

Source snapshots must come from a consistent crawl scope and have version identities. A removed page can be intentional; review incidents rather than automatically changing canonical or robots rules. This library does not schedule crawls or send alerts.

The published SDK must have bounded resource use, correct authentication boundaries where applicable, and tests for malformed input. Caller-owned storage, OAuth, background jobs or hosted services must be configured explicitly rather than invented by the library.

## Compatibility and release history

- **0.1.0 candidate — 21 November 2026:** First implementation of the documented independent module, subject to the complete release gate.
- JavaScript ESM with generated TypeScript declarations; Node.js 20+ for Node execution.
- No npm publication, hosted API, SLA, vendor certification, ranking guarantee or customer data access is implied by this candidate.
- Code Deb-owned package code is intended for Apache-2.0 distribution. Third-party dependencies, data and trademarks retain their own terms.

## References and related SDKs

- [Developer SDK index](/docs/sdk)
- [Code Deb Developer resources](/docs/resources)
- [Reference standards and vendor documentation](https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls)




## Integration design walkthrough

1. Persist normalized snapshots for matching URLs and deployment versions.
2. Compare canonical, robots and status changes with expected route behavior.
3. Enforce regression budgets in CI and review planned redirects or removals.
4. Verify the live deployment after release; a pre-release snapshot is not the delivered site.

## Release verification and package installation

```bash
npm view @codedeb/seo-monitor@0.1.0 version
# Only after the registry returns this exact version:
npm install @codedeb/seo-monitor@0.1.0
```

Never confuse a passing local package/TypeScript test with accepted npm publication. The npm registry must expose version metadata, the expected `latest` dist-tag and a retrievable tarball before the release is announced as installable. The source repository and customer integrations remain private.

## Production acceptance checklist

- Exercise normal, empty and malformed input using the documented ESM exports.
- Compare results with source HTML or authorized external API evidence, not generated placeholder data.
- Implement explicit failure handling, timeouts and limits in any caller-owned network adapter.
- Record meaningful audit findings and version-specific regressions without claiming search rankings or Google approval.

## Common problems

**Version not found:** Confirm the package's exact version on [npm](https://www.npmjs.com/package/@codedeb/seo-monitor); its release may still be pending. **Unexpected findings:** Compare real captured HTML and HTTP status with your audit inputs. **Third-party integration fails:** Verify your own OAuth, hosting, robots compliance and network policies; the SDK never grants external access.

## Related guides

[seo audit](/docs/sdk/seo-audit) · [search console](/docs/sdk/search-console) · [All developer SDKs](/docs/sdk) · [Engineering resources](/docs/resources)
