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

kathawut-ai

v2.4.16

Published

ผู้ช่วยส่วนตัว AI ทรงประสิทธิภาพที่รันบนเครื่องของคุณ เชื่อมต่อผ่าน Telegram

Readme

🤖 กานต์ (KARN) — Kathawut AI Assistant

ผู้ช่วยส่วนตัว AI ทรงประสิทธิภาพที่รันบนเครื่องของคุณ เชื่อมต่อผ่าน Telegram และควบคุมระบบด้วย PowerShell พร้อมระบบความจำ 3 ชั้น (Sensory, Working, Long-term)


✨ ความสามารถเด่น (Key Features)

  • 🧠 Smart Memory System: จดจำบริบทการคุย สรุปข้อความอัตโนมัติ และบันทึกข้อมูลสำคัญลงไฟล์ memory.md
  • 🛠 Automation Power: ควบคุมเครื่องผ่าน PowerShell Tags (รันสคริปต์, ส่งไฟล์, ตั้งเวลาเตือน)
  • 🌀 Thai Language First: ปรับแต่งมาเพื่อการสื่อสารภาษาไทยที่เป็นธรรมชาติและทรงพลัง
  • Lightning Fast: ขับเคลื่อนด้วย Bun และ Typhoon AI

🚀 การติดตั้งและเริ่มใช้งาน (Installation Guide)

วิธีที่ 1: ติดตั้งแบบอัตโนมัติ (แนะนำ - คำสั่งเดียวจบ)

Windows (PowerShell):

irm https://raw.githubusercontent.com/Devktw/Kathawut-AI/master/install.ps1 | iex

Windows (CMD):

curl -o install.bat https://raw.githubusercontent.com/Devktw/Kathawut-AI/master/install.bat && install.bat

macOS/Linux:

curl -fsSL https://raw.githubusercontent.com/Devktw/Kathawut-AI/master/install.sh | bash

Android (Termux):

curl -fsSL https://raw.githubusercontent.com/Devktw/Kathawut-AI/master/install-termux.sh | bash

สคริปต์จะตรวจสอบและติดตั้ง Bun + KARN ให้อัตโนมัติ แล้วรัน karn ได้เลย


วิธีที่ 2: ติดตั้งแบบแมนนวล

ติดตั้ง Bun ก่อน (ถ้ายังไม่มี):

# Windows
powershell -c "irm bun.sh/install.ps1|iex"

# macOS/Linux
curl -fsSL https://bun.sh/install | bash

ติดตั้ง KARN:

bun install -g kathawut-ai
karn

วิธีที่ 3: Clone จาก GitHub (สำหรับ Developer)

สำหรับผู้ที่ต้องการแก้ไขหรือพัฒนาต่อ:

1. สิ่งที่ต้องเตรียม (Prerequisites)

  • Bun Runtime (แนะนำเวอร์ชันล่าสุด)
  • PowerShell 7 (สำหรับ Windows)
  • Telegram Bot Token: สร้างได้จาก @BotFather
  • Typhoon API Key: สมัครใช้งานที่ OpenTyphoon

2. ขั้นตอนการติดตั้ง

# 1. Clone โปรเจกต์ไปยังเครื่องของคุณ
git clone https://github.com/YOUR_USERNAME/Kathawut-AI.git
cd Kathawut-AI

# 2. ติดตั้ง Library ที่จำเป็น
bun install

3. เริ่มรันระบบ (Setup Wizard)

ครั้งแรกที่คุณรัน ระบบจะเข้าสู่โหมด Setup Wizard อัตโนมัติใน Terminal:

bun start

ระบบจะถามข้อมูล 2 ส่วน:

  • API Keys: วาง TYPHOON_API_KEY และ TELEGRAM_BOT_TOKEN
  • AI Settings: ตั้งค่า Model Name และ Base URL ของ Typhoon

📂 โครงสร้างโปรเจกต์ (Project Structure)

  • src/index.ts: จุดเริ่มต้นระบบ (Core Engine)
  • src/config.ts: ระบบ Setup และจัดการค่าคอนฟิก
  • src/database.ts: สมองส่วนจัดเก็บข้อมูล (SQLite + JSON Memory)
  • prompt.md: บุคลิกภาพและคู่มือการตัดสินใจของบอท
  • .env: (สร้างให้อัตโนมัติ) เก็บความลับของคุณ

🛠 คำสั่งพิศษ (Tag System)

กานต์ทำงานจริงผ่านระบบ Tag ในการตอบโต้:

  • [CMD: command]: รันคำสั่ง PowerShell (เช่น dir, systeminfo)
  • [REMEMBER: key = value]: บันทึกความจำระยะสั้น
  • [DOC: title] ... [/DOC]: บันทึกข้อมูลยาวๆ ลง memory.md
  • [SCHEDULE: YYYY-MM-DD HH:MM:SS | msg]: ตั้งเวลาเตือนความจำ
  • [SEND_FILE: path]: ส่งไฟล์จากเครื่องไปยัง Telegram

📝 หมายเหตุ

  • ไฟล์ .env, database.sqlite, memory.md, และ settings.json จะไม่ถูกอัปโหลดขึ้น GitHub เพื่อความปลอดภัย
  • หากต้องการย้ายไปเครื่องอื่น ให้ Copy ไฟล์เหล่านี้ไปด้วย หรือรัน bun start ใหม่เพื่อตั้งค่าใหม่

*Powered by Kathawut