Skip to content

Commit ff485ba

Browse files
authored
Merge pull request #13 from shivram9/add-readme
Update README with project purpose and contribution guidelines
2 parents 111c476 + 0e15455 commit ff485ba

File tree

1 file changed

+90
-74
lines changed

1 file changed

+90
-74
lines changed

README.md

Lines changed: 90 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,66 @@
1-
# GitHub Avatar Frame API
1+
# 🎨 GitHub Avatar Frame API
22

3-
A free and open-source API that allows you to frame your GitHub profile picture with creative themes! Easily embed styled avatars in your README files, portfolios, or social media.
3+
A free and open-source API that lets you frame your GitHub profile picture with creative themes. Use it in your README files, portfolios, or social media to showcase styled avatars.
44

5-
---
5+
**🌐 Live API:** https://frame-api.vercel.app
66

7-
## 🌐 Live API
87

9-
Access the API at:
10-
**https://frame-api.vercel.app**
118

12-
---
9+
## 🚀 Project Purpose
1310

14-
## 📂 Usage
11+
This project is a base skeleton API that currently includes only the `code` theme. Contributors can:
1512

16-
### ✅ Frame URL format
13+
- Add new frame themes 🎨
14+
- Propose new features ⚡
15+
- Improve documentation and examples ✍️
1716

18-
`https://frame-api.vercel.app/api/frame/{theme}/{username}`
17+
The goal is to build a creative, community-driven way to style GitHub avatars.
1918

20-
- `{theme}` – The frame theme (e.g., `code`)
21-
- `{username}` – Your GitHub username
19+
## 🛠 Run Locally
2220

23-
**Example:**
21+
### Fork the Repository
22+
Click on the **Fork** button at the top right of this repository to create a copy under your GitHub account.
2423

