# Fiber

> Fiber Express-inspired Go web framework. Use for Go APIs.

- Skill: `g1joshi/fiber` (Agent Skill)
- Install (CLI): `npx skillmds@latest add g1joshi/fiber`
- Raw SKILL.md: https://api.skillmd.com/api/skills/g1joshi/fiber/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: G1Joshi (https://skillmd.com/u/g1joshi)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/g1joshi/fiber

---


# Fiber

Fiber is an **Express.js** inspired framework for Go, running on `fasthttp` (the fastest HTTP engine for Go). v3 brings generic support and better middleware.

## When to Use

- **Benchmarks**: You need the absolute highest raw throughput.
- **Node.js Background**: The API (`app.Get("/", ...)` feels like Express).
- **Zero Allocation**: Obsessive memory optimization.

## Core Concepts

### Fasthttp

Doesn't use `net/http`. Much faster but incompatible with some standard library middlewares.

### Prefork

Spawn multiple processes (SO_REUSEPORT) to utilize all cores.

## Best Practices (2025)

**Do**:

- **Use `v3`**: For stable generic support.
- **Be careful with Prefork**: Can cause issues with socket connections if not handled.
- **Use Built-in Middleware**: Cache, Compress, CORS are highly optimized.

**Don't**:

- **Don't hold references**: `fasthttp` reuses context objects. Copy strings if you need them after handler returns.

## References

- [Fiber Documentation](https://gofiber.io/)

