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 🙏

© 2025 – Pkg Stats / Ryan Hefner

vue-abchat

v0.2.11

Published

AI chat component for vue.js

Readme

vue-abchat

npm version install size npm downloads

Intro

vue-abchat

인공지능 챗봇 서비스를 편하게 구현하기 위한 vue.js component 입니다.

vue-abchat을 활용하면 ABC 보다 더 쉽게 챗봇을 서비스할 수 있습니다.

챗봇 서버에 Rest-api 요청으로 메세지를 보내면 응답 결과를 받아 chat 화면에 띄워줍니다.

현재 베타버전입니다.

데모 페이지: 예정

Installation

npm / node.js
  • Install
npm install vue-abchat
  • Usage
*.vue
<template>
    <abchat :BASE_URL="'http://localhost:8000/'"></abchat>
</template>
<script>
// get component from node_modules
import abchat from 'vue-abchat.vue'
export default {
  name: 'app',
  // add component
  components: {
    abchat
  }
}
</script>
CDN
  • Install

We use axios library

<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script src="https://unpkg.com/vue-abchat/dist/abchat.min.js"></script>
  • Usage
<body>
    <div id="app">
        <abchat :base_url="'http://localhost:8000/'"></abchat>
    </div>
</body>
<script type="text/javascript">
    var app = new Vue({
        el: '#app'
    })
</script>

현재 cdn 방식으로 설치할 경우 font-awesome 미적용으로 인해 신고를 할 수 없는 버그를 수정중입니다.

Usage

컴포넌트 형태로 배포하였기 때문에 사용을 원하는 vue 파일에서 직접 import 한 후 사용하시면 됩니다.

props로 customizing 가능
<template>
    <abchat :base_url="'http://localhost:8000/'" :title="'sjchat'" button_title="'hello'"></abchat>
</template>
현재 지원하는 props 목록

| props | 역할 | 입력타입 | | ---------------------- | --------------------------------------- | -------- | | :base_url (required) | 챗봇을 위한 api 서버 url | String | | :width | 채팅창의 가로 길이를 지정 (px) | Number | | :height | 채팅창의 세로 길이를 지정(px) | Number | | :title | 채팅창 상단의 제목 | String | | :button_title | 채팅창 최소화 시 버튼에 나타나는 텍스트 | String |

attribute로 customizing 가능
<template>
    <abchat :base_url="'http://localhost:8000/'" top left></abchat>
</template>
지원하는 attribute 목록

| attribute | 역할 | | ------------------ | ------------------------------------ | | top | css {position: fixed; top: 30px;} | | bottom (Default) | css {position: fixed; bottom: 30px;} | | left | css {position: fixed; left: 30px;} | | right(Default) | css {position: fixed; right: 30px;} |


데이터 요청 및 응답 방식

Rest-api

method : GET

요청방식 : BASE_URL/{{message}}

요청결과 예시:

{
  "result": "POS"
}

method: POST (신고 버튼 클릭시)

요청방식 : BASE_URL/db2

data : { "siren": {"result": `{question}`} }

예시화면

버튼을 클릭하면 채팅창이 열립니다.

ex4

채팅창 기본 화면

ex1

채팅을 입력하면 Rest-api 형식으로 서버에 요청한 뒤 응답된 결과를 출력합니다.

ex2

C버튼을 누르면 채팅을 지울 수 있습니다.

ex1

License

MIT