Loading repository data…
Loading repository data…
webfry / repository
Official SDK for Webfry API. Secure hashing, encoding, analysis tools and developer utilities in a simple, lightweight interface.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Official JavaScript/TypeScript SDK for the WebFry API.
npm install webfry-sdk
import { WebfryClient } from "webfry-sdk";
const client = new WebfryClient({
baseUrl: "https://webfry.dev",
apiKey: process.env.WEBFRY_API_KEY,
});
const info = await client.userInfo();
console.log(info.plan, info.api_usage);
Most endpoints require X-API-Key.
const client = new WebfryClient({ baseUrl: "https://webfry.dev" });
const { api_key } = await client.getApiKey({ email, password });
client.setApiKey(api_key);
UI naming:
Internal API plan values in responses:
starter -> Starterpro -> ProStarter limit is currently 100 requests/month.
SDK throws WebfryApiError for non-2xx responses.
import { WebfryClient, WebfryApiError } from "webfry-sdk";
try {
await client.passwordCheck({ password: "test" });
} catch (err) {
if (err instanceof WebfryApiError) {
console.error(err.status, err.message, err.payload);
}
}
new WebfryClient({
baseUrl: "https://webfry.dev", // default
apiKey: "wf_...", // optional
timeoutMs: 15000, // default 15s
fetchImpl: fetch // optional custom fetch
});
getApiKey({ email, password })rotateApiKey()userInfo()setApiKey(apiKey)clearApiKey()passwordCheck({ password })commonPassword({ password })entropy({ password })hashLookup({ hashes })hashLookupSite({ hashes })hashGenerator({ algorithm, plaintext })hashIdentifier({ hash })base64({ text, option: "encode" | "decode" })generateRandomKey()jwtDecoder({ token })secureEncrypt({ text, password })secureDecrypt({ text, password })jsonFormat({ text })jsonMinify({ text })suggestion({ message, email? })ipInfo({ ip_string })dataBreach({ ip_string })These endpoints currently depend on backend release gating and may return construction messages.
examples/get-key.mjsexamples/node-basic.mjsnpm install
npm run build