FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
stevekrouse

stevekrouse

github-user-email

Get the email address for GitHub username
Public
Like
5
github-user-email
Home
Code
4
README.md
commits.ts
events.ts
examples.ts
Branches
3
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
8/1/2025
Viewing readonly version of main branch: v163
View latest version
README.md

Get Email Address from a GitHub Username

It's an open secret that you can find the email address from most GitHub users: it's in the git commit history! In the past, I would close repos and use git log to pull it out, but recently I learned that you can do it fairly easily via the GitHub API.

Create val
import { emailFromEvents } from "https://esm.town/v/stevekrouse/github-user-email/events.ts"; const emails = await emailFromEvents("stevekrouse"); console.log(emails); // [ "steveykrouse@gmail.com" ]
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.