Bunny

Bunny

Integrate Bunny.net services (CDN, Storage, Stream, DNS, Edge Scripting, Shield, Magic Containers, Optimizer, Database). Use when building with Bunny

Category: development Source: mrgoonie/claudekit-skills

What Is Bunny?

Bunny.net is a modern, developer-centric cloud platform that provides a suite of services including content delivery network (CDN), edge storage, video streaming, DNS management, edge scripting, web application firewall (WAF/DDoS protection), Magic Containers, image optimization, and database solutions. The Claude Code skill "Bunny" enables seamless integration with Bunny.net’s APIs, allowing developers to automate and manage these services programmatically within their applications or workflows.

Bunny.net aims to deliver high performance, reliability, and global scalability at competitive pricing. Its APIs are designed for flexibility, enabling fine-grained control over CDN zones, storage objects, streaming libraries, DNS zones, edge scripts, security policies, and more.

Why Use Bunny?

Bunny.net distinguishes itself through its simplicity, cost-effectiveness, and developer-friendly approach. Here are some reasons to leverage Bunny:

  • Unified Cloud Platform: Manage CDN, storage, streaming, DNS, and security from a single service provider.
  • Performance and Scalability: A global network with intelligent routing ensures low latency and high availability.
  • API-First Design: Every major feature is controllable via well-documented APIs, empowering automation and CI/CD workflows.
  • Fine-grained Security: Integrated WAF and DDoS protection, along with granular API authentication.
  • Cost Efficiency: Transparent pricing and pay-as-you-go models, suitable for projects of any size.
  • Edge Computing: Deploy custom code closer to users with edge scripting and Magic Containers.

The "Bunny" skill is most useful when your application requires direct interaction with Bunny.net services—such as deploying pull zones, managing edge storage, streaming video, or configuring DNS—especially in automation, DevOps, or serverless environments.

How to Get Started

To interact with Bunny.net’s APIs via the Bunny skill, you must obtain the appropriate credentials and understand the API endpoints for each service. Bunny.net uses three main types of credentials:

Credential Used For Where to Find
Account API Key Core API (CDN, DNS, Statistics) Dashboard → Account Settings
Storage Zone Password Edge Storage API Dashboard → Storage Zone → FTP & API Access
Stream Library API Key Stream API Dashboard → Stream → API

All API requests require the AccessKey header:

curl -H "AccessKey: YOUR_KEY" -H "Content-Type: application/json" https://api.bunny.net/...

Example: List Pull Zones (CDN)

curl -H "AccessKey: <ACCOUNT_API_KEY>" \
     -H "Content-Type: application/json" \
     https://api.bunny.net/pullzone

Example: Upload File to Edge Storage

curl -T "./file.jpg" \
     -H "AccessKey: <STORAGE_ZONE_PASSWORD>" \
     https://storage.bunnycdn.com/<STORAGE_ZONE>/<FILE_PATH>

Example: List Stream Videos

curl -H "AccessKey: <STREAM_LIBRARY_API_KEY>" \
     -H "Content-Type: application/json" \
     https://video.bunnycdn.com/library/<LIBRARY_ID>/videos

Consult the Bunny.net API documentation for detailed endpoints and parameters.

Key Features

The Bunny skill supports automation and orchestration of the following Bunny.net services:

1. CDN (Pull Zones)

  • Create, update, and delete CDN pull zones.
  • Configure cache rules, origins, and security settings.
  • Retrieve usage statistics and logs.

2. Edge Storage

  • Upload, download, and manage files in globally distributed storage zones.
  • Use for static asset hosting, backups, or large file distribution.

3. Stream

  • Manage video libraries, upload and transcode videos, and retrieve playback URLs.
  • Integrate video streaming into applications with minimal latency.

4. DNS

  • Automate DNS zone creation, record management, and propagation.
  • Useful for rapid domain onboarding and infrastructure automation.

5. Edge Scripting

  • Deploy serverless JavaScript functions at the edge for custom routing, security, or content manipulation.

6. Shield (WAF/DDoS)

  • Configure web application firewalls and DDoS mitigation rules for pull zones.

7. Magic Containers

  • Deploy containerized applications to the Bunny edge network for ultra-low latency compute.

8. Optimizer and Database

  • Automate image optimization workflows and interact with edge databases for global data access.

Best Practices

To maximize the effectiveness and security of your Bunny.net integration:

  • Use Least Privilege: Generate and use API keys with the minimal required permissions. Do not embed long-term credentials in source code; use environment variables or secrets management.
  • Automate with Care: When automating large operations (e.g., mass file uploads, bulk DNS changes), implement rate limiting and error handling to comply with Bunny.net API policies.
  • Monitor Usage: Query statistics endpoints to monitor bandwidth, storage consumption, and error rates. Set up alerts for unexpected usage patterns.
  • Secure Edge Scripts: Validate and sanitize inputs in edge scripts to prevent injection attacks or performance issues.
  • Leverage CDN Features: Use cache rules, SSL, and WAF settings to optimize performance and security for your content delivery.
  • Version Control: Store infrastructure configurations (e.g., CDN settings, DNS records, edge scripts) in version control to track changes and recover from misconfigurations.

Important Notes

  • The Bunny skill is specific to Bunny.net APIs and does not support other cloud or CDN providers such as Cloudflare, Fastly, or AWS CloudFront.
  • Each Bunny.net API service requires its own unique key; ensure you use the correct credential for each endpoint.
  • Some services may have rate limits or quota restrictions. Always consult the official Bunny.net API documentation for up-to-date limits and best practices.
  • For sensitive operations (such as deleting zones or files), implement confirmation steps or safeguards in automation scripts.
  • The Bunny skill triggers on keywords like "bunny", "bunnycdn", "b-cdn", "pull zone", "edge storage", and "bunny stream". Use these triggers to ensure your integration activates only when needed.
  • Regularly rotate API keys and review dashboard access controls to maintain security.

By following these guidelines and leveraging the Bunny skill, developers can build robust, scalable, and secure solutions on top of Bunny.net’s cloud platform.