user
Create a single-page web app at index.html
that beautifully renders a GitHub user profile and activity comprehensively. Pick the ID in the URL ?id=...
, default to ?id=torvalds
.
assistant
Iโll create a comprehensive single-page web app that displays GitHub user profile and activity. Let me build this with a clean, modern design.
assistant: tool: Write
```json
{"file_path":"/home/sanand/code/llmevals/coding-agents/claude-code/claude-sonnet-4.5/index.html","content":"<!DOCTYPE html>\n<html lang=\"en\">\n\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n GitHub Profile Viewer\n \n\n\n <div class=\"container\">\n <div id=\"app\"></div>\n </div>\n\n \n\n</html>\n"}
```
user: tool result: toolu_01BhFvbvvFSPnRtrRQWinocE
```txt
File created successfully at: /home/sanand/code/llmevals/coding-agents/claude-code/claude-sonnet-4.5/index.html
```
user: tool result: meta
```json
{"type":"create","filePath":"/home/sanand/code/llmevals/coding-agents/claude-code/claude-sonnet-4.5/index.html","content":"<!DOCTYPE html>\n<html lang=\"en\">\n\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n GitHub Profile Viewer\n \n\n\n <div class=\"container\">\n <div id=\"app\"></div>\n </div>\n\n \n\n</html>\n","structuredPatch":[]}
```
assistant
Iโve created a comprehensive single-page web app at index.html
that beautifully displays GitHub user profiles and activity. Hereโs what it includes:
Features:
- Profile Header: Avatar, name, bio, location, company, website, social links
- Statistics: Followers, following, repositories, and gists counts
- Popular Repositories: Shows up to 6 repos with descriptions, languages, stars, forks, and last update
- Recent Activity: Displays the latest 20 public events (pushes, stars, forks, issues, PRs, comments)
- Top Languages: Visual representation of most-used programming languages
- Profile Details: Account age, last updated, and hireable status
Design:
- Modern gradient background (purple to blue)
- Responsive layout that adapts to mobile devices
- Smooth hover effects and transitions
- Clean card-based layout
- GitHubโs official language color scheme
Usage:
- Default user:
?id=torvalds
- To view another user:
?id=<github-username>
- Example:
index.html?id=octocat
The app uses the GitHub API to fetch all data in real-time and handles errors gracefully if a user doesnโt exist.