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

liff-server-api

v0.1.0-delta

Published

LIFF Server API Client === [![CircleCI](https://dl.circleci.com/status-badge/img/gh/martymarron/liff-server-api-ts/tree/main.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/martymarron/liff-server-api-ts/tree/main) [![npm version](https:/

Readme

LIFF Server API Client

CircleCI npm version

Description

This is a LIFF Server API client that is implemented by using TypeScript.
This provides the simple CRUD interfaces for your LIFF apps.

Table of Contents

  1. Installation
  2. Usage
  3. Contributing
  4. Credits
  5. Licensing

Installation

% npm install liff-server-api

Usage

Issue access token

According to the LIFF Server API reference, a channel access token is required to call any LIFF Server API endpoints.
The snippet below issues a channel access token.
* Note: Replace {YOUR_CHANNEL_ID} and {YOUR_CHANNEL_SECRET} with your own credentials.

import { 
    MessageApiClient,
    IssueAccessTokenRequest,
    MessageApiResponse
} from 'liff-server-api';

const baseUrl = 'https://api.line.me';
const client = new MessageApiClient(baseUrl);
const request: IssueAccessTokenRequest 
    = new IssueAccessTokenRequest({
        channelId: '{YOUR_CHANNEL_ID}',
        channelSecret: '{YOUR_CHANNEL_SECRET}'
    });
const response: MessageApiResponse = await client.issueAccessToken(request);
const accessToken = response.access_token;
console.debug('access token: %s', accessToken);

Invoke LIFF Server API

Once you get a channel access token, you next initialize the LiffApiClient object with the channel access token.
Then, you're ready to call the server API.
The snippet below initializes the LiffApiClient and invokes the getAll() method that calls the /liff/v1/apps endpoint which provides all the LIFF apps belonging to your channel.

import {
    LiffApiClient,
    LiffAppGetRequest,
    LiffApiGetRespoinse
} from 'liff-server-api';

const baseUrl = 'https://line.api.me';
const client: LiffApiClient = new LiffApiClient(baseUrl);
const request: LiffAppGetRequest
    = new LiffAppGetRequest({
            channelAccessToken: '{YOUR_ACCESS_TOKEN}'
    });
const response: LiffApiGetRespoinse = await client.getAll(request);
console.debug('Your LIFF apps: %O', response.apps);

Contributing

See CONTRIBUTING.md

Credits

Masashi Kurita, [email protected]

Licensing

All rights reserved.


EOD