Discover and explore top open-source AI tools and projects—updated daily.
cloudflareOfficial TypeScript SDK for Cloudflare API
Top 47.8% on SourcePulse
Summary
This library offers a type-safe TypeScript interface for the Cloudflare REST API, targeting server-side developers. It simplifies API interactions, enhances productivity through strong typing, and provides convenient abstractions for common tasks.
How It Works
It acts as a direct wrapper around the Cloudflare API, generating TypeScript definitions for requests and responses. It supports various JavaScript runtimes, including Node.js, browsers, Deno, and Cloudflare Workers. Key features include built-in handling for file uploads, automatic retries, request timeouts, and seamless pagination, aiming to improve the developer experience.
Quick Start & Requirements
npm install cloudflaredevelopers.cloudflare.com.Highlighted Details
fs.ReadStream, File, fetch Response, toFile).APIError subclasses for distinct API issues (e.g., BadRequestError, AuthenticationError).for await...of..asResponse(), .withResponse()) for raw fetch response access; support for undocumented endpoints.Maintenance & Community
Actively maintained. Community engagement via bi-monthly triage meetings; urgent issues via Cloudflare support. Contribution guidelines available.
Licensing & Compatibility
Limitations & Caveats
React Native and Jest's "jsdom" environment are unsupported. Internal tracking of many issues may limit community visibility for certain bug reports.
17 hours ago
Inactive
anthropics
googleapis