An easy & free way to collect sponsorships for your projects.
MIT License
After creating a project on the website you can embed a script to generate the widget.
via script
<script src="https://app.sponsor.ninja/widget.js"></script>
<script>
new SponsorNinja({
id: 'your-project-id',
target: '#widget-container',
})
</script>
via npm
// npm i sponsor-ninja-widget --save
import { SponsorNinja } from 'sponsor-ninja-widget'
new SponsorNinja({
id: 'your-project-id',
target: '#widget-container'
})
You can pass following optional options:
This is a Next.js application that handles the login and the creation of projects. It also provides the API that gets called by the widget.
git clone https://github.com/Vincenius/sponsor-ninja.git
cd sponsor-ninja/app
npm install
users
, projects
and donations
.env.dist
file to .env.local
and set environment variables as described in the file
npm run dev
This is a webpack project that creates the widget.js and the npm package, which needs to be included on the page
git clone https://github.com/Vincenius/sponsor-ninja.git
cd sponsor-ninja/widget
npm install
.env
file with your own values
npm run dev
index.html
in your browser for a widget preview/widget/widget.js
into /app/public/widget.js
to provide the script