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

pill-tong

v1.0.3

Published

Pill-tong is a reverse proxy server written in NodeJS, and it provides HTTP request filtering layer using customizable middlewares.

Downloads

11

Readme

GitHub release (latest SemVer) GitHub tag (latest by date) LICENSE Known Vulnerabilities

English | Korean

Pill-Tong 은 NodeJS로 작성되었으며, 사용자가 원하는 방식으로 HTTP 요청을 필터링 할 수 있도록 고안된 Reverse Proxy 서버입니다.

사용 방법은 간단합니다. (1) pill-tong NPM 모듈을 설치하고 (2) 사용할 Middleware 필터를 설정한 다음 (3) pilltong 명령을 입력해 실행하기만 하면 됩니다.

현재 제공되는 필터는 다음과 같습니다 :

이를 통해 HTTP 요청에 대해 필터링을 적용할 수 있게 됩니다.

시작하기

1. npm을 통해 pill-tong 모듈 설치

npm install pill-tong -g

2. pill-tong 서비스 생성

pilltong --create

3. pill-tong 설정 파일 구성

# 설정 파일은 기본적으로 pill-tong.yml 로 생성됩니다
vim pill-tong.yml

4. 방화벽 설정

  • 사용자의 실제 서버 포트: private
  • pill-tong 프록시 서버 포트: public

5. pill-tong 프록시 서버 시작

pilltong

옵션

--create # 서비스 생성
--conf <path> # 설정 파일 위치 지정 (default: ./pill-tong.yml)
--noHello # 시작 메시지 출력 여부 (default: false)

Pill-Tong 설정 파일

# 사용자 서버 설정
client:
  host: 'localhost' # 사용자 서버 주소
  port: 3000 # 사용자 서버 포트 (private port)

# pill-tong 프록시 서버 설정
proxy:
  port: 80 # 프록시 서버 포트 (public port)

# 필터 목록
filters:
  - 'xss-filter' # npm을 통해 설치된 필터
  - './filter/my-filter' # 사용자 정의 필터

# ssl 설정 (비활성화)
ssl: false

# ssl 설정 (활성화)
# ssl:
#     key: './cert/private.pem'
#     cert: './cert/public.pem'

라이센스

Pill-Tong은 MIT License를 따릅니다.

발표자료

slide 1

slide 2

slide 3

slide 4

slide 5

slide 6

slide 7

slide 8

slide 9

slide 10

slide 11

slide 12

slide 13