A simple utility to let developers know your project is open source and highlight the frameworks/technologies used in your project with beautiful icons.
- 🎨 Display frameworks/technologies used with their icons
- 🔗 Show repository link
- 📢 Customizable open source message
- ⚙️ Highly configurable options
npm install opensourcerepository
# or
yarn add opensourcerepository
Basic usage:
import { OpenSource } from 'opensourcerepository';
import * as packageJSON from '../package.json';
// Initialize with package.json
OpenSource({ package: packageJSON });
Advanced usage with custom options:
import * as packageJSON from '../package.json';
OpenSource({
package: packageJSON,
showMessage: true,
showPackages: true,
message: "✨ Contributions are welcome!",
repoLink: "https://github.com/yourusername/yourrepo",
buildWith: [
// Optional: Override detected frameworks
{ name: "TypeScript", icon: "..." },
{ name: "React", icon: "..." }
]
});
Option | Type | Default | Description |
---|---|---|---|
package |
Record<string, any> |
Required | Your project's package.json |
showMessage |
boolean |
true |
Show open source message |
showPackages |
boolean |
true |
Show frameworks used |
message |
string |
"🚀 We're open source and open to contributions!" | Custom message |
repoLink |
string |
Auto-detected | Repository URL |
buildWith |
Array |
Auto-detected | Override detected frameworks |
Contributions are always welcome! Here's how you can contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature
) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
- Clone the repository
- Install dependencies:
yarn install
# or
npm install
- Start development:
yarn dev
# or
npm run dev
MIT
If you like this project, please give it a ⭐️!