Package Exports
- penjaro-network-security-library-javascript
- penjaro-network-security-library-javascript/dist/library.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (penjaro-network-security-library-javascript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Penjaro Network Security
This repository contains network security middleware libraries for both JavaScript and Python web applications. The libraries are designed to provide comprehensive security features including rate limiting, threat intelligence integration, and response analysis.
Repository Structure
This repository is organized into two independent packages:
penjaro-js-package: JavaScript/TypeScript implementation
- Supports Express, Fastify, Koa, Hapi, and NestJS frameworks
- Provides middleware or proxy-based security features
- TypeScript support with full type definitions
penjaro-python-package: Python implementation
- Supports Flask, Django, FastAPI, Bottle, Sanic, and Tornado frameworks
- Offers framework-specific adapters for seamless integration
- Redis support for distributed deployments
Each package can be used independently and has its own documentation and installation process.
Features
Both libraries provide the following security features:
- Rate Limiting: Prevent brute-force and DoS attacks by limiting request rates
- Threat Intelligence: Block known malicious IPs using configurable blocklists
- Security Pattern Detection: Identify and block common attack patterns
- Response Analysis: Prevent sensitive data leaks in responses
- Framework-Specific Integration: Adapters for popular web frameworks
Getting Started
JavaScript Library
cd penjaro-js-package
npm install
npm run buildSee the JavaScript README for detailed usage instructions.
Python Library
cd penjaro-python-package
pip install -e .See the Python README for detailed usage instructions.
Testing
Each package includes its own test suite to verify functionality.
JavaScript Tests
cd penjaro-js-package
npm testPython Tests
cd penjaro-python-package
python tests/run_tests.pyLicense
MIT