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

web_view_sdk_test

v2.5.8

Published

Neosmartpen_view typescript library

Downloads

333

Readme

Neo smartpen View SDK for Web Platform

Web View SDK

This document is written to be used the web_view_sdk for NeoSmartPen. ( Caution! ViewSDK require web_pen_sdk )

Installation

# web_view_sdk setting

$ npm install web_view_sdk
$ yarn add web_view_sdk

전체적인 Flow

Library Set

import { MainViewFC, RenderHelper, PenManager, savePDF, appendPdfToStorage, ViewMessageType } from 'web_view_sdk';

Step1: View에 해당하는 MainViewFC를 렌더 영역에 추가합니다.

/** Add MainView Component */
<div>
  <MainViewFC/>
</div>

Step2: PenManager.registerPen()을 사용하여 BLE 접속이 성공된 pen을 ViewSDK에 연결합니다.

/** Connect SmartPen to ViewSDK */
const controller = PenHelper.pens.filter((c) => c.info.MacAddress === mac)[0]; 
PenManager.registerPen(controller);

Step3: 펜에서 전송되는 Dot 정보를 ViewSDK에 연결합니다.

/** Send Dot Data to ViewSDK*/
useEffect(() => {
  PenHelper.dotCallback = async (mac, dot) => {
    penManager.passingDot(dot);
  }
});

Step4: ViewSDK로부터 콜백을 받아옵니다.

/** Get a callback from the ViewSDK. */
useEffect(() => {
  renderHelper.current.messageCallback = async (type, args) => {
    viewMessage(type, args);
  }
});

const viewMessage = (type, args) => {
  switch(type){
    case ViewMessageType.T:
    ...
    case OptionMessageType.T:
    ...
  }
}

🐾 Sample Page

https://github.com/neostudio-team/WebSDKSample

📑 web_view_sdk 공식문서

Google Docs

📜 License

Copyright(c) 2022, NeoLAB Convergence INC. No license allowed.

Release Note

~2022. 06. 30. (WONHO, MHCHOI)

Updates

  • Pen Connect+Render, Zoom, PDF Load
  • Sample page 구성

===== ~2022. 07. 29. (WONHO)

Updates

  • Replay, paperHub

===== ~ (???)

ToDo

  • Print(POD), NDP