trendscope
search 19y of HN中文 subscribe github

dev tools

Subnet calculator · number base · number base · password gen · CSV↔JSON — 20 tools, all client-side.

JSON query — jq-lite

Path syntax: .a.b[0], .items[] (all elements), .* (all values). One result per line, JSON-encoded.

IPv4 subnet calculator

CIDR or IP/prefix, e.g. 10.0.0.17/24 or 192.168.1.0/26.

Number base converter

Type in any field; the others update. Unsigned integers.

Password generator

crypto.getRandomValues — never leaves the browser.

CSV ↔ JSON

Auto-detects direction: paste CSV → JSON array of objects; paste a JSON array → CSV. Handles quoted fields with commas/newlines.

JSON → JSON Schema

Paste a JSON sample — infers a draft-2020-12 schema (types, required keys, array item schemas, enums for small string sets).

.gitignore generator

Pick the languages/OS/IDEs in your stack — combined template outputs below.

Semver compare

Two versions in — correct pre-release ordering (1.0.0-alpha < 1.0.0), build metadata ignored per spec.

curl → fetch / requests

Paste a curl command (with or without curl prefix). Emits JS fetch() and Python requests equivalents. Supports -X/-H/-d/--data*/-u/-A/-G/-F/--compressed.

Hidden character inspector

Paste text that came from somewhere else — finds zero-width chars, bidi controls, non-breaking/exotic spaces, soft hyphens and lookalike non-ASCII letters (common in copy-paste attacks and broken diffs).

Keyboard key inspector

Click the box, then press any key — shows event.key, code, which and modifiers. Recent keys below.

press a key…

JSON diff

Paste two JSON values — path-level diff (added / removed / changed). Objects compared recursively; arrays by index.

.env file auditor

Paste a .env — flags keys that look like real secrets, duplicates and placeholders. Nothing leaves the page.

HTML entity encoder / decoder

Encode text for safe embedding (& < > " ' → entities) or decode entities back. Catches the double-encoding bug class too.

conventional-commit checker

Validate a commit message against the Conventional Commits spec — type(scope)!: description, with hints when it fails.

file → data URI

Drop or pick a file — get a base64 data URI you can inline in CSS/HTML/markdown. Files up to ~2 MB work smoothly.

LLM API cost estimator

Estimate monthly spend per model from your usage shape. Prices are approximate public list prices (per 1M tokens, USD) — verify on provider pricing pages before budgeting.

Estimate tokens: paste a sample prompt → ~0 tokens

JSON → TypeScript interface

Paste a JSON sample — generates a typed interface tree (unions for mixed arrays, optional keys when siblings omit them, PascalCase names).

CSV profiler

Paste CSV/TSV — per-column profile: type guess, fill rate, unique count, top values, min/max/mean for numerics.

MCP server config validator

Paste an mcp.json / claude_desktop_config.json — validates each server entry: stdio needs command, remote needs url, flags inline secrets and unpinned packages.

SQL formatter

Paste SQL — keywords uppercased, major clauses break to new lines, indent for subqueries and JOIN chains.

Base64 / data URI → file

Paste base64 or a full data:…;base64, URI — reconstructs the file locally and downloads it. Nothing leaves the browser.

ASCII table

All 128 ASCII codes — searchable by char, code, hex or name.

JSON → Go struct

Paste a JSON sample — generates Go struct definitions with json: tags (nested structs, slices, optional→pointer-free by default).

JWT signer (HS256)

Signs a JWT with HMAC-SHA256 in your browser via WebCrypto — the secret never leaves this page. Pairs with the JWT decoder.

JSON → SQL

Paste a JSON array of objects — infers a CREATE TABLE (portable types) plus INSERT rows.