Stop bloating your Cloudflare Workers, Vercel Edge Functions, and Lambda@Edge with npm packages. TinyFn gives you 500+ utilities via API - nothing to bundle, nothing to parse, instant cold starts.
Edge platforms have strict limits. Every dependency is a compromise.
3 MB compressed limit (free)
Add uuid, lodash, and validator? That's 135 KB gone - 4.5% of your budget on utilities alone.
Learn more →1 MB limit for viewer functions
One megabyte total. moment.js alone is 290 KB. Choose your dependencies wisely.
Learn more →22x cost increase since Aug 2025
AWS now charges for cold start time. Every KB of dependencies costs real money.
Learn more →Replace npm packages with API calls. Zero bundle impact.
// package.json - 415 KB of dependencies
{
"dependencies": {
"uuid": "^9.0.0", // 15 KB
"lodash": "^4.17.0", // 70 KB
"validator": "^13.0.0", // 50 KB
"date-fns": "^2.30.0", // 80 KB
"crypto-js": "^4.1.0" // 200 KB
}
}
// No dependencies needed
const uuid = await fetch(
'https://api.tinyfn.io/v1/generate/uuid',
{ headers: { 'X-API-Key': API_KEY } }
).then(r => r.json());
// Same for validation, hashing, etc.
One API, every edge platform
Stay under 3 MB. Ship fast Workers without the baggage.
View Guide →Edge Runtime compatible. Works with Next.js middleware.
View Guide →Fit under the 1 MB limit. Reduce INIT billing costs.
View Guide →No npm needed. Just fetch() our API from anywhere.
View Guide →The endpoints edge developers use most
/v1/generate/uuid
Replaces: uuid (15 KB)
/v1/validate/email
Replaces: validator (50 KB)
/v1/hash/sha256
Replaces: crypto-js (200 KB)
/v1/crypto/hmac-sha256
For webhook signature verification
/v1/string/slug
Replaces: slugify (8 KB)
/v1/encode/base64-encode
Handles Unicode correctly
/v1/encode/jwt-decode
Replaces: jsonwebtoken (45 KB)
/v1/json/flatten
Replaces: flat (12 KB)
Get your free API key and replace those bloated npm packages with simple API calls.
100 requests/month free. No credit card required.