{"id":16590465,"url":"https://github.com/federicotdn/hyperlsp","last_synced_at":"2025-10-10T09:47:08.588Z","repository":{"id":252665706,"uuid":"841084091","full_name":"federicotdn/hyperlsp","owner":"federicotdn","description":"HTTP/1.1 to LSP proxy written in Go","archived":false,"fork":false,"pushed_at":"2024-08-11T16:28:18.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T09:47:03.764Z","etag":null,"topics":["go","golang","http","lsp","proxy"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/federicotdn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-11T15:40:04.000Z","updated_at":"2024-08-11T16:28:21.000Z","dependencies_parsed_at":"2024-08-11T17:04:13.636Z","dependency_job_id":null,"html_url":"https://github.com/federicotdn/hyperlsp","commit_stats":null,"previous_names":["federicotdn/hyperlsp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/federicotdn/hyperlsp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fhyperlsp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fhyperlsp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fhyperlsp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fhyperlsp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/federicotdn","download_url":"https://codeload.github.com/federicotdn/hyperlsp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fhyperlsp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279003402,"owners_count":26083581,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","http","lsp","proxy"],"created_at":"2024-10-11T23:13:12.875Z","updated_at":"2025-10-10T09:47:08.560Z","avatar_url":"https://github.com/federicotdn.png","language":"Go","readme":"# HyperLSP\n\nA small HTTP/1.1 to LSP proxy written in Go. This allows you to use your favorite HTTP tools for interacting with LSP servers, mostly for debugging or testing purposes. HyperLSP tries to map HTTP/1.1 to LSP in a practical way.\n\n## Installation\n\nTo install, run:\n\n```bash\n$ go install github.com/federicotdn/hyperlsp@latest\n```\n\n## Usage\n\nHyperLSP can connect to a LSP server via `stdio`, or via TCP (e.g. `localhost:1234`). This must be specified with the `-connect` flag.\nAdditionally, HyperLSP can also spawn an LSP server subprocess by its own. This is done if one or more positional arguments are passed to HyperLSP. In order to use the `stdio` connection method, an LSP server subprocess **must** be created.\n\nExamples:\n\n```bash\n# Launch pylsp and connect via stdio\n$ hyperlsp -connect stdio -- pylsp\n```\n\n```bash\n# Launch gopls and connect via TCP\n$ hyperlsp -connect localhost:9090 -- gopls -listen :9090\n```\n\n```bash\n# Connect to an already running gopls server\n$ hyperlsp -connect localhost:9090\n```\n\nThe address HyperLSP listens at can be configured via the `-addr` flag. The default is `localhost:8080`.\n\nOnce HyperLSP is running, you can use HTTP to send and receive LSP data. All requests must be POST and use the path `/lsp/{method_name}`. The `X-LSP-Id` header must be set to a nonempty string if a response is expected (otherwise, a notification will be sent).\n\n```http\nPOST /lsp/initialize\nX-LSP-Id: 123\n\n{\n    \"processId\": null,\n    \"workspaceFolders\": [\n        {\n            \"uri\": \"file:///home/foobar/myproject\"\n        }\n    ]\n}\n```\n\n```http\nHTTP/1.1 200 OK\nContent-Type: application/json\nContent-Length: 194\nX-LSP-Id: 123\n\n{\n    \"capabilities\": {},\n    \"serverInfo\": {}\n}\n```\n\nThe response body will contain the JSON-RPC `result` data in case of a successful request. Otherwise, it will contain the `error` data. The `X-LSP-Id` header will be set to the ID of the corresponding request.\n\nThe following HTTP codes are returned:\n- `200 OK`: A response to a request, without an error.\n- `204 No Content`: An (empty) response to a notification.\n- `400 Bad Request`: A response to a request, with an error present. May also be returned if the HTTP client did not send valid JSON data, or did not specify a method in the path.\n- `405 Method Not Allowed`: HTTP client did not use POST.\n- `500 Internal Server Error`: Error encountered when communicating with the LSP server, or when parsing its response.\n\n## License\n\nDistributed under the Apache-2.0 license. See [LICENSE](LICENSE) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericotdn%2Fhyperlsp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedericotdn%2Fhyperlsp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericotdn%2Fhyperlsp/lists"}