{"id":42066029,"url":"https://github.com/z0rr0/inngen","last_synced_at":"2026-01-26T08:12:17.154Z","repository":{"id":319976678,"uuid":"1080306558","full_name":"z0rr0/inngen","owner":"z0rr0","description":"Taxpayer Identification Number (INN) generator","archived":false,"fork":false,"pushed_at":"2025-11-15T18:28:49.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-15T20:34:02.554Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/z0rr0.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-21T07:17:58.000Z","updated_at":"2025-10-23T09:09:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"19c1a69a-fe97-4617-9c46-95c08d9ba238","html_url":"https://github.com/z0rr0/inngen","commit_stats":null,"previous_names":["z0rr0/inngen"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/z0rr0/inngen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0rr0%2Finngen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0rr0%2Finngen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0rr0%2Finngen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0rr0%2Finngen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/z0rr0","download_url":"https://codeload.github.com/z0rr0/inngen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/z0rr0%2Finngen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28770250,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T07:45:00.504Z","status":"ssl_error","status_checked_at":"2026-01-26T07:45:00.070Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-26T08:12:16.330Z","updated_at":"2026-01-26T08:12:17.149Z","avatar_url":"https://github.com/z0rr0.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# INNGen\n\n![Go](https://github.com/z0rr0/inngen/workflows/Go/badge.svg)\n![Version](https://img.shields.io/github/tag/z0rr0/inngen.svg)\n![License](https://img.shields.io/github/license/z0rr0/inngen.svg)\n\nTaxpayer Identification Number (INN) generator and validator\n\n## Description\n\nThis is a mixed application that can be run as:\n\n1. A console tool to generate and validate Taxpayer Identification Numbers (INN)\n2. A web application for the same purposes\n\n## Features\n\n- **Validate INN**: Check if an INN is valid (supports both 10-digit juridical and 12-digit physical person INNs)\n- **Generate Physical Person INN**: Create valid 12-digit INNs for physical persons\n- **Generate Juridical Person INN**: Create valid 10-digit INNs for juridical persons\n- **Web Interface**: User-friendly web application with all functionality\n\n## Installation\n\n```bash\nmake build\n# result file: inngen\n```\n\n## Usage\n\n### Console Tool\n\n#### Validate INN\n\n```bash\n./inngen -c \u003cINN\u003e\n```\n\nExample:\n```bash\n./inngen -c 7707083893\n# Output: INN 7707083893 is valid (juridical person)\n\n./inngen -c 500100732259\n# Output: INN 500100732259 is valid (physical person)\n\n./inngen -c 500100732250\n# Output: INN 500100732250 invalid: invalid INN checksum: invalid physical inn, 12th digit is 0, expected 9\n```\n\n#### Generate INNs\n\n```bash\n./inngen -f [count] -j [count]\n```\n\nIf no count is specified, generates 5 INNs by default.\n\nExample:\n```bash\n./inngen -f 0\n# No INNs generated for physical persons\n\n./inngen -f 3\n# Generates 3 INNs for physical persons and 5 for juridical ones\n\n./inngen -f 2 -j 3\n# Generates 2 INNs for physical persons and 3 for juridical ones\n```\n\n#### Run as Web Application\n\nIn development yet!\n\n```bash\n./inngen -w\n```\n\nThis starts a web server on `127.0.0.1:2288` by default.\nOpen your browser and navigate to `http://127.0.0.1:2288` to use the web interface.\n\n### Web Application\n\nThe web interface provides:\n\n- **Validation form**: Enter an INN to check if it's valid\n- **Physical person generator**: Generate multiple valid 12-digit INNs\n- **Juridical person generator**: Generate multiple valid 10-digit INNs\n\n## INN Format\n\n- **Physical Person (12 digits)**: Uses two checksum digits (positions 11 and 12)\n- **Juridical Person (10 digits)**: Uses one checksum digit (position 10)\n\nThe checksums are calculated using specific coefficients according to Russian INN validation rules.\n\n## Testing\n\nRun tests:\n\n```bash\nmake test\n```\n\nRun benchmarks:\n\n```bash\nmake bench\n```\n\n## License\n\nThis source code is governed by a [BSD 3-Clause](https://opensource.org/licenses/BSD-3-Clause)\nlicense that can be found in the [LICENSE](https://github.com/z0rr0/inngen/blob/main/LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz0rr0%2Finngen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fz0rr0%2Finngen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fz0rr0%2Finngen/lists"}