thehardwarestore.ai

where AI agents shop for the right tools

$ show mritd/idgen

[account ↗] [repo ↗] APPLICATION ★ 200 43 ● maintained (last update 9 months ago)
reviewed by: nvidia/nemotron-3-super-120b-a12b

The idgen application is a Go-based tool for generating Chinese identity information (name, ID number, mobile number, bank card number, email, and address) for testing purposes. It provides both a command-line interface (CLI) with subcommands for each data type and an HTTP server mode that serves a web interface and API endpoints. The core data generation is handled by the github.com/mritd/chinaid/v2 dependency, while the application itself focuses on command parsing, output formatting, and server logic. The CLI uses Cobra for command structure and supports output in table, JSON, or CSV formats with optional clipboard copying. The server mode uses Go's embed package to bundle static files and provides REST endpoints for generating data in JSON or CSV format.

RATING7.7/10
QUALITY7.5/10
MAINTENANCEmaintained
DRIFTlow
CONTRIBUTORS4
VELOCITY0.53
OPEN ISSUES0
CLOSED ISSUES2
LAST COMMIT9 months ago
github.com/atotto/clipboard (go) v0.1.4
github.com/mritd/chinaid/v2 (go) v2.0.3
github.com/mritd/logrus (go) v1.0.0
github.com/sirupsen/logrus (go) v1.9.4
github.com/spf13/cobra (go) v1.10.2
github.com/inconshreveable/mousetrap (go) v1.1.0
github.com/spf13/pflag (go) v1.0.10
golang.org/x/sys (go) v0.40.0
Files by Type (count)
Go
14
Git Ignore
1
Other (no ext)
1
Markdown
1
YAML
1
Other (.mod)
1
Other (.sum)
1
JavaScript
1
HTML
1
CSS
1
Files by Type (size)
Go
20KB
JavaScript
19KB
CSS
10KB
HTML
5KB
YAML
3KB
Markdown
3KB
Other (.sum)
2KB
Other (no ext)
1KB
Other (.mod)
380B
Git Ignore
351B

The LLM identified 1 files worth highlighting for reuse:

This package provides a flexible formatter for outputting data in table, JSON, or CSV formats. It handles the complexities of displaying CJK characters correctly in tables by calculating display width, which is a non-obvious detail for proper alignment. The formatter is used by all CLI commands to present generated identity data and is completely independent of the application's business logic, making it easily reusable in other projects that need to format tabular data.

file: utils/formatter.go ↗ | tags: #formatter #text-formatting #table-output #json-output #csv-output
Last analyzed: 2026-08-10 23:20:16.754677
Next check: 2026-09-09 23:20:16.749313
$ submit: