Best of Cloudflare — 2024
- 1
- 2
Josh tried coding·2y
I Found a Faster Way to Build Next.js APIs
Discover a method for deploying Next.js APIs in a highly performant and cost-effective manner by utilizing Cloudflare Workers. This approach benchmarks different setups to highlight the significance of API deployment region, minimal dependencies per request, and lightweight runtimes. A comparison between a simple Cloudflare Worker, a custom architecture, and Vercel Edge Functions reveals considerable performance improvements.
- 3
- 4
Collections·2yAnnouncing WinterJS 1.0: The Fastest JavaScript Web Server with Cloudflare App and React Server Component Support
WinterJS 1.0 is the fastest JavaScript web server with support for Cloudflare apps and React Server Components. It offers incredible speed, performance, and compatibility with multiple runtimes.
- 5
- 6
DEV·2y
Screw it! I've Developed My Own Static Site Generator!
The author explains their journey in web development and their decision to create a personal static site generator. Initially considering React and various platforms for their project, they faced several challenges, particularly with deploying Next.js on Cloudflare Pages. To overcome these issues and to retain control, the author developed their own static site generator using Python to parse Markdown files into HTML. They created a CLI tool called 'fit' to manage the site generation and deployment processes. The project was a creative and educational experience, ultimately satisfying the author’s needs and paving the way for future improvements.
- 7
Community Picks·2y
self-hosting with sst on a $5 vps.
Learn how to use SST to self-host Plunk on a $5 VPS from Hetzner Cloud with a custom domain and HTTPS. The guide includes setting up AWS, Hetzner, and Cloudflare, installing necessary tools and services, and deploying the application. Secure your setup and manage your server efficiently.
- 8
freeCodeCamp·2y
Learn AI Engineering with OpenAI and JavaScript
Learn how to build and deploy AI-powered applications using the OpenAI API and JavaScript. The course covers AI engineering basics, API mechanics, prompt engineering, few shot approach, fine-tuning, and deploying secure applications using Cloudflare.
- 9
ByteByteGo·2y
Cloudflare’s Trillion-Message Kafka Infrastructure: A Deep Dive
Cloudflare's Kafka infrastructure has processed 1 trillion messages, demonstrating significant scaling and resilience. The engineering team faced challenges with coupling, unstructured communication, and common usage patterns. Lessons learned include the importance of balance between configuration and simplicity, visibility in distributed systems, well-defined contracts, and knowledge sharing.
- 10
System Weakness·2y
Finding origin ip address
The post provides various methods and tools to find the origin IP address of websites hidden behind Web Application Firewalls (WAF) like Cloudflare. It suggests manual techniques using platforms such as Shodan and DNS lookup tools, and also lists automation tools available on GitHub for the same purpose.
- 11
Community Picks·1y
FlareSolverr/FlareSolverr: Proxy server to bypass Cloudflare protection
FlareSolverr is a proxy server designed to bypass Cloudflare and DDoS-GUARD protection using Selenium with an undetected Chrome driver. It opens URLs with user parameters, solves Cloudflare challenges, and returns HTML code and cookies. Installation using Docker is recommended due to its dependencies on an external browser. Memory consumption can be high, so it should be used cautiously on low-RAM machines. It supports multiple architectures and provides examples for making requests via Bash, Python, and PowerShell. Users can also create permanent sessions to avoid repeatedly solving challenges.
- 12
Quastor Daily·2y
How Cloudflare Optimized their Reverse Proxy with Tries
Cloudflare optimized their reverse proxy performance by using a data structure called a trie. This change cut latency by 75% for a path handling 35 million requests per second. Their process included extensive benchmarking with the Rust criterion crate, inverting their header removal function, and creating a custom optimized trie implementation. This effort's result was a reduction in average header removal time from 3.65 to 0.93 microseconds.
- 13
- 14
- 15
Cloudflare·2y
The story of web framework Hono, from the creator of Hono
Hono is a fast, lightweight web framework that works across various JavaScript environments, including Cloudflare Workers, Deno, Bun, and Node.js. It uses a Trie tree-based router and adheres to Web Standards, ensuring a 'write once, run anywhere' experience. Hono simplifies development with concise syntax, built-in middleware, strong type system, and server-side JSX support. It also has features for authentication, context model for state management, and robust testing capabilities. Recent updates include static site generation, client components, and file-based routing, allowing full-stack application development.
- 16
Community Picks·2y
Create Next App
A modern tech stack built by Josh leverages Hono, an efficient framework using web standards, to ship high-performance, low-cost Next.js apps with routes that have built-in caching and easy deployment options. The stack ensures end-to-end typesafety, works seamlessly on both server and client, and integrates perfectly with React Query without additional abstraction.
- 17
- 18
Dev Squad·1y
🚀 Automate Your PostgreSQL Backups with Ease! 🐳
Simplify database management with a robust system for backup and restore using Deno, Docker, and Cloudflare R2. Features include automated backups via cron or on-demand, seamless restores from local files or R2, and easy cloud integration. To get started, clone the appropriate repo, configure your environment file, and run the specified Deno tasks.
- 19
Hacker News·2y
cloudflare/serverless-registry: A Docker registry backed by Workers and R2.
Cloudflare's serverless Docker registry uses Workers and R2 for managing container images. It supports push/pull workflows and multiple authentication methods, and requires dependencies installed via pnpm. Deployment includes setting up an R2 bucket, configuring wrangler files, and deploying with npx wrangler. The registry can fallback to another registry if images are missing. Limitations include a maximum layer size of 500MB for Docker pushes. Credentials should always be set as secrets, not directly in configuration files.
- 20
Christian Lempa·2y
Simple HTTPs for Docker! // Traefik Tutorial (updated)
Learn how to set up and manage HTTPS and routing for Docker applications using Traefik, a free and open-source reverse proxy. This tutorial focuses on Docker integration, configuring Let's Encrypt for TLS certificates, and the benefits of using Traefik. Suitable for both beginners and advanced users, the guide provides detailed steps on installation, configuration, and deploying Traefik to secure your web applications. Additionally, it highlights integrating Cloudflare for DNS management and SSL certificate issuance.
- 21
- 22
selfh.st·1y
This Week in Self-Hosted (6 December 2024)
Weekly roundup of self-hosted news, including updates and new releases for various software such as Bar Assistant, Home Assistant, and Jellyplist. Highlights new software like Amurex and Fli.so, provides a list of latest directory apps such as Amnezia and Dockwatch, and features community content and command line tips.
- 23
Josh tried coding·2y
I Just Released My Own Tech Stack
Introducing JStack, a new tech stack designed to build high-performance, low-cost NextJS applications. JStack offers type safety, end-to-end typing, and seamless deployment to Cloudflare Workers, among other cloud services. It also includes built-in global caching and flexible middleware for enhanced developer experience. Currently, documentation is lacking, and database support is limited to edge-compatible options.
- 24
Community Picks·2y
1.1.1.1 (DNS Resolver)
Cloudflare's 1.1.1.1 is a public DNS resolver providing a fast and private browsing experience without selling user data to advertisers. It offers additional protection through 1.1.1.1 for Families, encrypted services via DNS over HTTPS (DoH) or DNS over TLS (DoT), and can be accessed as a Tor hidden service. The setup is simple, free, and enhances both speed and security on the Internet.
- 25
