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

@issuu/issuu-api-sdk

v0.0.22

Published

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

Readme

IssuuSDK

License

Description

IssuuSDK is a library that provides a simple way to interact with the Issuu API.

Table of Contents

Installation

To install the project, run the following command:

npm i @issuu/issuu-api-sdk
# or
yarn add @issuu/issuu-api-sdk

Usage

import IssuuSDK from '@issuu/issuu-api-sdk';
const issuu_instance = IssuuSDK('your_token');

// using objects
const { user, draft, publication, stack } = issuu_instance;
const user_info = await user.getMyProfile();

User Methods

getMyDrafts(q: string, page?: number, size?: number, abortController?: AbortController): Fetches the drafts of the authenticated user.

getMyPublications(q: string, state?: 'ALL' | 'PUBLISHED' | 'SCHEDULED' | 'UNLISTED', page?: number, size?: number, abortController?: AbortController): Fetches the publications of the authenticated user.

getMyStacks(showUnlisted?: boolean, offset?: number, size?: number, abortController?: AbortController): Fetches the stacks of the authenticated user.

getMyStats(dateRange?: 'thisMonth' | 'lastMonth' | 'maxTime', slug?: string, abortController?: AbortController): Fetches the stats of the authenticated user.

getMyProfile(abortController?: AbortController): Fetches the profile of the authenticated user.

getMyFeatures(abortController?: AbortController): Fetches the features of the authenticated user.

getAllData(page?: number, size?: number, abortController?: AbortController): Fetches all the data of the authenticated user.

revokeToken(): Revokes the token of the authenticated user.

Publication Methods

getPublicationBySlug(slug: string, abortController?: AbortController): Fetches a publication by its slug.

deletePublicationBySlug(slug: string, abortController?: AbortController): Deletes a publication by its slug.

getPublicationAssetsBySlug(slug: string, assetType: string, size?: 10 | 20 | 40 | 60 | 100, page?: number, documentPageNumber?: number, continuation?: string, abortController?: AbortController): Fetches the assets of a publication by its slug.

getPublicationFullscreenShareBySlug(slug: string, options?: GetPublicationFullscreenShareBySlugRequest, abortController?: AbortController): Fetches the fullscreen share of a publication by its slug.

getPublicationReaderShareBySlug(slug: string, abortController?: AbortController): Fetches the reader share of a publication by its slug.

getPublicationQRCodeShareBySlug(slug: string, options?: GetPublicationQRCodeShareBySlugRequest, abortController?: AbortController): Fetches the QR code share of a publication by its slug.

getPublicationEmbedCodeBySlug(slug: string, options?: GetPublicationEmbedCodeBySlugRequest, abortController?: AbortController): Fetches the embed code of a publication by its slug.

Stack Methods

createNewStack(stack: CreateNewStackRequest, abortController?: AbortController): Creates a new stack.

getStack(stackId: string, abortController?: AbortController): Fetches a stack by its ID.

deleteStack(stackId: string, abortController?: AbortController): Deletes a stack by its ID.

updateStack(stackId: string, stack: UpdateStackRequest, abortController?: AbortController): Updates a stack by its ID.

getStackItems(stackId: string, options?: GetStackItemsRequest, abortController?: AbortController): Fetches the items of a stack by its ID.

addStackItem(stackId: string, slug: string, abortController?: AbortController): Adds an item to a stack by its ID.

removeStackItem(stackId: string, slug: string, abortController?: AbortController): Removes an item from a stack by its ID.

Draft Methods

createNewDraft(draft: CreateNewDraftRequest, abortController?: AbortController): Creates a new draft.

getDraftBySlug(slug: string, abortController?: AbortController): Fetches a draft by its slug.

deleteDraftBySlug(slug: string, abortController?: AbortController): Deletes a draft by its slug.

updateDraftBySlug(slug: string, draft: UpdateDraftRequest, abortController?: AbortController): Updates a draft by its slug.

uploadDocumentToDraftBySlug(slug: string, document: UploadDocumentToDraftBySlugRequest, progressCallback?: (progress: number) => void, abortController?: AbortController): Uploads a document to a draft by its slug.

publishDraftBySlug(slug: string, options?: PublishDraftBySlugRequest, abortController?: AbortController): Publishes a draft by its slug.

saveAndUploadDraft(draft: CreateNewDraftRequest | UpdateDraftBySlugRequest, document: UploadDocumentToDraftBySlugRequest, publishAtTheEnd: boolean, progressCallback?: (progress: number) => void, options?: PublishDraftBySlugRequest & { checkConversionStatusTimeout?: number }, abortController?: AbortController): Creates or Updates, uploads file, and publishes a draft.

~~createAndUploadDraft(draft: CreateNewDraftRequest, document: UploadDocumentToDraftBySlugRequest, publishAtTheEnd: boolean, progressCallback?: (progress: number) => void, options?: PublishDraftBySlugRequest, abortController?: AbortController): Creates, uploads file, and publishes a draft.~~ (Deprecated)

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request.

License

This project is licensed under the MIT License.