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

@openpets/teachable

v1.0.0

Published

Integrate with Teachable platform to manage courses, students, enrollments, lectures, and sales data. Perfect for course creators looking to automate their Teachable school operations.

Readme

Teachable Plugin for OpenPets

Integrate with the Teachable platform to manage your online courses, students, enrollments, lectures, and sales data programmatically.

Features

  • Course Management: Create, read, update courses
  • Student Management: List students, manage enrollments
  • Content Management: Access lectures and course content
  • Sales Analytics: Get revenue and enrollment data
  • Read-Only Mode: Safe operation with TEACHABLE_READ_ONLY=true

Setup

1. Get Teachable API Key

  1. Go to your Teachable school admin
  2. Navigate to Settings > API Keys
  3. Click "Create API Key"
  4. Copy the API key and save it securely

2. Configure Plugin

Set your environment variables:

# Required
TEACHABLE_API_KEY=your_api_key_here

# Optional (auto-detected if not provided)
TEACHABLE_SCHOOL_ID=your_school_id

3. Enable Read-Only Mode (Optional)

export TEACHABLE_READ_ONLY=true

Available Tools

Connection & Testing

  • teachable-test-connection - Test API connection and get school info

Course Management

  • teachable-list-courses - List all courses with filtering options
  • teachable-get-course - Get detailed course information
  • teachable-create-course - Create a new course
  • teachable-update-course - Update existing course

Student Management

  • teachable-list-students - List students with filters
  • teachable-enroll-student - Enroll student in course
  • teachable-get-enrollments - Get enrollment details

Content & Analytics

  • teachable-list-lectures - Get course lectures and content
  • teachable-get-sales-data - Get sales and revenue data

Usage Examples

Basic Course Management

# Test connection
opencode run "test teachable connection"

# List all courses
opencode run "list all teachable courses"

# Get course details
opencode run "get teachable course by ID 123"

# Create new course
opencode run "create new teachable course called 'Introduction to AI'"

Student Management

# List students in a course
opencode run "list students in course 123"

# Enroll a new student
opencode run "enroll student [email protected] in course 123"

Sales Analytics

# Get sales data for last 30 days
opencode run "get teachable sales data for last 30 days"

# Get sales by course
opencode run "get teachable sales data for course 123"

Security & Permissions

Your Teachable API key should have permissions for:

  • Courses (read/write)
  • Users (read/write for student management)
  • Enrollments (read/write)
  • Sales (read for analytics)

You can restrict permissions based on your specific needs.

Read-Only Mode

Enable read-only mode to disable all write operations:

  • Course creation/updates
  • Student enrollments
  • Any data modifications
export TEACHABLE_READ_ONLY=true

Error Handling

The plugin provides clear error messages for:

  • Invalid API keys
  • Missing permissions
  • Network connectivity issues
  • Invalid parameters

Support

  • Teachable API Documentation: Available in your Teachable school admin
  • Plugin Issues: Report via GitHub issues
  • Setup Help: Check FAQ in package configuration

Compatibility

  • OpenCode: ✅ Full support
  • Claude: ✅ Full support
  • Cursor: ✅ Full support

Requires OpenPets SDK v1.0.0+