{"id":29960250,"url":"https://github.com/flameborn/verity","last_synced_at":"2025-08-03T22:09:20.224Z","repository":{"id":279092496,"uuid":"937696820","full_name":"Flameborn/verity","owner":"Flameborn","description":"A tiny, super fast server for Altcha.","archived":false,"fork":false,"pushed_at":"2025-03-14T10:03:41.000Z","size":21,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T11:22:33.959Z","etag":null,"topics":["altcha","captcha","server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Flameborn.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":"2025-02-23T17:30:50.000Z","updated_at":"2025-03-14T10:03:44.000Z","dependencies_parsed_at":"2025-02-23T18:43:51.228Z","dependency_job_id":null,"html_url":"https://github.com/Flameborn/verity","commit_stats":null,"previous_names":["flameborn/verity"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Flameborn/verity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flameborn%2Fverity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flameborn%2Fverity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flameborn%2Fverity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flameborn%2Fverity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Flameborn","download_url":"https://codeload.github.com/Flameborn/verity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Flameborn%2Fverity/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268619389,"owners_count":24279360,"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-08-03T02:00:12.545Z","response_time":2577,"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":["altcha","captcha","server"],"created_at":"2025-08-03T22:08:51.974Z","updated_at":"2025-08-03T22:09:20.200Z","avatar_url":"https://github.com/Flameborn.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Verity\n\nVerity is a tiny, super-fast server for [Altcha](https://altcha.org/), a Proof-of-Work based CAPTCHA.\n\n## Features\n\n* Uses the official [altcha-lib-go](https://github.com/altcha-org/altcha-lib-go) library, ensuring compatibility with official Altcha libraries.\n* Single, lightweight binary (less than 14MB) written in Go, suitable for resource-constrained environments like a Raspberry Pi.\n* Flexible configuration through command-line flags (`./verity --help`), environment variables (`VERITY_XXX`), and a YAML file (`./verity.yaml`).\n* Automatic secure HMAC key generation and a basic API key generator.\n* Configurable challenge algorithm (SHA256, SHA512), maximum complexity, and challenge expiration time.\n* Security features:\n    * Protection against challenge replay attacks.\n    * Dynamic adjustment of maximum complexity based on request volume.\n    * Strict enforcement of challenge expiration.\n    * API key-based authentication.\n    * Origin header checks.\n\n## Installation\n\n1.  Clone the repository: `git clone https://github.com/Flameborn/verity`\n2.  Navigate to the directory: `cd verity`\n3.  Build the binary: `go build`\n\n## Usage\n\n1.  **Generate configuration and API key:**\n    * `./verity add domain1,domain2,...` (Replace `domain1,domain2,...` with your domains). This command will generate a default configuration file and add an API key that is valid for the provided domains.\n2.  **Start the server:**\n    * `./verity`\n    * **Note:** It is strongly recommended to use a reverse proxy, such as Caddy, in front of Verity for enhanced security and performance.\n\n## API Endpoints\n\n* **Request Challenge:**\n    * `GET /api/v1/challenge?apiKey=vrty_XXX`\n    * Returns a JSON object that the official JavaScript client can process.\n* **Verify Challenge:**\n    * `POST /api/v1/challenge/verify?apiKey=vrty_XXX`\n    * The request body should contain the base64-encoded JSON representing the solved challenge (typically from the `altcha` form field).\n    * Returns a JSON object with `code` and `message` fields (e.g., `{\"code\": 200, \"message\": \"OK\"}`).\n* **Credits and Stats:**\n    * `GET /`\n    * Returns a basic HTML page with credits and server statistics.\n\n## Configuration\n\nVerity can be configured through command-line flags, environment variables, or a YAML file. For details, run `./verity --help`, and see the configuration file.\n\n## License\n\nMIT License\n\n## Contributions\n\nContributions are welcome! Testing on various devices is particularly valuable. Please feel free to submit pull requests or report issues. Every effort has been made to make Verity production-ready as much as possible for a two-day project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflameborn%2Fverity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflameborn%2Fverity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflameborn%2Fverity/lists"}