File Editing Server
About
A small Go-based server that exposes HTTP endpoints for reading, editing, and listing files in a specified working directory. It also offers a JSON‑RPC STDIO transport mode. Designed for developers who need programmable file operations over a network or standard I/O.
Details
- Author
- kaqu
- Downloads
- 202
- Categories
- Other
Jump to
- File reading, editing, and listing via HTTP endpoints
- JSON‑RPC STDIO transport mode
- Working directory restriction for safe operations
- Health endpoint at /health
- Graceful shutdown on SIGTERM or Ctrl+C
Build it with go build ./cmd/file-editor, then run the binary with the required -dir flag to set the working directory. Choose transport via -transport (defaults to http) and optionally set the HTTP port with -port. Example: ./file-editor -dir /path/to/workdir -transport http -port 8080.
File Editing Server
This repository contains a small file editing server written in Go. The server exposes HTTP endpoints for reading, editing and listing files in a specified working directory. A JSON-RPC STDIO mode is also available.
Building
go build ./cmd/file-editor
This will produce a file-editor binary in the current directory.
Running
The server requires a working directory for file operations. Use the -dir flag to specify it. Choose http or stdio transport with -transport (defaults to http).
Example running the HTTP server on port 8080:
./file-editor -dir /path/to/workdir -transport http -port 8080
You can then check the health endpoint:
curl http://localhost:8080/health
The server logs initialization information and will shut down gracefully on SIGTERM or Ctrl+C.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



