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 ๐Ÿ™

ยฉ 2024 โ€“ย Pkg Stats / Ryan Hefner

@bradgarropy/captivate-sdk

v0.4.0

Published

๐ŸŽค captivate sdk

Downloads

13

Readme

๐ŸŽค captivate sdk

version downloads size github actions coverage typescript contributing contributors discord

Captivate JavaScript SDK for retrieving podcast information.

๐Ÿ“ฆ Installation

This package is hosted on npm.

npm install @bradgarropy/captivate-sdk

๐Ÿฅ‘ Usage

Start off by creating a Captivate client, then authenticate to the Captivate API. Now you can use the client to retrieve your podcast shows and episodes.

const captivate = new Captivate("abc123", "123456789")

const show = await captivate.shows.getShow("abc123")
const episode = await captivate.episodes.getEpisode("xyz123")

๐Ÿ“– API Reference

Captivate(userId, apiKey)

| Name | Type | Example | Description | | -------- | -------- | ------------- | ------------------ | | userId | string | "abc123" | Captivate user id. | | apiKey | string | "123456789" | Captivate api key. |

Create a Captivate client.

const captivate = new Captivate("abc123", "123456789")

captivate.authentication.authenticateUser()

Authenticate a user to the Captivate API.

captivate.authentication.authenticateUser()

captivate.users.getUser(userId)

| Name | Type | Example | Description | | -------- | -------- | ---------- | ----------- | | userId | string | "abc123" | User id. |

Get a user.

captivate.users.getUser("abc123")

captivate.users.getUsersShows(userId)

| Name | Type | Example | Description | | -------- | -------- | ---------- | ----------- | | userId | string | "abc123" | User id. |

Get a list of podcasts that a user belongs to.

captivate.users.getUsersShows("abc123")

captivate.users.getUsersManagedShows(userId)

| Name | Type | Example | Description | | -------- | -------- | ---------- | ----------- | | userId | string | "abc123" | User id. |

Get a list of podcasts that a user manages.

captivate.users.getUsersManagedShows("abc123")

captivate.shows.getShow(showId)

| Name | Type | Example | Description | | -------- | -------- | ---------- | ---------------- | | showId | string | "abc123" | Podcast show id. |

Get a podcast.

captivate.shows.getShow("abc123")

captivate.shows.updateShow()

// TODO

captivate.shows.updateShowArtwork()

// TODO

captivate.shows.getShowEpisodes(showId)

| Name | Type | Example | Description | | -------- | -------- | ---------- | ---------------- | | showId | string | "abc123" | Podcast show id. |

Get all episodes from a podcast.

captivate.shows.getShowEpisodes("abc123")

captivate.shows.getShowScheduledEpisodes(showId)

| Name | Type | Example | Description | | -------- | -------- | ---------- | ---------------- | | showId | string | "abc123" | Podcast show id. |

Get all scheduled episodes from a podcast.

captivate.shows.getShowScheduledEpisodes("abc123")

captivate.shows.getShowFeedUrl(showId)

| Name | Type | Example | Description | | -------- | -------- | ---------- | ---------------- | | showId | string | "abc123" | Podcast show id. |

Get the RSS feed URL for a podcast.

captivate.shows.getShowFeedUrl("abc123")

captivate.media.getMedia(mediaId)

| Name | Type | Example | Description | | --------- | -------- | ---------- | ----------- | | mediaId | string | "abc123" | Media id. |

Get an item from your media library.

captivate.media.getMedia("abc123")

captivate.media.uploadMedia()

// TODO

captivate.media.getShowMedia(showId)

| Name | Type | Example | Description | | -------- | -------- | ---------- | ---------------- | | showId | string | "abc123" | Podcast show id. |

Get all media from a podcast.

captivate.media.getShowMedia("abc123")

captivate.media.searchShowMedia()

// TODO

captivate.episodes.getEpisode(episodeId)

| Name | Type | Example | Description | | ----------- | -------- | ---------- | ------------------- | | episodeId | string | "xyz123" | Podcast episode id. |

Get a podcast episode.

captivate.episodes.getEpisode("xyz123")

captivate.episodes.createEpisode()

// TODO

captivate.episodes.updateEpisode()

// TODO

โ” Questions

๐Ÿ› report bugs by filing issues
๐Ÿ“ข provide feedback with issues or on twitter
๐Ÿ™‹๐Ÿผโ€โ™‚๏ธ use my ama or twitter to ask any other questions

โœจ contributors