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

@redonvn/messaging-line

v1.0.0

Published

Enterprise LINE Messaging API v2 SDK (Reply, Push, Multicast, Loading Animation & x-line-signature Base64 HMAC)

Readme

@redai/messaging-line — Official LINE Messaging API v2 SDK

Enterprise TypeScript SDK cho nền tảng LINE Messaging API v2 thuộc hệ sinh thái RedAI Omnichat, được thiết kế theo kiến trúc Speakeasy 4-Layer và tương thích 100% với hợp đồng đa kênh IMessagingProvider.


Tính năng nổi bật

  • 6 Sub-SDKs chuyên biệt (56 phương thức):
    • client.messages (18 methods): replyMessage (miễn phí qua replyToken), pushMessage (kèm X-Line-Retry-Key chống gửi trùng), multicastMessage (500 users), broadcastMessage, narrowcastMessage, 9 loại Message Objects (text, sticker, image, video, audio, location, imagemap, template, Flex Message), showLoadingAnimation, markMessagesAsReadByToken, validateMessages, getQuotaAndConsumption.
    • client.conversations (12 methods): Quản lý Group Chat (getGroupSummary, getGroupMemberCount, getGroupMemberUserIds, getGroupMemberProfile, leaveGroup) & Multi-person Room (getRoomMemberCount, getRoomMemberUserIds, leaveRoom).
    • client.users (7 methods): Hồ sơ người dùng (getUserProfile), Danh sách Followers (getFollowerIds), Bot Info (getBotInfo), Liên kết tài khoản CRM (issueLinkToken) & Quản lý OAuth Channel Access Token (Short-lived 30d, Stateless 15m, Revoke).
    • client.richMenu (9 methods): Tạo, kiểm tra hợp lệ, tải ảnh nền, gắn mặc định hoặc cá nhân hóa Rich Menu cho từng khách hàng / hàng loạt 500 khách hàng.
    • client.content (6 methods): Tải xuống Media nhị phân (getMessageContent, getMessageContentPreview, getMessageContentTranscodingStatus từ api-data.line.me) & Cấu hình / Kiểm thử URL Webhook.
    • client.webhook (4 methods): Xác thực chữ ký x-line-signature (Base64 HMAC-SHA256) và bóc tách 12 loại sự kiện Webhook LINE.

Cài đặt

pnpm add @redai/messaging-line @redai/messaging-common @redai/core

Khởi tạo nhanh

import { LineMessagingClient } from '@redai/messaging-line';

const line = new LineMessagingClient({
  channelAccessToken: process.env.LINE_CHANNEL_ACCESS_TOKEN!,
  channelSecret: process.env.LINE_CHANNEL_SECRET!,
  channelId: process.env.LINE_CHANNEL_ID,
});

await line.messages.sendText('U4af4980629...', 'Xin chào từ RedAI Omnichat!');

Danh mục Tài liệu SDK