Case study

Lineicons v5

Version 5 of an icon library.

Client
Lineicons
Stack
Next.js, Cloudflare R2, Express.js
Lineicons v5 home page

From problem to fix

Challenges

  1. Handling 100K+ daily active requests, which exceeded shared server limits and caused performance bottlenecks
  2. Relying on a free-tier Cloudflare Worker, which became expensive as user traffic grew exponentially
  3. Querying the database directly for icon metadata, which led to inefficient SQL operations and slow response times
  4. Using a non-S3-compatible CDN, which made it difficult to manage and scale icon storage effectively
  5. A complex icon management system that made uploading and modifying icons time-consuming for non-technical users

Solution

  1. Migrated to a custom, lightweight Express.js server on a VPS for efficient request mapping and handling
  2. Implemented a key-value cache for icon metadata, reducing SQL load and improving response times
  3. Integrated Cloudflare R2 (S3-compatible) as the CDN for scalable and cost-effective icon storage
  4. Built a custom icon management system with an S3 file system browser, enabling non-technical users to easily upload, modify and sync icons
  5. Added a caching layer to minimize database queries and optimize server performance in high-traffic scenarios

Stack

  • Next.js
  • Cloudflare R2
  • Express.js
  • Tailwind CSS
  • MySQL
  • S3

Need something like this built?

Tell me what you're building and where it's stuck.

Book a call

Free 30-min call · No prep needed