{"id":51541767,"url":"https://github.com/koproductions-code/obsidian_moodle","last_synced_at":"2026-07-09T14:01:36.769Z","repository":{"id":363097422,"uuid":"1261942698","full_name":"koproductions-code/obsidian_moodle","owner":"koproductions-code","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-07T11:37:22.000Z","size":249,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-07T13:15:30.708Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koproductions-code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-07T11:13:49.000Z","updated_at":"2026-06-07T11:37:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/koproductions-code/obsidian_moodle","commit_stats":null,"previous_names":["koproductions-code/obsidian_moodle"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/koproductions-code/obsidian_moodle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koproductions-code%2Fobsidian_moodle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koproductions-code%2Fobsidian_moodle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koproductions-code%2Fobsidian_moodle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koproductions-code%2Fobsidian_moodle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koproductions-code","download_url":"https://codeload.github.com/koproductions-code/obsidian_moodle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koproductions-code%2Fobsidian_moodle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35301501,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-09T14:01:35.762Z","updated_at":"2026-07-09T14:01:36.752Z","avatar_url":"https://github.com/koproductions-code.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Moodle Courses\n\nAn [Obsidian](https://obsidian.md) plugin that lets you browse your RWTH Aachen\nMoodle courses and their documents in a sidebar tree, and download files\nstraight into your vault.\n\n\u003e **Note:** This plugin is built specifically for the RWTH Aachen Moodle\n\u003e instance (`moodle.rwth-aachen.de`) and its Shibboleth single sign-on flow.\n\n## Features\n\n- **Course sidebar** – browse all the courses you are enrolled in as a\n  collapsible tree of sections, activities, and files.\n- **RWTH SSO login** – authenticates through the RWTH single sign-on flow,\n  including two-factor authentication (TOTP).\n- **Automatic or manual 2FA** – store your TOTP secret to generate codes\n  automatically, or leave it empty to be prompted for a code on each login.\n- **Download into your vault** – click a file to download it directly into your\n  Obsidian vault.\n- **Map folders** – assign any course, section, or Moodle folder to a vault\n  folder; files downloaded from it (and anything nested, unless it has its own\n  mapping) land there automatically.\n- **Hide and rename courses** – hide courses you don't care about (with a toggle\n  to show them again) and give courses custom display names via the right-click\n  menu.\n- **Refresh** – reload the course list and contents on demand.\n\n## Installation\n\n### Manual\n\n1. Download `main.js`, `manifest.json`, and `styles.css` from the\n   [latest release](https://github.com/koproductions-code/obsidian_moodle/releases).\n2. Copy them into your vault under\n   `\u003cVault\u003e/.obsidian/plugins/moodle-courses/`.\n3. Reload Obsidian and enable **Moodle Courses** under\n   **Settings → Community plugins**.\n\n### From source\n\n```bash\ngit clone https://github.com/koproductions-code/obsidian_moodle.git\ncd obsidian_moodle\nnpm install\nnpm run build\n```\n\nThen copy `main.js`, `manifest.json`, and `styles.css` into\n`\u003cVault\u003e/.obsidian/plugins/moodle-courses/`.\n\n## Setup\n\n1. Open **Settings → Moodle Courses**.\n2. Fill in your **RWTH SSO credentials**:\n   - **Username** – your RWTH single sign-on username (e.g. `ab123456`).\n   - **Password** – your RWTH password.\n   - **TOTP serial number** – the serial of your TOTP token, found at\n     [idm.rwth-aachen.de/selfservice/MFATokenManager](https://idm.rwth-aachen.de/selfservice/MFATokenManager).\n   - **TOTP secret** *(optional)* – if set, login codes are generated\n     automatically. Leave it empty to enter a code manually each time.\n3. Click **Login**. Once connected, the settings page shows\n   *Connected to moodle.rwth-aachen.de*.\n\nYou can disconnect at any time with the **Disconnect** button, which clears the\nstored session.\n\n## Usage\n\n- Click the **graduation cap** ribbon icon, or run **Open courses sidebar** from\n  the command palette, to open the course tree.\n- Run **Login to RWTH Moodle** from the command palette to authenticate without\n  opening the sidebar.\n- In the sidebar:\n  - Expand a course to load its sections and files.\n  - Click a file to download it into your vault.\n  - Hover a course, section, or folder and click the **📁** button to map it to\n    a vault folder — downloads from it then go there instead of next to the\n    active note. The most specific mapping wins (folder over section over\n    course). Manage or remove mappings under **Settings → Moodle Courses →\n    Download folders**.\n  - Use the eye toggle in the header to show or hide hidden courses.\n  - Use the refresh button to reload courses and contents.\n  - Right-click a course name to rename or hide it.\n\n## Privacy\n\nYour credentials and session token are stored locally in the plugin's settings\ndata inside your vault. The plugin communicates **only** with\n`moodle.rwth-aachen.de` (and the RWTH SSO endpoints required for login). No data\nis sent anywhere else and there is no telemetry.\n\nThe SSO authentication flow is adapted from the\n[syncmymoodle](https://github.com/Romern/syncmymoodle) project.\n\n## Development\n\n```bash\nnpm install      # install dependencies\nnpm run dev      # build in watch mode\nnpm run build    # production build (type-check + bundle)\nnpm run lint     # run ESLint\n```\n\nSource lives in `src/`:\n\n| File             | Responsibility                                  |\n| ---------------- | ----------------------------------------------- |\n| `main.ts`        | Plugin lifecycle, commands, ribbon icon, login  |\n| `settings.ts`    | Settings interface, defaults, and settings tab  |\n| `RWTHAuth.ts`    | RWTH Shibboleth SSO authentication flow         |\n| `MoodleApi.ts`   | Moodle web-service API calls and file downloads |\n| `MoodleView.ts`  | The sidebar view                                |\n| `MoodleTree.ts`  | Rendering the course/section/file tree          |\n| `TotpModal.ts`   | Prompt for a TOTP code                          |\n| `totp.ts`        | TOTP code generation                            |\n| `httpClient.ts`  | HTTP client with cookie handling                |\n\n## License\n\nSee [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoproductions-code%2Fobsidian_moodle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoproductions-code%2Fobsidian_moodle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoproductions-code%2Fobsidian_moodle/lists"}