1
2
Fork
You've already forked ghnation
0
GitHub Repository Nation & Company Analysis
  • TypeScript 63.9%
  • Vue 30.6%
  • HTML 5.4%
  • Stylus 0.1%
2026年01月23日 12:59:21 +01:00
.vscode here it is! 2026年01月22日 21:52:42 +01:00
locales here it is! 2026年01月22日 21:52:42 +01:00
public here it is! 2026年01月22日 21:52:42 +01:00
src here it is! 2026年01月22日 21:52:42 +01:00
.gitignore here it is! 2026年01月22日 21:52:42 +01:00
.rsyncignore here it is! 2026年01月22日 21:52:42 +01:00
icon.png here it is! 2026年01月22日 21:52:42 +01:00
index.html Visitor tracking via plausible 2026年01月23日 12:57:15 +01:00
package.json Fix build 2026年01月23日 12:59:21 +01:00
README.md here it is! 2026年01月22日 21:52:42 +01:00
vite.config.ts here it is! 2026年01月22日 21:52:42 +01:00
vitest-setup.ts here it is! 2026年01月22日 21:52:42 +01:00

🌍 GitHub Nation Analyzer

Discover the geographic origin of any open source project. Analyze GitHub repositories to find out which country or company is behind them.

Source Code: codeberg.org/holtwick/ghnation

Features

  • Country Detection - Identifies the likely country of origin based on multiple data sources
  • Timezone Analysis - Analyzes commit timestamps to estimate developer working hours and timezone
  • Contributor Mapping - Maps contributor locations to understand geographic distribution
  • Organization Detection - Identifies corporate affiliations from GitHub organizations
  • Email Domain Analysis - Extracts company affiliations from commit email domains
  • Network Analysis - Analyzes follower/following networks for users without location data
  • 130k+ Cities Database - Uses comprehensive geo-database for accurate location lookups

How It Works

The analyzer combines multiple signals to determine a repository's geographic origin:

  1. Owner Location - Direct location from the repository owner's profile
  2. Commit Timezones - Peak activity hours reveal likely timezone
  3. Contributor Locations - Geographic distribution of all contributors
  4. Organization Memberships - Known company organizations
  5. Email Domains - Corporate email patterns in commit history
  6. Bio & Website Analysis - Text analysis for location hints

Tech Stack

  • Frontend: Vue 3 + TypeScript
  • Backend: Zerva (Node.js)
  • Geo Database: city-timezones, countries-and-timezones
  • UI Components: oui-kit
  • Styling: Stylus

Getting Started

Prerequisites

  • Node.js 18+
  • pnpm

Installation

# Install dependencies
pnpm install
# Start development server
pnpm dev

The app will be available at http://localhost:8080

GitHub Token (Optional)

For higher API rate limits, you can add a GitHub Personal Access Token in the app settings. Create one at github.com/settings/tokens.

Usage

  1. Enter a GitHub repository URL or owner/repo format
  2. Click "Analyze"
  3. View the detected country, company, and confidence scores
  4. Explore detailed analysis including timezone, contributors, and sources

API Limitations

  • Without a token: 60 requests/hour
  • With a token: 5,000 requests/hour

Each analysis uses multiple API calls (repo info, contributors, commits, etc.), so a token is recommended for frequent use.

License

This project is licensed under the European Union Public License 1.2 (EUPL-1.2).

See LICENSE or https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12 for details.

Contributing

Contributions are welcome! Please feel free to submit issues and pull requests.

Acknowledgments

Author

Dirk Holtwick - holtwick.de