Developer Tools
In-depth guides and analysis on developer tools from the Safeguard engineering team.
2959 articles
Input vs output tokens: how the price lists compare
Output tokens cost five or six times more than input tokens on public price lists from Anthropic, OpenAI and Google. See the ratios and what they mean.
innerHTML vs textContent: avoiding DOM XSS in plain JavaScript
Setting innerHTML with untrusted data is a classic DOM XSS sink. Use textContent for text, sanitize if you need markup, and know which sinks to audit.
Idempotency keys for payment APIs: retry without double charges
An idempotency key lets a client retry a payment request safely. How servers should handle repeats, mismatches and concurrent calls, and the security angle.
Choosing a hybrid TLS group: X25519, P-256 or P-384 with ML-KEM
The IETF defines three ML-KEM hybrid TLS groups. How to choose between X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024 for your requirements.
Hugging Face tokens for production and CI: fine-grained over read or write
Use fine-grained tokens, one per app, and avoid stored CI secrets where Trusted Publishers apply. A short guide to Hugging Face token hygiene.
The Vary header: when caches serve the wrong version
Vary tells caches which request headers change a response. Get it wrong and users see the wrong variant. A guide to Accept-Encoding, Vary star and safe defaults.
301, 302, 303, 307 or 308: choosing the right HTTP redirect
Which redirect status code to use: permanent or temporary, and whether the request method must be kept. A decision table for 301, 302, 303, 307 and 308.
Cache-Control cheat sheet: no-cache vs no-store and the rest
no-cache does not mean do not cache. A cheat sheet of Cache-Control directives from RFC 9111, freshness rules, Vary and what to set for private data.
How to write a correct package URL (purl) for npm, Maven and PyPI
A purl is pkg:type/namespace/name@version with optional qualifiers. How to write one for npm scoped packages, Maven, PyPI, Debian and containers.
How to vet a VS Code extension before installing it
A checklist for judging a VS Code extension: publisher badge, reviews, source repo, license, and what to do if something looks off before you install.
How to roll back a bad dependency upgrade merge safely
Step by step rollback of a bad dependency upgrade: git revert for merge and squash commits, lockfile checks, and what to do after the revert.
How to read benchmark scores when choosing a small model
Benchmark numbers in model reports are a starting point, not a verdict. Six questions to ask before trusting a score, and how to run your own check.
Self-healing security runs on Safeguard.
Your first fix PR is minutes away.
No sales call required, even your agent can complete the purchase over MCP.