SpamJammer is an API-first anti-spam engine built for developers. Sub-50ms latency. 99.9% detection accuracy. Drop it into any stack with three lines of code. Email, forms, comments — covered.
npm install @spamjammer/sdk
SpamJammer ships SDKs for every major language plus a simple REST API. Pick your stack and start blocking spam in under five minutes.
# Check a message for spam curl -X POST https://api.spamjammer.com/v1/check \ -H "Authorization: Bearer sj_live_..." \ -H "Content-Type: application/json" \ -d '{ "content": "Buy now! Free money!", "type": "email" }' # Response (23ms) { "spam": true, "score": 0.98, "category": "promotional", "action": "block" }
import spamjammer # Initialize client client = spamjammer.Client("sj_live_...") # Check a message result = client.check( content="Buy now! Free money!", type="email" ) if result.spam: print(f"Blocked: {result.category} (score: {result.score})") # Output: Blocked: promotional (score: 0.98)
import { SpamJammer } from '@spamjammer/sdk'; // Initialize client const sj = new SpamJammer('sj_live_...'); // Check a message const result = await sj.check({ content: 'Buy now! Free money!', type: 'email' }); if (result.spam) { console.log(`Blocked: ${result.category}`); } // Output: Blocked: promotional
package main import ( "fmt" "github.com/spamjammer/go-sdk" ) func main() { client := spamjammer.New("sj_live_...") result, err := client.Check(spamjammer.CheckRequest{ Content: "Buy now! Free money!", Type: "email", }) if result.Spam { fmt.Printf("Blocked: %s (%.2f)\n", result.Category, result.Score) } }
require 'spamjammer' # Initialize client client = SpamJammer::Client.new('sj_live_...') # Check a message result = client.check( content: 'Buy now! Free money!', type: 'email' ) if result.spam? puts "Blocked: #{result.category} (#{result.score})" end # Output: Blocked: promotional (0.98)
Measured on production traffic across all regions. P99 latency under 100ms. Numbers updated weekly from our observability pipeline.
| Metric | SpamJammer | Akismet | CleanTalk | reCAPTCHA |
|---|---|---|---|---|
| Avg Latency | <50ms | ~300ms | ~200ms | ~500ms (client) |
| P99 Latency | <95ms | ~800ms | ~450ms | ~1200ms |
| Detection Rate | 99.9% | 99.5% | 98.2% | 97.0% |
| False Positive Rate | 0.01% | 0.10% | 0.25% | 0.50% |
| API-First | Yes | Yes | Yes | No (widget) |
| Batch Support | Up to 1000/req | No | No | No |
| Custom Rules | Yes (DSL) | No | Limited | No |
| Webhooks | Yes | No | No | No |
Every feature ships with full API coverage, webhooks, and documentation. No UI lock-in — everything is programmable.
OpenAPI 3.1 spec. Versioned endpoints. Rate limiting with exponential backoff. Idempotency keys supported.
POST /v1/checkTransformer-based model retrained hourly on global spam corpus. Custom model fine-tuning available on Enterprise.
model: sj-v3-turboDefine blocking rules with a JSON-based DSL. Regex patterns, keyword lists, geo-fencing, header inspection.
rules.evaluate(msg)Real-time event delivery via webhooks. HMAC-signed payloads. Retry with exponential backoff. Event replay API.
webhook.verify(sig)Submit up to 1,000 messages per request. Async batch jobs with callback URL. Progress tracking via API.
POST /v1/batchEmail, form submissions, blog comments, chat messages, SMS. Unified scoring model across all channels.
type: "email" | "form" | ...Real-time metrics, trend analysis, geographic heatmaps. Export via API or CSV. Grafana integration available.
GET /v1/analyticsSAML 2.0 and OIDC single sign-on. Role-based access control with granular permissions. Audit log API.
scope: "admin:write"Official SDKs for Node.js, Python, Go, Ruby, Java, PHP, .NET. Community SDKs for Rust, Elixir, Swift.
npm i @spamjammer/sdkSpamJammer sits between your application and your users. A single API call before you persist or deliver any user-generated content.
Free tier available. No credit card required. 10,000 checks/month included.
npm install @spamjammer/sdk