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.
Files changed (4) hide show
  1. package/LICENSE +22 -0
  2. package/README.md +52 -0
  3. package/cli.js +45 -0
  4. 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
+