I built 25 browser-only tools for EU small businesses (no backend, strict CSP)
I run a tiny software business in Italy. Most of my customers are small shops and freelancers in the EU, and the same small questions kept coming back: how much VAT do I charge a client in Germany?, is this VAT number ev
I run a tiny software business in Italy. Most of my customers are small shops and freelancers in the EU, and the same small questions kept coming back: how much VAT do I charge a client in Germany?, is this VAT number even valid?, how do I set up DMARC so my emails stop landing in spam?
So I built a set of 25 small tools for them. The one rule: everything runs in the browser. No backend, no account, nothing uploaded.
Here is how it is built and what I learned.
Why browser-only
- Privacy is the product. An invoice or a VAT number is business data. If it never leaves the device, there is nothing to leak and nothing to explain in a GDPR notice.
-
Zero attack surface. No PHP, no database, no POST endpoints. The server answers only
GETandHEAD; everything else gets a 403. - Cheap to host. Static files behind nginx. One build script writes the same toolbox into every site.
The security headers
The whole toolbox ships with a strict Content Security Policy, enforced (not report-only):
Content-Security-Policy: default-src 'none'; script-src 'self'; style-src 'self';
img-src 'self' data: blob:; font-src 'self'; connect-src 'self' https://cloudflare-dns.com;
base-uri 'none'; form-action 'none'; frame-ancestors 'none'; object-src 'none'
X-Frame-Options: DENY
Referrer-Policy: no-referrer
Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Resource-Policy: same-origin
No inline scripts and no eval. The only outside request is DNS-over-HTTPS to Cloudflare, and only when the user presses the button in the look-alike domain finder or the DMARC checker.
A few of the tools
- EU VAT calculator: the standard rates of all 27 member states, plus a reverse-charge note for B2B.
- VAT number check: format rules per country, and the real check digit for Italian Partita IVA (Luhn-style). There is a link to VIES for the official lookup.
- File & text lock: AES-256-GCM through the Web Crypto API, key from PBKDF2 with 600,000 iterations. The output is a single file you can send by email.
- SPF & DMARC builder: answer 4 questions, copy the DNS record.
- Look-alike domain finder: generates typo and homoglyph variants of your domain, then checks which ones resolve. Useful to spot phishing domains.
- Deadline calculator: business days with public holidays for IT, DE, FR, ES, AT, NL, BE and PT.
The Web Crypto part is shorter than people expect:
const salt = crypto.getRandomValues(new Uint8Array(16));
const iv = crypto.getRandomValues(new Uint8Array(12));
const base = await crypto.subtle.importKey('raw', new TextEncoder().encode(pass), 'PBKDF2', false, ['deriveKey']);
const key = await crypto.subtle.deriveKey(
{ name: 'PBKDF2', salt, iterations: 600000, hash: 'SHA-256' },
base, { name: 'AES-GCM', length: 256 }, false, ['encrypt']);
const data = await crypto.subtle.encrypt({ name: 'AES-GCM', iv }, key, bytes);
24 languages without a framework
Every string lives in a JSON file per language. The page picks the language from navigator.languages, and ?lang=xx overrides it. I wrote the Italian and Urdu translations by hand. The rest were machine-translated on my own server, and any sentence that fails a check stays in English rather than shipping a bad translation.
Try it
All 25 tools: https://awmza.com/toolbox/
What tool is missing for a small business in Europe? I would love feedback, especially on the VAT rules for your country.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.