
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
simple-donation
Advanced tools
A customizable donation component for Nuxt 3 and Nuxt 4 projects, with PayPal integration for one-time donations in EUR.
You can see it in action at https://wikiherbalist.com/donazioni.
npm install simple-donation
# or
yarn add simple-donation
Add the module to your nuxt.config.ts as described in the Configuration section.
Create a .env file in your project root and add your PayPal client ID:
PAYPAL_CLIENT_ID=your_paypal_client_id_here
Once installed and configured, add the component to any page or component:
<template>
<div>
<h1>Support our project</h1>
<SimpleDonation />
</div>
</template>
Configure the module in nuxt.config.ts:
export default defineNuxtConfig({
modules: [
['simple-donation', {
paypal: {
clientId: process.env.PAYPAL_CLIENT_ID
},
colors: {
primary: '#3B82F6', // main buttons and highlights
secondary: '#1E40AF', // secondary elements
accent: '#60A5FA', // accents and focus states
background: '#FFFFFF' // component background
}
}]
]
})
Use the lang prop to set the component language. Supported values: en, it, es, fr, de. Defaults to en.
<SimpleDonation lang="it" />
All UI labels, step names, button text, and default FAQ content will be displayed in the chosen language.
The four color options available are:
primary: main color for buttons and highlightssecondary: used for secondary elements and hover statesaccent: used for accents and focus statesbackground: background color of the componentPass a faqs prop to override the default FAQ items shown in the sidebar:
<template>
<div>
<SimpleDonation lang="it" :faqs="customFaqs" />
</div>
</template>
<script setup>
const customFaqs = [
{
question: 'Come vengono utilizzate le donazioni?',
answer: 'Le donazioni supportano lo sviluppo e la manutenzione del progetto.'
},
{
question: 'Il sistema è sicuro?',
answer: 'Sì, tutte le transazioni utilizzano sistemi con elevati livelli di sicurezza.'
},
{
question: 'Posso fare una donazione ricorrente?',
answer: 'Al momento supportiamo solo donazioni una tantum.'
}
]
</script>
Each FAQ item needs a question and an answer property. HTML is allowed and automatically sanitized.
Contributions are welcome. Feel free to open an issue or submit a pull request on GitHub.
This project is open source and available under the MIT License.
FAQs
A customizable donation module for Nuxt 3 projects
We found that simple-donation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.