TypeScript Fetch client for the OriginStamp timestamping service (v3.0.0). Provides an ESM-only, typed API using native fetch, targeting modern Node.js and browser environments. Official client maintained by OriginStamp. Replaces older axios-based clients with a fetch-based implementation for better performance and compatibility. Supports creating and verifying timestamps via the OriginStamp API (apidev.originstamp.com). Ships TypeScript types. Release cadence is low; this version is a major rewrite.
npm install originstamp-client-fetchNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a timestamp using the SHA-256 hash of 'example' via the OriginStamp API.
Use import syntax and ensure Node.js >=18 or install node-fetch and use a dynamic import or ESM wrapper.
Update API call patterns and types as per v3 docs. The method signature changed: createTimestamp now takes an object with a timestampRequest property.
Upgrade to v3 and update imports/configuration.
Use environment variables or a secure backend to supply the API key.
Ensure the package is installed: npm install originstamp-client-fetch@3.0.0 --save. For Node.js projects, set 'moduleResolution' to 'node' or 'node16' in tsconfig.json.
Install node-fetch and add a global polyfill, or upgrade to Node.js 18+. If using node-fetch, import it and set globally (e.g., globalThis.fetch = fetch).
Use import { Configuration } from 'originstamp-client-fetch' or use dynamic import().