spnsr
v1.0.2
Published
Embeddable sponsorship badges for Solana projects
Maintainers
Readme
spnsr
Embeddable donation badges for Solana projects.
Installation
npm install spnsrBasic Usage
import { Spnsr } from 'spnsr'
function MyProject() {
return (
<div>
<h1>My Solana Project</h1>
<Spnsr projectId='your-project-id' />
</div>
)
}Props
| Prop | Type | Default | Description |
| ------------ | ---------------------------------- | ------------ | -------------------------- |
| projectId | string | required | Your project ID from spnsr |
| theme | 'default' \| 'dark' \| 'minimal' | 'default' | Visual theme |
| size | 'sm' \| 'md' \| 'lg' | 'md' | Badge size |
| showAmount | boolean | true | Show raised SOL amount |
| showGoal | boolean | false | Show funding goal progress |
| className | string | '' | Additional CSS classes |
Examples
Dark Theme with Progress
<Spnsr
projectId='abc123'
theme='dark'
showGoal={true}
size='lg'
/>Minimal Style
<Spnsr
projectId='abc123'
theme='minimal'
showAmount={false}
size='sm'
/>Getting Project ID
- Visit spnsr.ndao.computer
- Connect your Solana wallet
- Create your project
- Copy project ID from dashboard
How It Works
- User clicks badge to open donation interface
- Connects with Phantom, Solflare, or other Solana wallets
- SOL donations processed directly on Solana blockchain
- Badge updates with new funding totals in real-time
TypeScript Support
import { Spnsr, SpnsrProps } from 'spnsr'
const MyComponent: React.FC = () => {
const badgeProps: SpnsrProps = {
projectId: 'abc123',
theme: 'dark',
size: 'lg',
}
return <Spnsr {...badgeProps} />
}Repository
- Platform: spnsr.ndao.computer
- GitHub: github.com/nothingdao/spnsr
- Issues: github.com/nothingdao/spnsr/issues
License
MIT
