offcourse 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +22 -0
- package/README.md +52 -0
- package/cli.js +45 -0
- package/package.json +33 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Offcourse
|
|
2
|
+
|
|
3
|
+
Download online courses for offline access β of course! π
|
|
4
|
+
|
|
5
|
+
> π§ **Coming Soon** β This package is currently in private development.
|
|
6
|
+
|
|
7
|
+
## What is Offcourse?
|
|
8
|
+
|
|
9
|
+
Offcourse is a CLI tool that downloads online courses for offline access. It preserves the course structure, downloads videos, and converts lesson content to clean Markdown files.
|
|
10
|
+
|
|
11
|
+
## Planned Features
|
|
12
|
+
|
|
13
|
+
- π **Browser-based authentication** β Log in once, sessions are cached
|
|
14
|
+
- π **Course structure preservation** β Maintains module/lesson hierarchy
|
|
15
|
+
- π¬ **Video downloads** β Supports Loom, native video (Vimeo, YouTube, Wistia planned)
|
|
16
|
+
- π **Content extraction** β Converts lesson text to clean Markdown
|
|
17
|
+
- βΈοΈ **Resumable syncs** β Skips already downloaded content
|
|
18
|
+
- β‘ **Concurrent downloads** β Configurable parallelism
|
|
19
|
+
|
|
20
|
+
## Supported Platforms
|
|
21
|
+
|
|
22
|
+
| Platform | Status |
|
|
23
|
+
|----------|--------|
|
|
24
|
+
| [Skool.com](https://skool.com) | β
Ready |
|
|
25
|
+
| [LearningSuite.io](https://learningsuite.io) | π§ Planned |
|
|
26
|
+
|
|
27
|
+
## Output Structure
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
~/Downloads/offcourse/
|
|
31
|
+
βββ course-name/
|
|
32
|
+
βββ 01-module-name/
|
|
33
|
+
β βββ 01-lesson-name/
|
|
34
|
+
β β βββ content.md
|
|
35
|
+
β β βββ video.mp4
|
|
36
|
+
β βββ 02-another-lesson/
|
|
37
|
+
β βββ content.md
|
|
38
|
+
β βββ video.mp4
|
|
39
|
+
βββ 02-next-module/
|
|
40
|
+
βββ ...
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Stay Updated
|
|
44
|
+
|
|
45
|
+
β Star the repo to get notified when we release:
|
|
46
|
+
|
|
47
|
+
β [github.com/sebastian-software/offcourse](https://github.com/sebastian-software/offcourse)
|
|
48
|
+
|
|
49
|
+
## License
|
|
50
|
+
|
|
51
|
+
MIT Β© [Sebastian Software GmbH](https://sebastian-software.de)
|
|
52
|
+
|
package/cli.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const VERSION = "0.0.1";
|
|
4
|
+
|
|
5
|
+
const banner = `
|
|
6
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
7
|
+
β β
|
|
8
|
+
β ββββββββββββββββ¬ β¬β¬ββββββββ β
|
|
9
|
+
β β βββ€ ββ€ β β ββ βββ¬ββββββ€ β
|
|
10
|
+
β ββββ β ββββββββββ΄ββββββββ β
|
|
11
|
+
β β
|
|
12
|
+
β Download online courses for offline access β of course! π β
|
|
13
|
+
β β
|
|
14
|
+
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
15
|
+
`;
|
|
16
|
+
|
|
17
|
+
const comingSoon = `
|
|
18
|
+
π§ Coming Soon!
|
|
19
|
+
|
|
20
|
+
This package is currently in private development.
|
|
21
|
+
The full release will include:
|
|
22
|
+
|
|
23
|
+
β’ π Browser-based authentication with session caching
|
|
24
|
+
β’ π Course structure preservation (module/lesson hierarchy)
|
|
25
|
+
β’ π¬ Video downloads (Loom, Vimeo, YouTube, Wistia)
|
|
26
|
+
β’ π Content extraction to clean Markdown
|
|
27
|
+
β’ βΈοΈ Resumable syncs
|
|
28
|
+
β’ β‘ Concurrent downloads
|
|
29
|
+
|
|
30
|
+
Supported platforms:
|
|
31
|
+
β’ Skool.com (ready)
|
|
32
|
+
β’ LearningSuite.io (planned)
|
|
33
|
+
|
|
34
|
+
Follow the project:
|
|
35
|
+
β https://github.com/sebastian-software/offcourse
|
|
36
|
+
|
|
37
|
+
`;
|
|
38
|
+
|
|
39
|
+
console.log(banner);
|
|
40
|
+
console.log(comingSoon);
|
|
41
|
+
|
|
42
|
+
if (process.argv.includes("--version") || process.argv.includes("-v")) {
|
|
43
|
+
console.log(`v${VERSION}`);
|
|
44
|
+
}
|
|
45
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "offcourse",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Download online courses for offline access β of course! π",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"offcourse": "./cli.js"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/sebastian-software/offcourse.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/sebastian-software/offcourse/issues"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/sebastian-software/offcourse",
|
|
17
|
+
"keywords": [
|
|
18
|
+
"course",
|
|
19
|
+
"downloader",
|
|
20
|
+
"offline",
|
|
21
|
+
"cli",
|
|
22
|
+
"e-learning",
|
|
23
|
+
"video",
|
|
24
|
+
"skool",
|
|
25
|
+
"loom"
|
|
26
|
+
],
|
|
27
|
+
"author": "Sebastian Software GmbH",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18.0.0"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|