← All extensions

fiber Snippets

v0.1.0 · by Ayberk Gezer · added 3 November 2026

Fiber v2 snippets for Zed IDE.

Snippets

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for fiber Snippets. The extension's id is fiber-snippets.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

Fiber Zed Snippets

Fiber Zed Snippets is a collection of productivity-boosting code snippets for Fiber v2 tailored for the Zed IDE. With this extension, you can quickly scaffold common Fiber patterns, routes, middleware, and more, making your Go web development faster and less error-prone.

Features

  • Up-to-date Fiber v2 snippets: Includes setup, routing, middleware, error handling, static files, JWT, CORS, rate limiting, CRUD, MVC structure, REST API skeleton, and more.
  • Easy access: Instantly insert snippets using Zed IDE’s snippet interface.
  • Parameterizable: Most snippets include tab stops for quick variable and name customization.
  • Best practices: Snippets reflect modern, idiomatic Fiber usage.

Installation

Method 1

  1. Go to Extensions menu in Zed IDE
  2. Search for "fiber-snippets"
  3. Click "Install"

Method 2

  1. Clone this repo:
git clone https://github.com/ayberkgezer/fiber-zed-snippets.git
  1. Go to Extensions menu in Zed IDE
  2. Click "Install Dev Extension"
  3. Select the folder you cloned

Usage

  1. In a Go file, type a snippet prefix (e.g. fiber2-setup, fiber2-route, fiber2-json, etc.) and press Tab.
  2. The corresponding Fiber code block will be inserted, with placeholders for you to fill in.

Snippet List

PrefixDescription
fiber2-setupBasic Fiber app setup
fiber2-routeRoute handler
fiber2-groupRoute group
fiber2-middlewareCustom middleware function
fiber2-useGlobal middleware
fiber2-staticServe static files
fiber2-jsonJSON response
fiber2-errorError handling
fiber2-paramsRead URL parameters
fiber2-queryQuery parameters
fiber2-bodyParse request body
fiber2-templatesTemplate engine setup
fiber2-downloadFile download
fiber2-uploadFile upload
fiber2-corsCORS middleware
fiber2-limiterRate limiter middleware
fiber2-jwtJWT authentication
fiber2-swaggerSwagger documentation
fiber2-loggerRequest logger middleware
fiber2-cookiesCookie handling
fiber2-websocketWebSocket endpoint
fiber2-databaseGORM database connection
fiber2-modelGORM model definition
fiber2-crudCRUD operations
fiber2-mvcMVC structure skeleton
fiber2-rest-apiREST API skeleton

Contributing

Contributions are welcome!

  1. Fork the repository and create a new branch.
  2. Add or improve snippets.
  3. Open a pull request.

Suggestions, improvements, and new snippets are highly appreciated!

License

GNU GPL v3


Author: Ayberk Gezer ayberkgezer@outlook.com