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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ky2

v0.0.1

Published

Private Blockchain for Keep Your Endeavor Service with OSAM 2022

Readme

로드밸런싱

Kafka TopicGroupid 를 활용해서 하나의 블록체인 프로토콜에서 서로 간섭받지 않는 채널을 생성할 수 있습니다.

노드

콘솔

React를 기반으로 제작한 블록체인 콘솔입니다.

피어

다른 피어와 원장을 공유하며 블록체인을 일치시키는 역할을 진행합니다.

블록체인 설치 및 실행 방법

아래와 같은 환경을 권장합니다. |service|version| |--|--| |NodeJS|v14| |Kafka|3.2.x| |Couchbase ottoman|v2| |Docker|20.10.14|

프로젝트 실행방법은 npmdocker 두 가지 방식이 있습니다.

1. 도커 실행 방식

KY2 도커 이미지 를 빌드해서 자동으로 개발환경을 세팅한 후 피어로 호스팅 해줍니다.

$ docker run --name peer001 \
-p 8000:8000 \

2. NPM 방식

NPM 저장소 에서 KY2 Chain을 다운 받습니다.

$ npm install ky2

카프카가 작동중이지 않다면 Docker-compose 로 카프카를 구동시킨 뒤 피어를 가동시킵니다.

$ npm start

REST API

Get Blocks

블록을 조회할 때 사용하는 API 입니다.

Request GET /v1/block/

curl -i -H 'Accept: application/json' 
http://localhost:5000/block

Response

{"blocks":{
	"rows":[{
		"_type":"Block",
		"data": "this is test data",
		"event_id":"39e073d5-9e83-4e83-a1d9-6ac842f3dac2",
		"generated_time":1663501152631,
		"id":"3b6939cdc260426d7898fd01c03cd29e"
	}],
	"meta":{
		"requestId":"428c86df-3a2a-4c7d-9090-d2817dca18e3",
		"clientContextId":"26d5ca8c84f16f74",
		"status":"success",
		"signature":{
			"_type":"json",
			"data":"json",
			"event_id":"json",
			"generated_time":"json",
			"id":"json",
			"organization":"json"
		},
		"warnings":[],
		"metrics":{
			"elapsedTime":2083.13555,
			"executionTime":1919.214984,
			"sortCount":0,
			"resultCount":2,
			"resultSize":340,
			"mutationCount":0,
			"errorCount":0,
			"warningCount":0
		}
	}
}}

Add Block

Request POST /v1/block/

curl -i -H 'Accept: application/json' -d 'data=test' 
http://localhost:5000/block

Response

true

Blockchain Explorer

블록체인 데이터를 손쉽게 조회하고 상태를 확인할 수 있는 탐색기를 제공합니다. 탐색기는 React를 사용해서 개발했습니다.

로그인 페이지

메인페이지