25-
![Code Avatar](https://frame-api.vercel.app/api/frame/code/octocat)
24+
### Clone Your Fork
25+
```bash
26+
git clone https://github.com/TechQuanta/github-avatar-frame-api.git
27+
cd github-avatar-frame-api
28+
```
2629

27-
---
30+
### Install Dependencies
31+
```bash
32+
npm install
33+
```
2834

29-
### ✅ List of Available Themes
35+
### Start the Development Server
36+
```bash
37+
npm run dev
38+
```
3039

31-
Fetch all available themes dynamically:
40+
Now open: http://localhost:3000
3241

33-
`https://frame-api.vercel.app/api/themes`
42+
## 📂 Usage
3443

44+
### Frame URL Format
45+
```
46+
https://frame-api.vercel.app/api/frame/{theme}/{username}
47+
```
3548

36-
**Example response:**
49+
- `{theme}` → The frame theme (e.g., `code`)
50+
- `{username}` → Your GitHub username
51+
52+
**Example:**
53+
```
54+
https://frame-api.vercel.app/api/frame/code/octocat
55+
```
56+
57+
### List Available Themes
58+
Check all available themes dynamically:
59+
```
60+
https://frame-api.vercel.app/api/themes
61+
```
3762

63+
**Example response:**
3864
```json
3965
{
4066
"themes": [
@@ -47,73 +73,63 @@ Fetch all available themes dynamically:
4773
}
4874
```
4975

50-
### ✅ Collage Example (Optional)
51-
52-
Combine multiple avatars into one frame:
53-
54-
[https://frame-api.vercel.app/api/collage/community?users=octocat,mojombo,torvalds](https://frame-api.vercel.app/api/collage/community?users=octocat,mojombo,torvalds)
55-
56-
### 🖼 Example Themes
57-
-----------------
58-
59-
Theme Description codeTech-inspired - frame with brackets and linesopen-source Showcase, open-source contributions collaboration Highlight teamwork and partnerships hackathon Event badges with futuristic designs beginner Soft pastel frame for learnersproSleek minimalistic professional frame community, Group-oriented connecting elementsevents Calendar and schedule designs, funComic-style vibrant, framedark-modeNeon dark overlays for modern aesthetics
76+
### How to Use in README
77+
Embed a framed avatar in your README:
78+
```markdown
79+
![My Avatar](https://frame-api.vercel.app/api/frame/code/your-username)
80+
```
6081

61-
> Note: Only the code theme is included by default. Others can be added by the community following the
82+
Replace `your-username` with your actual GitHub username.
6283

63-
[CONTRIBUTING.md](./CONTRIBUTING.md)
84+
## 🤝 Contributing
6485

65-
📖 How to Use in README
86+
We welcome contributions of all kinds:
6687

67-
Embed an avatar with a frame:
88+
- **New themes** in `public/frames/`
89+
- **New features** for the API
90+
- **Documentation** updates
91+
- **Bug fixes** and improvements
6892

69-
![My Avatar](https://frame-api.vercel.app/api/frame/code/octocat)
93+
### Quick Start for Contributors:
94+
1. 🍴 Fork the repository
95+
2. 🌿 Create a new branch for your feature
96+
3. 🎨 Add your theme or improvement
97+
4. 🧪 Test your changes locally
98+
5. 📝 Submit a pull request
7099

71-
* Replace code with your desired theme
72-
73-
* Replace octocat with your GitHub username
100+
### Ways to Contribute:
101+
- 🎨 **Design new themes** - Create unique frames for different use cases
102+
- 🐛 **Fix bugs** - Help improve stability and performance
103+
-**Add features** - Implement new functionality like animated frames
104+
- 📚 **Improve docs** - Help others understand and use the project
105+
- 🧪 **Write tests** - Ensure code quality and reliability
74106

75-
* 🤝 Contribute
76-
77-
* We welcome new themes, improvements, and ideas! See [CONTRIBUTING.md](./CONTRIBUTING.md) to learn how to add themes and submit pull requests.
78-
79-
* **Contribution Flow:**
80-
81-
* Use the working base theme (code) to test the API.
82-
83-
* Add new frames or themes in public/frames/.
84-
85-
* Submit a pull request for review.
107+
👉 See [CONTRIBUTING.md](CONTRIBUTING.md) for detailed contribution steps.
108+
👉 All contributors must follow our [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md).
86109

110+
## ⚙ Tech Stack
87111

88-
### ⚙ Tech Stack
89-
90-
* **Node.js & Express.js (TypeScript)** – API backend
91-
92-
* **Sharp** – Image processing
93-
94-
* **Vercel** – Serverless deployment
95-
96-
* **MongoDB (optional)** – For caching or metadata in the future
97-
98-
* **TypeScript** – Type safety and better development experience
112+
- **Node.js & Express.js (TypeScript)** → API backend
113+
- **Sharp** → Image processing
114+
- **Vercel** → Serverless deployment
115+
- **MongoDB** (optional) → Future caching/metadata
116+
- **TypeScript** → Type safety and better development
99117

100-
### ✅ Key Features of This README:
118+
## 🔗 Links
101119

102-
* **Highlights the working base** (code theme) so users can see the API in action.
103-
104-
* **Explains URL format** and shows example usage.
105-
106-
* **Dynamic themes endpoint** explained.
107-
108-
* **Collage feature** included as optional.
109-
110-
* **Encourages contribution** with clear steps.
111-
112-
* **Professional open-source structure** matching GSSoC projects.
120+
- **Live API:** https://frame-api.vercel.app
121+
- **Contributing Guidelines:** [CONTRIBUTING.md](CONTRIBUTING.md)
122+
- **Code of Conduct:** [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md)
123+
- **Issues:** [GitHub Issues](https://github.com/TechQuanta/github-avatar-frame-api/issues)
113124

125+
## 🌟 Show Your Support
114126

115-
---
127+
If you find this project useful, please consider:
128+
-**Star this repository** - It helps others discover the project
129+
- 🐛 **Report bugs** or suggest features in [Issues](https://github.com/TechQuanta/github-avatar-frame-api/issues)
130+
- 🤝 **Contribute** new themes and improvements
131+
- 📢 **Share** it with the developer community
116132

117-
If you want, I can **now create a ready-to-use `metadata.json` template and a starter theme folder** that fits this TypeScript + Node + Sharp structure so contributors know exactly how to add new themes.
133+
## 📜 License
118134

119-
Do you want me to do that next?
135+
This project is licensed under the MIT License.

0 commit comments

Comments
 (0)