npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pandoraswall

v1.0.2

Published

Simple Starter NodeJS module to protect Runtime Code and Memory From Injections

Downloads

172

Readme

Pandoras Wall

  • Author: Johnathan Edward Brown https://github.com/Vampeyer

  • Help From: Jake Thompson https://github.com/Vampeyer <- Taught me, Helped me study and learn Proper standard defense measures for protecting the public! <- Donate to him to show appreciation for this project! I could careless about donations! I just want to see the world be in a more secured state of mind along with developers!

  • Credits Too: https://js2ts.com/

  • When you want to keep the bad stuff out of your express or koa servers! we got you covered!

  • Simple Runtime Detection Middleware which can easily be hooked up to any existing NodeJS Application

  • Not Really The Best Way To Secure An Application But When One Wants to Take a Zero Trust Approach Use Our PandorasWall! For warnings This Doesnt Stop Injects of runetime this only prevents the execution of malicious code via the runetime by using a immediate shutdown approach this can obviously be used as a denial of service attack vector!

  • Please ensure your application may not pose any runetime backdoors to avoid the potential denial of service This is only a Immediate Failsafe aka Panic button to immediately Stop runetime upon infections!

  • This could be used for study purposes on how the runetime gets injected.

How to install and use

CommonJS Usage

const express = require('express');
const { PandorasWallSource } = require('pandoraswall');
const app = express();
const port = 3000;
const PandorasWall = new PandorasWallSource(this);
//Must Set ExpressApp to the PandorasWall for it to middleware the app!
PandorasWall.setExpressApp(app, PandorasWall.getExpressString(), Symbol(PandorasWall.getExpressString())); // We Require 3 Because 3 is better then 1... Just common sense!
//Only problems I have to solve for this design pattern is when sometimes the runetime dynamically changes the objects it throws false positives thus server gets restarted as it should!
//But Still Seems kinda sad restricted to that one Oh Welp Though This is the best we have to work with in todays world!
app.get('/', (req, res) => {
  res.send('Hello World!');
});

app.listen(port, () => {
  console.log(`Server is running on http://localhost:${port}`);
});

Typescript Usage

import express, { Request, Response } from 'express';
import { PandorasWallSource } from 'pandoraswall'
const app = express();
const port = 3000;
const PandorasWall = new PandorasWallSource(this);
//Must Set ExpressApp to the PandorasWall for it to middleware the app!
PandorasWall.setExpressApp(app, PandorasWall.getExpressString(), Symbol(PandorasWall.getExpressString())); // We Require 3 Because 3 is better then 1... Just common sense!
//Only problems I have to solve for this design pattern is when sometimes the runetime dynamically changes the objects it throws false positives thus server gets restarted as it should!
//But Still Seems kinda sad restricted to that one Oh Welp Though This is the best we have to work with in todays world!
app.get('/', (req: Request, res: Response) => {
  res.send('Hello World!');
});

app.listen(port, () => {
  console.log(`Server is running on http://localhost:${port}`);
});