{"id":13658222,"url":"https://github.com/tbodt/js-langserver","last_synced_at":"2025-04-14T02:31:38.838Z","repository":{"id":31933411,"uuid":"130895891","full_name":"tbodt/js-langserver","owner":"tbodt","description":"A simple language server for JavaScript, powered by ESLint and Tern.","archived":false,"fork":false,"pushed_at":"2022-04-10T09:57:30.000Z","size":78,"stargazers_count":44,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T16:49:46.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tbodt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-24T18:13:46.000Z","updated_at":"2024-09-02T17:42:13.000Z","dependencies_parsed_at":"2022-08-07T17:01:00.507Z","dependency_job_id":null,"html_url":"https://github.com/tbodt/js-langserver","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbodt%2Fjs-langserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbodt%2Fjs-langserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbodt%2Fjs-langserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tbodt%2Fjs-langserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tbodt","download_url":"https://codeload.github.com/tbodt/js-langserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602313,"owners_count":21131616,"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","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":[],"created_at":"2024-08-02T05:00:57.732Z","updated_at":"2025-04-14T02:31:37.806Z","avatar_url":"https://github.com/tbodt.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# js-langserver ![](https://img.shields.io/npm/v/js-langserver.svg) [![dependencies Status](https://david-dm.org/tbodt/js-langserver/status.svg)](https://david-dm.org/tbodt/js-langserver)\n\nA simple language server for JavaScript, powered by ESLint and Tern.\n\nI made this because sourcegraph/javascript-typescript-langserver is really bad at untyped JavaScript. It uses the intellisense library that's part of TypeScript as a backend, which makes it really good at TypeScript (probably, I've never used it for TypeScript) but much worse than Tern at regular JavaScript.\n\n# Using the thing\n\nI'm a vim user, so I just do this:\n\n```\nlet g:LanguageClient_serverCommands = {\n    \\ 'javascript.jsx': ['js-langserver', '--stdio'],\n    \\ }\n```\n\nIf you want to use VSCode, I think you're going to have to fork the project and add a 20-line VSCode extension. Not really sure how VSCode works.\n\n# Obligatory stupid arbitrary feature matrix table thing\n\n| | js-langserver | javascript-typescript-langserver | vscode-eslint | vscode-ternjs|\n-|-|-|-|-\nLines of code \u003csub\u003e(according to tokei)\u003c/sub\u003e | 153 | 8,618 | 1,787 | 326\nGitHub stars | ![][js-langserver stars] | ![][javascript-typescript-langserver stars] | ![][vscode-eslint stars] | ![][vscode-ternjs stars]\nTern | :white_check_mark: | :x: | :x: | yes, but no completions (???)\nESLint | :white_check_mark: | :x: | :white_check_mark: | :x:\n\n[js-langserver stars]: https://img.shields.io/github/stars/tbodt/js-langserver.svg?style=social\n[javascript-typescript-langserver stars]: https://img.shields.io/github/stars/sourcegraph/javascript-typescript-langserver.svg?style=social\n[vscode-eslint stars]: https://img.shields.io/github/stars/Microsoft/vscode-eslint.svg?style=social\n[vscode-ternjs stars]: https://img.shields.io/github/stars/hsiaosiyuan0/vscode-ternjs.svg?style=social\n\nVSCode's builtin JavaScript support is not in here because I can't figure out how to use it with vim. vscode-ternjs is here despite having 1 GitHub star because it is literally the only language server I could find that used Tern.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbodt%2Fjs-langserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftbodt%2Fjs-langserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftbodt%2Fjs-langserver/lists"}