Target release: @codedeb/render-diff@0.1.0 passed isolated ESM installation and TypeScript consumer checks; public npm availability has not yet been independently verified.
Server versus hydrated HTML technical comparisons — 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
npm ci
npm run test:nepal-sdks
npm run sdk:pack:verify
node scripts/sdk/stage-npm-package.mjs sdk-render-diff
These commands prepare the candidate without publishing it. Review the generated .sdk-artifacts/npm-stage/sdk-render-diff contents and all licenses. After a successful, independently verified npm release, the installation command will be npm install @codedeb/render-diff. Do not advertise this command as publicly working before release verification.
Quickstart using implemented exports
import {compareRenderedPages} from '@codedeb/render-diff';
const result=compareRenderedPages({url:'https://example.com',html:'<title>SSR</title>'},{url:'https://example.com',html:'<title>CSR</title>'});
console.log(result.issues);
Public API contract
| Entry point or function | Responsibility |
|---|---|
extractRenderSignals(snapshot) | Inspect title, meta robots, canonical, H1, JSON-LD and visible text |
compareRenderedPages(server,rendered) | Identify content or metadata that changes after client-side rendering |
compareWithBrowser({raw,rendered,url}) | Use authorized caller-owned raw and browser HTML capture adapters |
Production integration
This is an HTML signal diff, not pixel screenshot comparison. A real Playwright or browser capture adapter must enforce safe navigation and site scope. Browser-rendered content can vary by locale/auth/session and should be compared under matched conditions.
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
Implementation workflow
- Capture original server HTML and post-hydration DOM for the same URL.
- Compare titles, canonicals, headings, schema and visible content.
- Classify intentional client-only changes separately from accidental lost SSR content.
- Run browsers and fetch adapters only in authorized isolated execution environments.
Registry verification and installation
npm view @codedeb/render-diff@0.1.0 version
# Install when the target release is listed and its tarball is retrievable:
npm install @codedeb/render-diff@0.1.0
A valid local package is not automatically a live npm release. A verified publication must expose version metadata, a current dist-tag and a public tarball. Keep installation versions pinned and check the included distribution license.
Production acceptance criteria
- Verify normal, corrupted, missing and boundary inputs with the actual package exports.
- Keep any secrets, authorization and persistent state in application-owned server adapters.
- Record explicit classifications, retry outcomes or regression evidence without turning unknown into verified.
- Audit access limits, failure handling and operational monitoring independently of the SDK.
Troubleshooting
Registry 404: Confirm the intended version on npm, and do not assume publication from local test output. Unexpected classification or diff: Review the original evidence fields and source data. External processing problem: Inspect your event store, browser runner, authenticated client or queue; the SDK is a library, not a hosted processing service.
Related SDKs
seo audit · launch guard · Developer SDKs · Technical resources