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

@seoltab/sdk

v0.6.0

Published

Seoltab SDK for JavaScript

Downloads

41

Readme

seoltab.js

Seoltab SDK for JavaScript

설치하기

Using NPM

npm install @seoltab/sdk

Using Yarn

yarn add @seoltab/sdk

Using CDN

<script src="https://unpkg.com/@seoltab/sdk"></script>

시작하기

Seoltab.init()

JavaScript SDK 초기화 예제입니다.

const Seoltab = require("@seoltab/sdk");

Seoltab.init({
  clientId: "31024ffa-5ef0-413e-9bf5-f1761638b6d8",
});

입력인자

| Name | Type | Required | Description | | ---------- | :----: | :------: | --------------- | | clientId | string | Y | 애플리케이션 ID |

기능 명세

Seoltab.Auth.authorize()

사용자가 앱에 로그인할 수 있도록 인가 코드를 요청하는 함수입니다. 인가 코드를 받을 수 있는 서버 개발이 필요합니다.

Seoltab.Auth.authorize({
  redirectUri: "https://seoltab.com/authorize",
});

입력인자

| Name | Type | Required | Description | | ------------- | :----: | :------: | -------------------- | | redirectUri | string | N | 인가 코드를 받을 URI | | scope | string | N | 추가 동의 받을 항목 |

Seoltab.Auth.getClientId()

사용 중인 Client ID

Seoltab.Auth.getClientId();

출력결과

31024ffa-5ef0-413e-9bf5-f1761638b6d8

Seoltab.Auth.token()

사용자가 앱에 로그인할 수 있도록 토큰을 요청하는 함수입니다. 토큰을 받을 수 있는 서버 개발이 필요합니다.

Seoltab.Auth.token({
  grantType: "authorization_code",
  redirectUri: "https://seoltab.com/authorize",
  code: "128ba3b3-f2ca-4a33-afaf-aae20ba79093",
});

입력인자

| Name | Type | Required | Description | | ------------- | :----: | :------: | ------------------------- | | grantType | string | Y | authorization_code로 고정 | | redirectUri | string | N | 인가 코드를 받은 URI | | code | string | N | 인가 코드 |

출력결과

{
  access_token: '...',
  expires_in: 3599,
  id_token: '...',
  scope: 'openid',
  token_type: 'Bearer'
}

Seoltab.Auth.tokenInfo()

로그인된 토큰의 payload를 요청하는 함수입니다. 검증된 토큰만 payload를 반환합니다.

Seoltab.Auth.tokenInfo({
  accessToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NDI0OTk5L ...",
});

입력인자

| Name | Type | Required | Description | | ------------- | :----: | :------: | ----------- | | accessToken | string | Y | JWT |

출력결과

{
  "iss": "accounts.seoltab.com",
  "aud": "seoltab.com",
  "sub": "123456",
  "email": "...",
  "name": "...",
  "iat": 1610042222,
  "exp": 1610042222,
  "jti": "822222212332dasdaaaaadc"
}

Seoltab.Auth.decodeJwt()

JWT 토큰의 payload를 요청하는 함수입니다. 검증 없이 payload를 반환합니다.

Seoltab.Auth.decodeJwt(
  "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NDI0OTk5L ..."
);

입력인자

| Name | Type | Required | Description | | ------ | :----: | :------: | ----------- | | arg0 | string | Y | JWT |

출력결과

{
  "iss": "accounts.seoltab.com",
  "aud": "seoltab.com",
  "sub": "123456",
  "email": "...",
  "name": "...",
  "iat": 1610042222,
  "exp": 1610042222,
  "jti": "822222212332dasdaaaaadc"
}