
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
securexpress
Advanced tools
Advanced Express middleware for encryption, performance, DDoS protection and anti-scraping.
SecureXpress adalah middleware all-in-one untuk Express.js yang menggabungkan keamanan, performa, dan kemudahan konfigurasi dalam satu paket. Fitur utama meliputi:
Ideal untuk API modern yang membutuhkan keamanan tinggi dan performa optimal.
npm install securexpress
const express = require('express');
const securexpress = require('securexpress');
const app = express();
app.use(express.text()); // Wajib jika enableEncryption: true
app.use(securexpress({
secretKey: '12345678901234567890123456789012' // Kunci AES-256 (32 karakter)
}));
app.post('/api', (req, res) => {
res.send({ message: 'Halo dunia terenkripsi!' });
});
app.listen(3000, () => console.log('Server berjalan di port 3000'));
Opsi | Tipe | Default | Deskripsi |
---|---|---|---|
secretKey | string | - | Kunci AES-256 (wajib, 32 karakter) |
enableEncryption | boolean | true | Aktifkan enkripsi/dekripsi otomatis |
enableDDoS | boolean | true | Proteksi rate-limiting terhadap DDoS |
enableScrapingGuard | boolean | true | Deteksi bot, scraping, dan header mencurigakan |
enablePerformanceBoost | boolean | true | Aktifkan kompresi dan header caching |
enableTrafficQueue | boolean | true | Antrekan request saat lonjakan trafik |
enableCDNAwareness | boolean | true | Tambahkan header X-Cache-Key untuk CDN |
enablePromoHeader | boolean | true | Tambahkan header X-Powered-By dan promosi package |
enableEncryption: false
:
express.json()
alih-alih express.text()
.Cache-Control: public, max-age=300
.X-Cache-Key
berbasis cookie, User-Agent, dan language.Default header:
X-Powered-By: securexpress
X-SecureXpress-Promo: Protect your API with https://www.npmjs.com/package/securexpress2
Nonaktifkan dengan enablePromoHeader: false
.
app.use(securexpress({
secretKey: '12345678901234567890123456789012',
enableEncryption: true,
enableDDoS: true,
enableScrapingGuard: true,
enablePerformanceBoost: true,
enableTrafficQueue: true,
enableCDNAwareness: true,
enablePromoHeader: true
}));
Dikembangkan oleh [KANGWIFI]
GitHub: @Yz776
Website: kangwifi
MIT © 2025
Jika menyukai proyek ini, silakan:
FAQs
Advanced Express middleware for encryption, performance, DDoS protection and anti-scraping.
The npm package securexpress receives a total of 1 weekly downloads. As such, securexpress popularity was classified as not popular.
We found that securexpress 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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.