Contributing to dmcheck
April 7, 2026 · View on GitHub
Thanks for your interest in contributing! Here's how you can help.
Adding a Translation
- Copy
static/lang/en.jsontostatic/lang/<code>.json(e.g.fr.json) - Translate all values (keep the keys unchanged)
- Add the language code to the
SUPPORTED_LANGSarray instatic/app.js - Add the language to the
supportedLangsmap inmain.go - Add a
<option>to the language switcher instatic/index.html - Submit a pull request
Adding a WHOIS Server
- Edit
config/whois-servers.json— add an entry mapping the TLD to its WHOIS server - Test with
go run .and query a domain with that TLD - Submit a pull request
Adding a Default TLD
- Edit
config/default-tlds.json— add the TLD to the array - Also update the
DEFAULT_TLDSarray instatic/app.jsto match - Submit a pull request
Development Setup
# Run the server
go run .
# The server starts at http://localhost:3300
# Static files are embedded, so changes to static/ require a restart
# Optional: start Redis for caching
redis-server
Pull Request Guidelines
- Keep PRs focused on a single change
- Test your changes locally before submitting
- For translations, ensure all keys from
en.jsonare present - For code changes, run
go build .to verify compilation