
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.
Site | NPM Module | GitHub Repo
Slapform is the official npm module for Slapform, a backend form processing service for contact forms, payment forms, and more—perfectly suited for static sites.
Go to slapform.com/dashboard/forms/new to create your form. Copy the Form ID when you're done.
Script tag (no build tools needed):
<script src="https://cdn.jsdelivr.net/npm/slapform@latest/dist/slapform.min.js"></script>
<script>
var slapform = new Slapform();
slapform.submit('YOUR_FORM_ID', {
name: 'Jon Snow',
message: 'Hello World!',
})
.then(function (response) {
console.log('Success!', response);
})
.catch(function (error) {
console.error('Failed:', error.message);
});
</script>
NPM:
npm install slapform
// ESM
import Slapform from 'slapform';
// CommonJS
const Slapform = require('slapform');
const slapform = new Slapform({ formId: 'YOUR_FORM_ID' });
const response = await slapform.submit({
name: 'Jon Snow',
message: 'Hello World!',
});
You can use Slapform without any JavaScript by pointing your HTML form's action to the API:
<form method="POST" action="https://api.slapform.com/YOUR_FORM_ID">
<input type="email" name="email">
<textarea name="message"></textarea>
<button type="submit">Submit</button>
</form>
new Slapform(options)| Option | Default | Description |
|---|---|---|
formId | '' | Your form ID (also accepts form) |
endpoint | 'https://api.slapform.com' | API endpoint |
slapform.submit(formId?, data, options?)Submits form data. Returns a promise that resolves with the API response.
formIdformId and endpoint// Pass formId inline
slapform.submit('YOUR_FORM_ID', { message: 'Hello' });
// Or use the constructor default and just pass data
const sf = new Slapform({ formId: 'YOUR_FORM_ID' });
sf.submit({ message: 'Hello' });
// Override formId via options
sf.submit({ message: 'Hello' }, { formId: 'DIFFERENT_FORM_ID' });
Use special field names to trigger server-side behavior:
slapform.submit('YOUR_FORM_ID', {
name: 'Jon Snow',
message: 'Hello World!',
slap_subject: 'My Favorite Message',
slap_replyto: 'custom@replyto.com',
slap_debug: false,
slap_honey: '',
});
See the name trigger documentation for details.
npm start # Watch mode - rebuilds on file changes
npm run build # One-time build (ESM, CJS, IIFE)
npm test # Run tests
| File | Format | Use case |
|---|---|---|
dist/index.mjs | ESM | import in modern bundlers |
dist/index.js | CJS | require() in Node.js |
dist/slapform.min.js | IIFE (minified) | <script> tag / CDN |
MIT
FAQs
Easily send submission to Slapform, your favorite form backend service.
The npm package slapform receives a total of 12 weekly downloads. As such, slapform popularity was classified as not popular.
We found that slapform 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.