{"id":19168156,"url":"https://github.com/masx200/speedtest-go","last_synced_at":"2026-06-18T14:30:18.857Z","repository":{"id":103392282,"uuid":"527352956","full_name":"masx200/speedtest-go","owner":"masx200","description":"Go backend for LibreSpeed https://github.com/librespeed/speedtest-go","archived":false,"fork":false,"pushed_at":"2025-02-10T05:04:40.000Z","size":2532,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-02-10T05:24:12.532Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/masx200.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":"2022-08-21T23:41:27.000Z","updated_at":"2025-02-10T04:25:38.000Z","dependencies_parsed_at":"2024-05-06T15:19:41.800Z","dependency_job_id":"8ee0e156-df64-4c7e-a544-b3a30f53b4ff","html_url":"https://github.com/masx200/speedtest-go","commit_stats":{"total_commits":50,"total_committers":16,"mean_commits":3.125,"dds":0.4,"last_synced_commit":"7ca972462d7dbf19119c1c7fb0b29f892677c484"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masx200%2Fspeedtest-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masx200%2Fspeedtest-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masx200%2Fspeedtest-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masx200%2Fspeedtest-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masx200","download_url":"https://codeload.github.com/masx200/speedtest-go/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240248457,"owners_count":19771479,"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-11-09T09:41:29.427Z","updated_at":"2026-06-18T14:30:16.790Z","avatar_url":"https://github.com/masx200.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![LibreSpeed Logo](https://github.com/masx200/speedtest-go/raw/main/.logo/logo3.png)\n\n# LibreSpeed\n\nthanks to\n[https://github.com/librespeed/speedtest-go](https://github.com/librespeed/speedtest-go)\n\nNo Flash, No Java, No WebSocket, No Bullshit.\n\nThis is a very lightweight speed test implemented in JavaScript, using\nXMLHttpRequest and Web Workers.\n\n## Try it\n\n[Take a speed test](https://speedtest.zzz.cat)\n\n## Compatibility\n\nAll modern browsers are supported: IE11, latest Edge, latest Chrome, latest\nFirefox, latest Safari. Works with mobile versions too.\n\n## Features\n\n- Download\n- Upload\n- Ping\n- Jitter\n- IP Address, ISP, distance from server (optional)\n- Telemetry (optional)\n- Results sharing (optional)\n- Multiple Points of Test (optional)\n- Compatible with PHP frontend predefined endpoints (with `.php` suffixes)\n- Supports\n  [Proxy Protocol](https://www.haproxy.org/download/2.3/doc/proxy-protocol.txt)\n  (without TLV support yet)\n\n![Screencast](https://speedtest.zzz.cat/speedtest.webp)\n\n## Server requirements\n\n- Any\n  [Go supported platforms](https://github.com/golang/go/wiki/MinimumRequirements)\n- BoltDB, PostgreSQL or MySQL database to store test results (optional)\n- A fast! Internet connection\n\n## 开启http3\n\n```toml\nenable_tls=true\nenable_http2=true\ntls_cert_file=\"cert.pem\"\ntls_key_file=\"privkey.pem\"\nenable_http3=true\n```\n\n## Installation\n\nYou need Go 1.16+ to compile the binary. If you have an older version of Go and\ndon't want to install the tarball manually, you can install newer version of Go\ninto your `GOPATH`:\n\n0. Install Go 1.17\n\n   ```\n   $ go get golang.org/dl/go1.17.1\n   # Assuming your GOPATH is default (~/go), Go 1.17.1 will be installed in ~/go/bin\n   $ ~/go/bin/go1.17.1 version\n   go version go1.17.1 linux/amd64\n   ```\n\n1. Clone this repository:\n\n   ```\n   $ git clone github.com/masx200/speedtest-go\n   ```\n\n2. Build\n\n   ```\n   # Change current working directory to the repository\n   $ cd speedtest-go\n   # Compile\n   $ go build -ldflags \"-w -s\" -trimpath -o speedtest main.go\n   ```\n\n3. Copy the `assets` directory, `settings.toml` file along with the compiled\n   `speedtest` binary into a single directory\n\n4. If you have telemetry enabled,\n\n   - For PostgreSQL/MySQL, create database and import the corresponding `.sql`\n     file under `database/{postgresql,mysql}`\n\n     ```\n     # assume you have already created a database named `speedtest` under current user\n     $ psql speedtest \u003c database/postgresql/telemetry_postgresql.sql\n     ```\n\n   - For embedded BoltDB, make sure to define the `database_file` path in\n     `settings.toml`:\n\n     ```\n     database_file=\"speedtest.db\"\n     ```\n\n5. Put `assets` folder under the same directory as your compiled binary.\n\n   - Make sure the font files and JavaScripts are in the `assets` directory\n   - You can have multiple HTML pages under `assets` directory. They can be\n     access directly under the server root (e.g.\n     `/example-singleServer-full.html`)\n   - It's possible to have a default page mapped to `/`, simply put a file named\n     `index.html` under `assets`\n\n6. Change `settings.toml` according to your environment:\n\n   ```toml\n   # bind address, use empty string to bind to all interfaces\n   bind_address=\"127.0.0.1\"\n   # backend listen port, default is 8989\n   listen_port=8989\n   # proxy protocol port, use 0 to disable\n   proxyprotocol_port=0\n   # Server location, use zeroes to fetch from API automatically\n   server_lat=0\n   server_lng=0\n   # ipinfo.io API key, if applicable\n   ipinfo_api_key=\"\"\n\n   # assets directory path, defaults to `assets` in the same directory\n   # if the path cannot be found, embedded default assets will be used\n   assets_path=\"./assets\"\n\n   # password for logging into statistics page, change this to enable stats page\n   statistics_password=\"PASSWORD\"\n   # redact IP addresses\n   redact_ip_addresses=false\n\n   # database type for statistics data, currently supports: none, memory, bolt, mysql, postgresql\n   # if none is specified, no telemetry/stats will be recorded, and no result PNG will be generated\n   database_type=\"postgresql\"\n   database_hostname=\"localhost\"\n   database_name=\"speedtest\"\n   database_username=\"postgres\"\n   database_password=\"\"\n\n   # if you use `bolt` as database, set database_file to database file location\n   database_file=\"speedtest.db\"\n\n   # TLS and HTTP/2 settings. TLS is required for HTTP/2\n   enable_tls=false\n   enable_http2=false\n\n   # if you use HTTP/2 or TLS, you need to prepare certificates and private keys\n   # tls_cert_file=\"cert.pem\"\n   # tls_key_file=\"privkey.pem\"\n   ```\n\n## Differences between Go and PHP implementation and caveats\n\n- Since there is no CGo-free SQLite implementation available, I've opted to use\n  [BoltDB](https://github.com/etcd-io/bbolt) instead, as an embedded database\n  alternative to SQLite\n- Test IDs are generated ULID, there is no option to change them to plain ID\n- You can use the same HTML template from the PHP implementation\n- Server location can be defined in settings\n- There might be a slight delay on program start if your Internet connection is\n  slow. That's because the program will attempt to fetch your current network's\n  ISP info for distance calculation between your network and the speed test\n  client's. This action will only be taken once, and cached for later use.\n\n## License\n\nCopyright (C) 2016-2020 Federico Dossena Copyright (C) 2020 Maddie Zhan\n\nThis program is free software: you can redistribute it and/or modify it under\nthe terms of the GNU Lesser General Public License as published by the Free\nSoftware Foundation, either version 3 of the License, or (at your option) any\nlater version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY\nWARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A\nPARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License along\nwith this program. If not, see \u003chttps://www.gnu.org/licenses/lgpl\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasx200%2Fspeedtest-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasx200%2Fspeedtest-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasx200%2Fspeedtest-go/lists"}