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

course-binder

v0.1.1

Published

a compiler for building online courses

Downloads

2

Readme

Binder

Binder is a compiler that bundles a set of videos into a course program. The compiler deploys the course to your Digital Ocean account via the Spaces API. You can then load and run the program using our native iOS or Android apps called Userland. Userland supports features such as progress tracking, offline caching and more coming soon. We want to make it easier to consume and complete online courses.

Install

npm install -g course-binder

Setup

  1. Get an account on Digital Ocean

  2. Create access tokens for Spaces API from the dev console

  3. Set the Digital Ocean Space endpoint, key and secret in your environment:

DO_SPACE_ENDPOINT=https://nyc3.digitaloceanspaces.com
DO_SPACE_KEY=DO00CE96V9TKWYEXHA6W
DO_SPACE_SECRET=uAJYxWaawOPN6J6pQkavNhuYd7QQh/+VmOjI/NWv+HQ

Defining a Course

A course is specified in JSON. Videos are sourced off the local filesystem with path relative to spec file. Here is a sample with just one module and one video file:

{ 
    "name": { 
        "bundle": "neuro-training",
        "display": "The Positive Neuroplasticity Training"
    },
    "author": "Rick Hanson",
    "version": "0.1.0",
    "modules": { 
        "The Essence of Postiive Neuroplasticity": {
            "Welcome and Introduction": { 
                "type": "video/mp4",
                "path": "PNT Class 1, Part 1.mp4"
            }
        }
    }
}

Deploying the Course

To compile the course and deploy to Digital Ocean:

binder path/to/mycourse.json

If there are no errors, the compiler will return a link to access the course material:

https://nyc3.digitaloceanspaces.com/<bundle name>/index.html

Example Courses

To test the compiler out, I built 3 courses I've taken in the past. The JSON specifications for these coureses are availalble in the examples directory. The video files are not here because the content is owned by the authors of the videos.

1. The Positive Neuroplasticity Training

This course allowed me to download offline copies of the videos in mp4 format so I could run my compiler directly on those files. Binder file.

2. Write of Passage

This course uses Wistia as it's learning management system (LMS). I was able to find a Wistia video downloader chrome extension and pull copies of the videos in mp4 format. Binder file.

3. Startup School Curriculum

The videos for this course are hosted on Youtube so I used pytube to dump each of the videos to mp4 format and ran them through the compiler. Binder file.

Userland Apps

iOS

Android