Gathering detailed insights and metrics for @elastic/javascript-typescript-langserver
Gathering detailed insights and metrics for @elastic/javascript-typescript-langserver
npm install @elastic/javascript-typescript-langserver
Typescript
Module System
Min. Node Version
60.9
Supply Chain
95.7
Quality
80.6
Maintenance
50
Vulnerability
84.4
License
TypeScript (99.48%)
JavaScript (0.33%)
Shell (0.15%)
Dockerfile (0.04%)
Total Downloads
145,694
Last Day
6
Last Week
52
Last Month
133
Last Year
2,319
1 Stars
792 Commits
2 Forks
3 Watching
43 Branches
2,034 Contributors
Latest Version
0.3.3
Package Id
@elastic/javascript-typescript-langserver@0.3.3
Unpacked Size
798.54 kB
Size
138.02 kB
File Count
113
Cumulative downloads
Total Downloads
Last day
0%
6
Compared to previous day
Last week
100%
52
Compared to previous week
Last month
26.7%
133
Compared to previous month
Last year
-49.2%
2,319
Compared to previous year
21
28
This is a fork of: https://github.com/sourcegraph/javascript-typescript-langserver
The goal of this fork is:
Non goal
Q: Why not https://github.com/theia-ide/typescript-language-server? A: the fact it calls tsserver bring a lot of overhead, making the indexing speed very slow. However, we are going to brow code from them
This is a language server for JavaScript and TypeScript that adheres to the Language Server Protocol (LSP). It uses TypeScript's LanguageService to perform source code analysis.
1# install dependencies 2npm install 3 4# compile 5npm run build 6# or compile on file changes 7npm run watch 8 9# run over STDIO 10node lib/language-server-stdio 11# or run over TCP 12node lib/language-server 13 14# run tests 15npm test
Usage: language-server [options]
Options:
-h, --help output usage information
-V, --version output the version number
-s, --strict enabled strict mode
-p, --port [port] specifies LSP port to use (2089)
-c, --cluster [num] number of concurrent cluster workers (defaults to number of CPUs, 8)
-t, --trace print all requests and responses
-l, --logfile [file] log to this file
-j, --enable-jaeger enable OpenTracing through Jaeger
This language server implements some LSP extensions, prefixed with an x
.
exit
notification will not kill the process, but close the TCP socketThis project follows semver for command line arguments and standard LSP methods. Any change to command line arguments, Node version or protocol breaking changes will result in a major version increase.
The language server is fully traced through OpenTracing, which allows to debug what exact operations caused method calls to take long.
You can pass a span context through an optional meta
field on the JSON RPC message object.
For local development, there is built-in support for the open source OpenTracing implementation Jaeger, which can be set up to run on localhost with just one command (you need Docker installed):
docker run -d -p5775:5775/udp -p6831:6831/udp -p6832:6832/udp \
-p5778:5778 -p16686:16686 -p14268:14268 jaegertracing/all-in-one:latest
After that, run the language server with the --enable-jaeger
command line flag and do some requests from your client.
Open http://localhost:16686 in your browser and you will see method calls broken down into spans.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
security policy file detected
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
project is archived
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
78 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More