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

aladin-client

v1.0.6

Published

Unofficial JavaScript library for the Aladin API

Downloads

17

Readme

aladin-client

알라딘 온라인 서점 API를 JavaScript로 쉽게 사용할 수 있게 해주는 비공식 라이브러리입니다.

설치 방법

npm

npm install aladin-client

yarn

yarn add aladin-client

pnpm

pnpm add aladin-client

기능

제공하는 메서드들은 OPEN API의 각 요청과 1:1 대응됩니다.

  • 상품 검색 (ItemSearch.aspx)
  • 상품 리스트 조회 (ItemList.aspx)
  • 상품 조회 (ItemLookUp.aspx)
  • 중고상품 보유 매장 검색 (ItemOffStoreList.aspx)

빠른 시작

import { Aladin } from 'aladin-client'

// 클라이언트 초기화
const aladin = new Aladin({ttbKey: '<YOUR TTB KEY>'})

// 상품 검색
const searchResult = await aladin.searchItems({query: 'Harry Potter'})
if (searchResult.success) {
  console.log(searchResult.data)
} else {
  console.error(searchResult.error.message)
}

// 상품 리스트 조회
const listResult = await aladin.listItems({queryType: 'ItemNewAll', categoryId: 57923 })
if (listResult.success) {
  console.log(listResult.data)
} else {
  console.error(listResult.error.message)
}

// 상품 조회
const itemResult = await aladin.lookupItem({itemId: 343667067, itemIdType: 'ItemId'})
if (itemResult.success) {
  console.log(itemResult.data)
} else {
  console.error(itemResult.error.message)
}

// 중고상품 보유 매장 검색
const offStoreResult = await aladin.listItemOffStore({itemId:343667067 , itemIdType: "ItemId"})
if (offStoreResult.success) {
  console.log(offStoreResult.data)
} else {
  console.error(offStoreResult.error.message)
}

API 문서

  • 공식 설명은 API 페이지문서에서 확인 가능합니다.
  • 해당 라이브러리의 상세 API는 API 페이지에서 확인 가능합니다.

개발 환경 설정

저장소 클론

# 저장소 클론
git clone https://github.com/username/aladin-client.git
cd aladin-client

의존성 설치

pnpm install

테스트 실행

테스트 실행을 위해 tests/ 디렉토리에 key.json 파일을 key.template.json 형식에 맞게 생성하세요. 그 후,

pnpm test

빌드

pnpm build

코드 포맷

pnpm format

기여 방법

🎉 누구나 기여를 환영합니다! 버그 수정, 기능 추가, 문서 개선 등 어떤 형태든 기여는 프로젝트의 발전에 큰 도움이 됩니다.

  1. 이 저장소를 포크합니다.
  2. 새 기능 브랜치를 생성합니다 (git checkout -b feature/amazing-feature)
  3. 변경 사항을 커밋합니다 (git commit -m 'Add some amazing feature')
  4. 브랜치에 푸시합니다 (git push origin feature/amazing-feature)
  5. Pull Request를 생성합니다.

라이선스

이 프로젝트는 MIT 라이선스로 배포됩니다. 자세한 내용은 LICENSE 파일을 참고하세요.

주의사항

  1. KEY 필요
    • 이 라이브러리를 사용하기 위해서는 알라딘 API 키가 필요합니다. API 키 발급 및 이용 약관은 알라딘 API 페이지를 참조하세요.
    • API 사용 시 알라딘의 이용 약관을 준수해야 합니다.
  2. 비공식 라이브러리
    • 이 라이브러리는 알라딘 공식 라이브러리가 아닙니다. 따라서 알라딘 API의 변경에 따라 작동하지 않을 수 있습니다.
  3. 타입스크립트 지원
    • 이 라이브러리는 타입스크립트를 지원합니다.
    • 공식 API 문서가 정확하지 않은 점, 그리고 별도 협의로 제공되는 결과값은 테스트할 수 없어 타입이 완벽하지 않을 수 있습니다.