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

lee-chat-sdk

v0.2.0

Published

Drop-in chat widget kit for React and vanilla JavaScript websites.

Downloads

0

Readme

lee-chat-sdk

한국어 | English

웹사이트에 채팅 경험을 삽입하기 위한 drop-in chat SDK입니다. React, Vanilla JavaScript, script tag 방식으로 사용할 수 있습니다.

설치

pnpm add lee-chat-sdk
npm install lee-chat-sdk

기본 위젯 스타일을 사용하려면 앱 진입점에서 CSS를 한 번 import합니다.

import 'lee-chat-sdk/style.css'

React

import { LeeChatProvider, LeeChatWidget } from 'lee-chat-sdk'
import 'lee-chat-sdk/style.css'

export function App() {
  return (
    <LeeChatProvider
      config={{
        appId: 'my-service',
        endpoint: '/api/chat',
        initialMessage: '무엇을 도와드릴까요?',
      }}
    >
      <LeeChatWidget />
    </LeeChatProvider>
  )
}

Vanilla JS

import { initLeeChat } from 'lee-chat-sdk/vanilla'
import 'lee-chat-sdk/style.css'

const leeChat = initLeeChat({
  appId: 'my-service',
  endpoint: '/api/chat',
  initialMessage: '무엇을 도와드릴까요?',
  isolation: 'shadowDom',
})

leeChat.open()

lee-chat-sdk/vanilla는 React를 import하지 않는 DOM 기반 엔트리입니다.

Script Tag

번들러가 없는 사이트에서는 IIFE 번들을 직접 로드할 수 있습니다. 이 번들은 기본 CSS를 스크립트 안에 포함합니다.

<script src="https://cdn.example.com/lee-chat.global.js"></script>
<script>
  LeeChat.initLeeChat({
    appId: 'my-service',
    endpoint: '/api/chat',
    initialMessage: '무엇을 도와드릴까요?',
    isolation: 'shadowDom',
  })
</script>

패키지 빌드 산출물 기준 파일 경로는 dist/lee-chat.global.js입니다. CDN 업로드용 SRI 값은 dist/lee-chat.global.manifest.json에 생성됩니다.

Backend

SDK는 client-side UI와 contract를 제공합니다. 실제 메시지 저장, 인증/권한, rate limit, tenant 분리, 첨부파일 저장, realtime broadcast는 host app backend가 담당합니다.

운영 route는 lee-chat-sdk/servercreateLeeChatRouteHandler()에 DB storage adapter를 연결해 구현할 수 있습니다.

문서

전체 문서는 저장소 루트에서 확인하세요.

  • Integration Guide: docs/integration.md
  • Configuration: docs/configuration.md
  • API Reference: docs/api.md
  • Testing: docs/testing.md
  • Backend Contract: docs/backend-contract.ko.md
  • Operator Console: docs/operator-console.md

운영자 콘솔 API는 experimental primitive입니다. production-ready 콘솔이 아니며, 실제 운영에는 host app의 상담원 mutation API, 권한, 라우팅 정책, 영구 저장소, realtime backend가 필요합니다.