github.com/Prajwal-ak-0/zed-sendline →

I keep API requests in plain .http files next to the code they exercise. Zed could highlight those files but not run them. Sendline runs them.

What it does

Sendline is a language-server extension for Zed’s existing HTTP language. The two extensions split the work:

Owner
Syntax highlighting and file recognition The HTTP extension
Running requests Sendline
Environments Sendline
Diagnostics Sendline
Response tests Sendline

A request file looks like this:

### Get current user
GET {{baseUrl}}/api/users/me
Authorization: Bearer {{token}}

> {%
client.test("HTTP 200", () => client.assert(response.status === 200));
%}

You run a request from an inline control above it, choose an environment to fill in the variables, and the response opens in a private file.

Why a language server

Zed extensions cannot draw their own interface, but they can provide a language server, and a language server can offer code lenses, diagnostics and commands. Building the client as a server means the “Run” control, the error squiggles and the environment picker all use parts of the editor that already exist.

Where it stands

Native downloads are on GitHub Releases. Installation from Zed’s own registry is waiting on review of the registry submission.

In the machine

Sendline is the second stop of the red signal in the Living Machine: a request leaves the .http file, passes through Sendline, and goes on to my security lab.

Questions or corrections? Message me on LinkedIn.