Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
fix: update default branch name
Jake Turnera3f10dd158bf
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 64c4a4f5..95b15976 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -42,7 +42,7 @@ jobs:env:GITHUB_REPOSITORY: ${{ github.repository }}run: |- git pull origin master+ git pull origin mainchmod +x .github/scripts/finalize-release-notes.shEXIT_CODE=0.github/scripts/finalize-release-notes.sh \@@ -62,7 +62,7 @@ jobs:git remote set-url origin https://x-access-token:${{ secrets.COSMISTACKBOT_ACCESS_TOKEN }}@github.com/${{ github.repository }}.gitgit add admin/docs/release-notes.mdgit commit -m "docs(release): finalize v${{ steps.semver.outputs.new_release_version }} release notes [skip ci]"- git push origin master+ git push origin main- name: Update GitHub release bodyif: steps.semver.outputs.new_release_published == 'true' && steps.finalize-notes.outputs.has_notes == 'true'diff --git a/.releaserc.json b/.releaserc.jsonindex e06f66ad..097d42d4 100644--- a/.releaserc.json+++ b/.releaserc.json@@ -1,5 +1,5 @@{- "branches": ["master"],+ "branches": ["main"],"plugins": ["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator",diff --git a/README.md b/README.mdindex 5925c6ba..cf59de57 100644--- a/README.md+++ b/README.md@@ -1,7 +1,7 @@# *NOTE: Project N.O.M.A.D. is still in active development and should not be considered stable!*<div align="center">-<img src="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/admin/public/project_nomad_logo.png" width="200" height="200"/>+<img src="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/admin/public/project_nomad_logo.png" width="200" height="200"/># Project N.O.M.A.D.### Node for Offline Media, Archives, and Data@@ -25,7 +25,7 @@ Project N.O.M.A.D. can be installed on any Debian-based operating system (we rec#### Quick Install```bash-sudo apt-get update && sudo apt-get install -y curl && curl -fsSL https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/install_nomad.sh -o install_nomad.sh && sudo bash install_nomad.sh+sudo apt-get update && sudo apt-get install -y curl && curl -fsSL https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/install_nomad.sh -o install_nomad.sh && sudo bash install_nomad.sh```Project N.O.M.A.D. is now installed on your device! Open a browser and navigate to `http://localhost:8080` (or `http://DEVICE_IP:8080`) to start exploring!@@ -160,5 +160,5 @@ sudo bash /opt/project-nomad/update_nomad.sh###### Uninstall Script - Need to start fresh? Use the uninstall script to make your life easy. Note: this cannot be undone!```bash-curl -fsSL https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/uninstall_nomad.sh -o uninstall_nomad.sh && sudo bash uninstall_nomad.sh+curl -fsSL https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/uninstall_nomad.sh -o uninstall_nomad.sh && sudo bash uninstall_nomad.sh```\ No newline at end of filediff --git a/admin/app/services/collection_manifest_service.ts b/admin/app/services/collection_manifest_service.tsindex 02924c42..bc69368f 100644--- a/admin/app/services/collection_manifest_service.ts+++ b/admin/app/services/collection_manifest_service.ts@@ -23,9 +23,9 @@ import type {} from '../../types/collections.js'const SPEC_URLS: Record<ManifestType, string> = {- zim_categories: 'https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/collections/kiwix-categories.json',- maps: 'https://github.com/Crosstalk-Solutions/project-nomad/raw/refs/heads/master/collections/maps.json',- wikipedia: 'https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/collections/wikipedia.json',+ zim_categories: 'https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/collections/kiwix-categories.json',+ maps: 'https://github.com/Crosstalk-Solutions/project-nomad/raw/refs/heads/main/collections/maps.json',+ wikipedia: 'https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/collections/wikipedia.json',}const VALIDATORS: Record<ManifestType, any> = {diff --git a/admin/app/services/docker_service.ts b/admin/app/services/docker_service.tsindex 7ba1e2e1..a87ff5b9 100644--- a/admin/app/services/docker_service.ts+++ b/admin/app/services/docker_service.ts@@ -615,7 +615,7 @@ export class DockerService {* We'll download the lightweight mini Wikipedia Top 100 zim file for this purpose.**/const WIKIPEDIA_ZIM_URL =- 'https://github.com/Crosstalk-Solutions/project-nomad/raw/refs/heads/master/install/wikipedia_en_100_mini_2025-06.zim'+ 'https://github.com/Crosstalk-Solutions/project-nomad/raw/refs/heads/main/install/wikipedia_en_100_mini_2025-06.zim'const filename = 'wikipedia_en_100_mini_2025-06.zim'const filepath = join(process.cwd(), ZIM_STORAGE_PATH, filename)logger.info(`[DockerService] Kiwix Serve pre-install: Downloading ZIM file to ${filepath}`)diff --git a/admin/app/services/zim_service.ts b/admin/app/services/zim_service.tsindex 3818529e..1e8a55ae 100644--- a/admin/app/services/zim_service.ts+++ b/admin/app/services/zim_service.ts@@ -28,7 +28,7 @@ import { CollectionManifestService } from './collection_manifest_service.js'import type { CategoryWithStatus } from '../../types/collections.js'const ZIM_MIME_TYPES = ['application/x-zim', 'application/x-openzim', 'application/octet-stream']-const WIKIPEDIA_OPTIONS_URL = 'https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/collections/wikipedia.json'+const WIKIPEDIA_OPTIONS_URL = 'https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/collections/wikipedia.json'@inject()export class ZimService {diff --git a/admin/docs/faq.md b/admin/docs/faq.mdindex 6702637b..ad11f1b4 100644--- a/admin/docs/faq.md+++ b/admin/docs/faq.md@@ -246,7 +246,7 @@ sudo bash /opt/project-nomad/update_nomad.sh**Uninstall N.O.M.A.D.:**```bash-curl -fsSL https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/uninstall_nomad.sh -o uninstall_nomad.sh+curl -fsSL https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/uninstall_nomad.sh -o uninstall_nomad.shsudo bash uninstall_nomad.sh```*Warning: This cannot be undone. All data will be deleted.*diff --git a/install/install_nomad.sh b/install/install_nomad.shindex 0c1646c0..495bb8fb 100644--- a/install/install_nomad.sh+++ b/install/install_nomad.sh@@ -30,15 +30,15 @@ GREEN='\033[1;32m' # Light Green.WHIPTAIL_TITLE="Project N.O.M.A.D Installation"NOMAD_DIR="/opt/project-nomad"-MANAGEMENT_COMPOSE_FILE_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/management_compose.yaml"-ENTRYPOINT_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/entrypoint.sh"-SIDECAR_UPDATER_DOCKERFILE_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/sidecar-updater/Dockerfile"-SIDECAR_UPDATER_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/sidecar-updater/update-watcher.sh"-START_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/start_nomad.sh"-STOP_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/stop_nomad.sh"-UPDATE_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/update_nomad.sh"-WAIT_FOR_IT_SCRIPT_URL="https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh"-COLLECT_DISK_INFO_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/master/install/collect_disk_info.sh"+MANAGEMENT_COMPOSE_FILE_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/management_compose.yaml"+ENTRYPOINT_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/entrypoint.sh"+SIDECAR_UPDATER_DOCKERFILE_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/sidecar-updater/Dockerfile"+SIDECAR_UPDATER_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/sidecar-updater/update-watcher.sh"+START_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/start_nomad.sh"+STOP_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/stop_nomad.sh"+UPDATE_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/update_nomad.sh"+WAIT_FOR_IT_SCRIPT_URL="https://raw.githubusercontent.com/vishnubob/wait-for-it/main/wait-for-it.sh"+COLLECT_DISK_INFO_SCRIPT_URL="https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/collect_disk_info.sh"script_option_debug='true'accepted_terms='false'