https://github.com/maxdeviant/code-stats-ls
A language server for Code::Stats
https://github.com/maxdeviant/code-stats-ls
Last synced: about 1 month ago
JSON representation
A language server for Code::Stats
- Host: GitHub
- URL: https://github.com/maxdeviant/code-stats-ls
- Owner: maxdeviant
- License: mit
- Created: 2024-08-26T20:05:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-20T13:50:50.000Z (7 months ago)
- Last Synced: 2025-10-26T16:40:11.576Z (4 months ago)
- Language: Rust
- Size: 51.8 KB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# code-stats-ls
A language server for [Code::Stats](https://codestats.net/).
## Installation
See the [releases](https://github.com/maxdeviant/code-stats-ls/releases) page for pre-built binaries.
If you would like to install the Code::Stats language server from source you can run:
```sh
git clone git@github.com:maxdeviant/code-stats-ls.git
cd code-stats-ls
cargo install --path .
```
## Authentication
In order to authenticate with the Code::Stats API, the language server needs to know your API token.
You can generate or retrieve your API token from the [Machines](https://codestats.net/my/machines) page.
## Configuration
You can provide configuration to the language server in two ways:
- Via environment variables
- Via the configuration file (`~/.config/code-stats/config.toml`)
The following values are configurable:
| Name | `config.toml` key | Environment variable | Default value |
| --------- | ----------------- | ---------------------- | ----------------------- |
| API Token | `api_token` | `CODE_STATS_API_TOKEN` | None |
| API URL | `api_url` | `CODE_STATS_API_URL` | `https://codestats.net` |