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

almond-digital-asset-plugin

v0.0.31

Published

A starter for Medusa plugins.

Readme

Compatibility

This starter is compatible with versions >= 2.4.0 of @medusajs/medusa.

Getting Started

Visit the Quickstart Guide to set up a server.

Visit the Plugins documentation to learn more about plugins and how to create them.

Visit the Docs to learn more about our system requirements.

What is Medusa

Medusa is a set of commerce modules and tools that allow you to build rich, reliable, and performant commerce applications without reinventing core commerce logic. The modules can be customized and used to build advanced ecommerce stores, marketplaces, or any product that needs foundational commerce primitives. All modules are open-source and freely available on npm.

Learn more about Medusa's architecture and commerce modules in the Docs.

Community & Contributions

The community and core team are available in GitHub Discussions, where you can ask for support, discuss roadmap, and share ideas.

Join our Discord server to meet other community members.

Other channels

Medusa Digital Asset Plugin

디지털 자산을 관리하기 위한 Medusa 플러그인입니다.

API 문서

Admin API

디지털 자산 관리

1. 디지털 자산 목록 조회
GET /admin/digital-assets

Query Parameters

  • limit (number, optional): 페이지당 항목 수 (기본값: 20)
  • offset (number, optional): 시작 오프셋 (기본값: 0)
  • include_deleted (boolean, optional): 삭제된 항목 포함 여부

응답

{
  "digital_assets": [
    {
      "id": "asset_01",
      "name": "디지털 자산 1",
      "file_url": "https://example.com/asset1.pdf",
      "thumbnail_url": "https://example.com/thumb1.jpg",
      "mime_type": "application/pdf",
      "created_at": "2024-03-14T12:00:00Z",
      "updated_at": "2024-03-14T12:00:00Z"
    }
  ],
  "count": 1,
  "skip": 0,
  "take": 20
}
2. 새 디지털 자산 생성
POST /admin/digital-assets
Content-Type: multipart/form-data

Request Body

  • file: 디지털 자산 파일 (필수)
  • thumbnail: 썸네일 이미지 (선택)
  • name: 자산 이름 (필수)

응답

{
  "id": "asset_01",
  "name": "새 디지털 자산",
  "file_url": "https://example.com/new-asset.pdf",
  "thumbnail_url": "https://example.com/new-thumb.jpg",
  "mime_type": "application/pdf",
  "created_at": "2024-03-14T12:00:00Z",
  "updated_at": "2024-03-14T12:00:00Z"
}
3. 디지털 자산 수정
PATCH /admin/digital-assets/:id
Content-Type: multipart/form-data

Path Parameters

  • id: 디지털 자산 ID

Request Body

  • file: 새 디지털 자산 파일 (선택)
  • thumbnail: 새 썸네일 이미지 (선택)
  • name: 새 자산 이름 (선택)

응답

{
  "id": "asset_01",
  "name": "수정된 디지털 자산",
  "file_url": "https://example.com/updated-asset.pdf",
  "thumbnail_url": "https://example.com/updated-thumb.jpg",
  "mime_type": "application/pdf",
  "created_at": "2024-03-14T12:00:00Z",
  "updated_at": "2024-03-14T13:00:00Z"
}
4. 디지털 자산 다운로드 (관리자)
GET /admin/digital-assets/:id/download

Path Parameters

  • id: 디지털 자산 ID

응답

  • 성공 시: 파일 스트림 (파일 직접 다운로드)
  • Content-Type: 파일의 MIME 타입
  • Content-Disposition: attachment; filename="파일명"

에러 응답

{
  "message": "에러 메시지"
}

디지털 자산 라이센스 관리

1. 라이센스 목록 조회
GET /admin/digital-asset-licenses

Query Parameters

  • license_id (string, optional): 라이센스 ID로 필터링
  • customer_id (string, optional): 고객 ID로 필터링
  • order_item_id (string, optional): 주문 항목 ID로 필터링
  • is_exercised (boolean, optional): 사용 여부로 필터링
  • limit (number, optional): 페이지당 항목 수 (기본값: 20)
  • offset (number, optional): 시작 오프셋 (기본값: 0)

응답

{
  "licenses": [
    {
      "id": "license_01",
      "customer_id": "cust_01",
      "order_item_id": "item_01",
      "is_exercised": false,
      "created_at": "2024-03-14T12:00:00Z"
    }
  ],
  "count": 1,
  "skip": 0,
  "take": 20
}

Store API

라이브러리 관리

1. 고객 라이브러리 조회
GET /store/library
Authorization: Bearer {token}

응답

{
  "items": [
    {
      "id": "asset_01",
      "title": "디지털 자산 1",
      "description": "자산 설명",
      "metadata": {
        "key": "value"
      }
    }
  ]
}
2. 특정 디지털 자산 조회
GET /store/library/:id
Authorization: Bearer {token}

Path Parameters

  • id: 디지털 자산 ID

응답

{
  "id": "asset_01",
  "name": "디지털 자산 1",
  "file_url": "https://example.com/asset1.pdf",
  "thumbnail_url": "https://example.com/thumb1.jpg",
  "mime_type": "application/pdf"
}
3. 디지털 자산 다운로드
GET /store/library/:id/download
Authorization: Bearer {token}

Path Parameters

  • id: 디지털 자산 ID

응답

  • 성공 시: 파일 스트림 (파일 직접 다운로드)
  • Content-Type: 파일의 MIME 타입
  • Content-Disposition: attachment; filename="파일명"

에러 응답

{
  "message": "에러 메시지"
}
4. 디지털 자산 라이센스 사용
GET /store/library/:id/exercise
Authorization: Bearer {token}

Path Parameters

  • id: 디지털 자산 ID

응답

{
  "id": "asset_01",
  "name": "디지털 자산 1",
  "file_url": "https://example.com/asset1.pdf",
  "thumbnail_url": "https://example.com/thumb1.jpg",
  "mime_type": "application/pdf"
}

인증

모든 API 요청에는 Bearer 토큰이 필요합니다:

  • Admin API: 관리자 인증 토큰
  • Store API: 고객 인증 토큰
Authorization: Bearer {your_token}

에러 응답

API 요청이 실패하면 다음과 같은 형식의 에러 응답을 반환합니다:

{
  "error": "ERROR_CODE",
  "message": "에러 메시지"
}

설치 방법

...