├── .dockerignore ├── .gitattributes ├── .github ├── dependabot.yml └── workflows │ ├── build.yml │ └── stale.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── demo.png ├── docker-compose-prebuilt.yaml ├── docker-compose.yaml ├── docs ├── api.md └── unraid.md ├── eslint.config.js ├── package-lock.json ├── package.json ├── public ├── index.html ├── script.js ├── styles.css ├── swagger.html └── swagger.json ├── server.js └── sonar-project.properties /.dockerignore: -------------------------------------------------------------------------------- 1 | .git 2 | .gitignore 3 | .gitattributes 4 | .github 5 | README.md 6 | demo.png 7 | node_modules 8 | npm-debug.log 9 | *.log 10 | .env 11 | .env.* 12 | .DS_Store 13 | docker-compose.yml 14 | docker-compose-prebuilt.yml 15 | Dockerfile 16 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # Basic `dependabot.yml` file with 2 | # minimum configuration for two package managers 3 | 4 | version: 2 5 | updates: 6 | # Enable version updates for npm 7 | - package-ecosystem: "npm" 8 | # Look for `package.json` and `lock` files in the `root` directory 9 | directory: "/" 10 | # Check the npm registry for updates every day (weekdays) 11 | schedule: 12 | interval: "daily" 13 | 14 | # Enable version updates for Docker 15 | - package-ecosystem: "docker" 16 | # Look for a `Dockerfile` in the `root` directory 17 | directory: "/" 18 | # Check for updates once a week 19 | schedule: 20 | interval: "weekly" 21 | -------------------------------------------------------------------------------- /.github/workflows/build.yml: -------------------------------------------------------------------------------- 1 | name: Build and Push 2 | 3 | on: 4 | workflow_dispatch: 5 | push: 6 | branches: 7 | - main 8 | paths-ignore: 9 | - 'README.md' 10 | - 'demo.png' 11 | - 'docs/**' 12 | pull_request: 13 | branches: 14 | - main 15 | paths-ignore: 16 | - 'README.md' 17 | - 'demo.png' 18 | - 'docs/**' 19 | 20 | env: 21 | GHCR_REGISTRY: ghcr.io 22 | DOCKERHUB_REGISTRY: docker.io 23 | IMAGE_NAME: ${{ github.repository }} 24 | 25 | jobs: 26 | 27 | # analyse: 28 | # name: Analyse code 29 | # runs-on: ubuntu-latest 30 | 31 | # steps: 32 | # - uses: actions/checkout@v4 33 | # with: 34 | # fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis 35 | # - uses: sonarsource/sonarqube-scan-action@v4 36 | # env: 37 | # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} 38 | # SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} 39 | # # If you wish to fail your job when the Quality Gate is red, uncomment the 40 | # # following lines. This would typically be used to fail a deployment. 41 | # # - uses: sonarsource/sonarqube-quality-gate-action@v1 42 | # # timeout-minutes: 5 43 | # # env: 44 | # # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} 45 | 46 | build-and-push: 47 | runs-on: ubuntu-latest 48 | # needs: analyse 49 | permissions: 50 | contents: read 51 | packages: write 52 | 53 | steps: 54 | - name: Checkout repository 55 | uses: actions/checkout@v4 56 | 57 | - name: Set up QEMU 58 | uses: docker/setup-qemu-action@v3 59 | 60 | - name: Set up Docker Buildx 61 | uses: docker/setup-buildx-action@v3 62 | 63 | - name: Log in to GitHub Container Registry 64 | uses: docker/login-action@v3 65 | with: 66 | registry: ${{ env.GHCR_REGISTRY }} 67 | username: ${{ github.actor }} 68 | password: ${{ secrets.GITHUB_TOKEN }} 69 | 70 | - name: Log in to Docker Hub 71 | uses: docker/login-action@v3 72 | with: 73 | registry: ${{ env.DOCKERHUB_REGISTRY }} 74 | username: ${{ secrets.DOCKERHUB_USERNAME }} 75 | password: ${{ secrets.DOCKERHUB_TOKEN }} 76 | 77 | - name: Extract metadata (tags, labels) for Docker 78 | id: meta 79 | uses: docker/metadata-action@v5 80 | with: 81 | images: | 82 | ${{ env.GHCR_REGISTRY }}/${{ env.IMAGE_NAME }} 83 | ${{ env.DOCKERHUB_REGISTRY }}/${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }} 84 | tags: | 85 | type=raw,value=latest,enable={{is_default_branch}} 86 | type=ref,event=branch 87 | type=ref,event=pr 88 | type=semver,pattern={{version}} 89 | type=semver,pattern={{major}}.{{minor}} 90 | type=sha 91 | 92 | - name: Build and push Docker image 93 | uses: docker/build-push-action@v5 94 | with: 95 | context: . 96 | file: Dockerfile 97 | platforms: linux/amd64,linux/arm64 98 | push: ${{ github.event_name != 'pull_request' }} 99 | tags: ${{ steps.meta.outputs.tags }} 100 | labels: ${{ steps.meta.outputs.labels }} 101 | -------------------------------------------------------------------------------- /.github/workflows/stale.yml: -------------------------------------------------------------------------------- 1 | # This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time. 2 | # 3 | # You can adjust the behavior by modifying this file. 4 | # For more information, see: 5 | # https://github.com/actions/stale 6 | name: Mark stale issues and pull requests 7 | 8 | on: 9 | workflow_dispatch: 10 | schedule: 11 | - cron: '26 2 * * *' 12 | 13 | jobs: 14 | stale: 15 | 16 | runs-on: ubuntu-latest 17 | permissions: 18 | issues: write 19 | pull-requests: write 20 | 21 | steps: 22 | - uses: actions/stale@v5 23 | with: 24 | repo-token: ${{ secrets.GITHUB_TOKEN }} 25 | stale-issue-message: 'Stale issue message' 26 | stale-pr-message: 'Stale pull request message' 27 | stale-issue-label: 'no-issue-activity' 28 | stale-pr-label: 'no-pr-activity' 29 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | .pnpm-debug.log* 9 | 10 | # Diagnostic reports (https://nodejs.org/api/report.html) 11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 12 | 13 | # Runtime data 14 | pids 15 | *.pid 16 | *.seed 17 | *.pid.lock 18 | 19 | # Directory for instrumented libs generated by jscoverage/JSCover 20 | lib-cov 21 | 22 | # Coverage directory used by tools like istanbul 23 | coverage 24 | *.lcov 25 | 26 | # nyc test coverage 27 | .nyc_output 28 | 29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 30 | .grunt 31 | 32 | # Bower dependency directory (https://bower.io/) 33 | bower_components 34 | 35 | # node-waf configuration 36 | .lock-wscript 37 | 38 | # Compiled binary addons (https://nodejs.org/api/addons.html) 39 | build/Release 40 | 41 | # Dependency directories 42 | node_modules/ 43 | jspm_packages/ 44 | 45 | # Snowpack dependency directory (https://snowpack.dev/) 46 | web_modules/ 47 | 48 | # TypeScript cache 49 | *.tsbuildinfo 50 | 51 | # Optional npm cache directory 52 | .npm 53 | 54 | # Optional eslint cache 55 | .eslintcache 56 | 57 | # Optional stylelint cache 58 | .stylelintcache 59 | 60 | # Microbundle cache 61 | .rpt2_cache/ 62 | .rts2_cache_cjs/ 63 | .rts2_cache_es/ 64 | .rts2_cache_umd/ 65 | 66 | # Optional REPL history 67 | .node_repl_history 68 | 69 | # Output of 'npm pack' 70 | *.tgz 71 | 72 | # Yarn Integrity file 73 | .yarn-integrity 74 | 75 | # dotenv environment variable files 76 | .env 77 | .env.development.local 78 | .env.test.local 79 | .env.production.local 80 | .env.local 81 | 82 | # parcel-bundler cache (https://parceljs.org/) 83 | .cache 84 | .parcel-cache 85 | 86 | # Next.js build output 87 | .next 88 | out 89 | 90 | # Nuxt.js build / generate output 91 | .nuxt 92 | dist 93 | 94 | # Gatsby files 95 | .cache/ 96 | # Comment in the public line in if your project uses Gatsby and not Next.js 97 | # https://nextjs.org/blog/next-9-1#public-directory-support 98 | # public 99 | 100 | # vuepress build output 101 | .vuepress/dist 102 | 103 | # vuepress v2.x temp and cache directory 104 | .temp 105 | .cache 106 | 107 | # Docusaurus cache and generated files 108 | .docusaurus 109 | 110 | # Serverless directories 111 | .serverless/ 112 | 113 | # FuseBox cache 114 | .fusebox/ 115 | 116 | # DynamoDB Local files 117 | .dynamodb/ 118 | 119 | # TernJS port file 120 | .tern-port 121 | 122 | # Stores VSCode versions used for testing VSCode extensions 123 | .vscode-test 124 | 125 | # yarn v2 126 | .yarn/cache 127 | .yarn/unplugged 128 | .yarn/build-state.yml 129 | .yarn/install-state.gz 130 | .pnp.* 131 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM node:24-slim 2 | 3 | WORKDIR /app 4 | 5 | # Copy package files 6 | COPY package*.json ./ 7 | 8 | # Install dependencies 9 | RUN npm install --production 10 | 11 | # Install curl for healthcheck 12 | RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* 13 | 14 | # Copy application files 15 | COPY . . 16 | 17 | # Expose the application port 18 | EXPOSE 3000 19 | 20 | # Add healthcheck 21 | HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \ 22 | CMD curl -f http://localhost:3000/ || exit 1 23 | 24 | # Start the application 25 | CMD ["npm", "start"] 26 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Aaron Bolton 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ollama Model Manager 2 | 3 | A web-based management interface for Ollama endpoints, allowing you to manage and interact with multiple Ollama instances from a single dashboard. 4 | 5 | Demo Screenshot 6 | 7 | 8 | ## Features 9 | 10 | - Connect to multiple Ollama endpoints simultaneously 11 | - Web-based interface for model management 12 | - Support for both local and remote Ollama instances 13 | - Filter Models 14 | - Sort Models\ 15 | - Select Multiple Models or All Models 16 | - Delete Selected Models 17 | - Light & Dark Theme (defaults dark) 18 | - Update Models 19 | - Running Models Stats 20 | - Pull Models from Ollama Hub 21 | - Swagger API Documentation 22 | - [Unraid Deployment Guide (untested)](https://github.com/d3v0ps-cloud/OllamaModelManager/blob/main/docs/unraid.md) 23 | 24 | ## Prerequisites 25 | 26 | - Node.js 20.x or later (for npm installation) 27 | - Docker and Docker Compose (for Docker installation) 28 | - One or more running Ollama instances 29 | 30 | ## Installation 31 | 32 | ### Using npm 33 | 34 | 1. Clone the repository: 35 | ```bash 36 | git clone https://github.com/d3v0ps-cloud/OllamaModelManager.git 37 | ``` 38 | 39 | ```bash 40 | cd OllamaModelManager 41 | ``` 42 | 43 | 2. Install dependencies: 44 | ```bash 45 | npm install 46 | ``` 47 | 48 | 3. Create a `.env` file in the root directory and configure your Ollama endpoints: 49 | ```bash 50 | OLLAMA_ENDPOINTS=http://localhost:11434,https://ollama1.remote.net,https://ollama2.remote.net 51 | ``` 52 | 53 | 4. Start the application: 54 | 55 | Development mode (with hot reload): 56 | ```bash 57 | npm run dev 58 | ``` 59 | 60 | Production mode: 61 | ```bash 62 | npm start 63 | ``` 64 | 65 | The application will be available at `http://localhost:3000` 66 | 67 | ### Using Docker 68 | 69 | #### Option 1 - Build your own image 70 | 71 | 1. Clone the repository: 72 | ```bash 73 | git clone https://github.com/d3v0ps-cloud/OllamaModelManager.git 74 | ``` 75 | 76 | ```bash 77 | cd OllamaModelManager 78 | ``` 79 | 80 | 2. Configure your Ollama endpoints in `docker-compose.yml`: 81 | ```yaml 82 | environment: 83 | - OLLAMA_ENDPOINTS=http://your-ollama-ip:11434,https://ollama1.remote.net 84 | ``` 85 | 86 | 3. Build and start the container: 87 | ```bash 88 | docker compose up -d 89 | ``` 90 | 91 | The application will be available at `http://localhost:3000` 92 | 93 | #### Option 2 - Use the prebuilt image 94 | 95 | 1. Copy down the Pre-Built Compose file: 96 | ```bash 97 | docker-compose-prebuilt.yml 98 | ``` 99 | 100 | 2. Configure your Ollama endpoints in `docker-compose-prebuilt.yml`: 101 | ```yaml 102 | environment: 103 | - OLLAMA_ENDPOINTS=http://your-ollama-ip:11434,https://ollama1.remote.net 104 | ``` 105 | 106 | 3. Build and start the container: 107 | ```bash 108 | docker compose up -d 109 | ``` 110 | 111 | The application will be available at `http://localhost:3000` 112 | 113 | ## Configuration 114 | 115 | ### Environment Variables 116 | 117 | - `OLLAMA_ENDPOINTS`: Comma-separated list of Ollama API endpoints (required) 118 | - Format: `http://host1:port,http://host2:port` 119 | - Example: `http://192.168.1.10:11434,https://ollama1.remote.net` 120 | 121 | ## Development 122 | 123 | To run the application in development mode with hot reload: 124 | 125 | ```bash 126 | npm run dev 127 | ``` 128 | 129 | -------------------------------------------------------------------------------- /demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/d3v0ps-cloud/OllamaModelManager/9d44f9c4c17dd1eac45db098e7130a9e951b48d0/demo.png -------------------------------------------------------------------------------- /docker-compose-prebuilt.yaml: -------------------------------------------------------------------------------- 1 | services: 2 | ollamamodelmanager: 3 | #image: ghcr.io/d3v0ps-cloud/ollamamodelmanager:latest 4 | image: aaronbolton78/ollamamodelmanager:latest 5 | ports: 6 | - "3000:3000" 7 | environment: 8 | - OLLAMA_ENDPOINTS=http://192.168.1.10:11434,https://ollama1.remote.net,https://ollama2.remote.net 9 | restart: unless-stopped 10 | -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- 1 | services: 2 | ollamamodelmanager: 3 | build: 4 | context: . 5 | dockerfile: Dockerfile 6 | # image: ollamamodelmanager:latest 7 | container_name: ollamamodelmanager 8 | restart: unless-stopped 9 | ports: 10 | - "3000:3000" 11 | environment: 12 | - OLLAMA_ENDPOINTS=${OLLAMA_ENDPOINTS:-ollama:11434} -------------------------------------------------------------------------------- /docs/api.md: -------------------------------------------------------------------------------- 1 | # Ollama Model Manager API Documentation 2 | 3 | This document outlines the REST API endpoints exposed by the Ollama Model Manager application. 4 | 5 | ## Base URL 6 | 7 | By default, the server runs on `http://localhost:3000` 8 | 9 | ## Environment Configuration 10 | 11 | - `OLLAMA_ENDPOINTS`: Comma-separated list of Ollama endpoints (default: 'http://localhost:11434') 12 | 13 | ## Endpoints 14 | 15 | ### Get Available Ollama Endpoints 16 | 17 | ```http 18 | GET /api/endpoints 19 | ``` 20 | 21 | Returns a list of configured Ollama endpoints. 22 | 23 | **Response** 24 | ```json 25 | [ 26 | "http://localhost:11434", 27 | "http://other-endpoint:11434" 28 | ] 29 | ``` 30 | 31 | ### Set Active Ollama Endpoint 32 | 33 | ```http 34 | POST /api/set-endpoint 35 | ``` 36 | 37 | Sets and validates the active Ollama endpoint. 38 | 39 | **Request Body** 40 | ```json 41 | { 42 | "endpoint": "http://localhost:11434" 43 | } 44 | ``` 45 | 46 | **Response** 47 | ```json 48 | { 49 | "success": true, 50 | "message": "Endpoint set successfully" 51 | } 52 | ``` 53 | 54 | **Error Response** (500) 55 | ```json 56 | { 57 | "success": false, 58 | "message": "Failed to connect to Ollama endpoint", 59 | "error": "error message" 60 | } 61 | ``` 62 | 63 | ### Get Running Models 64 | 65 | ```http 66 | GET /api/ps 67 | ``` 68 | 69 | Returns a list of currently running Ollama models. 70 | 71 | **Response** 72 | ```json 73 | { 74 | // Response format matches Ollama's /api/ps endpoint 75 | } 76 | ``` 77 | 78 | **Error Response** (500) 79 | ```json 80 | { 81 | "success": false, 82 | "message": "Failed to fetch running models", 83 | "error": "error message" 84 | } 85 | ``` 86 | 87 | ### Get Available Models 88 | 89 | ```http 90 | GET /api/models 91 | ``` 92 | 93 | Returns a list of available models with their details. 94 | 95 | **Response** 96 | ```json 97 | [ 98 | { 99 | "name": "model-name", 100 | "size": 12345678, 101 | "details": { 102 | "parent_model": "base-model", 103 | "format": "gguf", 104 | "family": "llama", 105 | "families": ["llama", "llama2"], 106 | "parameter_size": "7B", 107 | "quantization_level": "Q4_K_M" 108 | } 109 | } 110 | ] 111 | ``` 112 | 113 | **Error Response** (500) 114 | ```json 115 | { 116 | "success": false, 117 | "message": "Failed to fetch models", 118 | "error": "error message" 119 | } 120 | ``` 121 | 122 | ### Delete Models 123 | 124 | ```http 125 | DELETE /api/models 126 | ``` 127 | 128 | Deletes one or more models from Ollama. 129 | 130 | **Request Body** 131 | ```json 132 | { 133 | "models": ["model1", "model2"] 134 | } 135 | ``` 136 | 137 | **Success Response** 138 | ```json 139 | { 140 | "success": true, 141 | "message": "Models deleted successfully" 142 | } 143 | ``` 144 | 145 | **Error Response** (500) 146 | ```json 147 | { 148 | "success": false, 149 | "message": "Failed to delete models: model1, model2", 150 | } 151 | ``` 152 | 153 | ### Pull Model 154 | 155 | ```http 156 | POST /api/pull 157 | ``` 158 | 159 | Pulls a new model from Ollama. Returns a streaming response with progress updates. 160 | 161 | **Request Body** 162 | ```json 163 | { 164 | "model": "model-name" 165 | } 166 | ``` 167 | 168 | **Streaming Response Format** 169 | ```json 170 | {"status": "downloading", "completed": 1234, "total": 5678} 171 | {"status": "verifying digest"} 172 | {"status": "writing manifest"} 173 | ``` 174 | 175 | **Error Response** (400) 176 | ```json 177 | { 178 | "success": false, 179 | "message": "Model name is required" 180 | } 181 | ``` 182 | 183 | ### Update Model 184 | 185 | ```http 186 | POST /api/update-model 187 | ``` 188 | 189 | Updates an existing model. Returns a streaming response with progress updates. 190 | 191 | **Request Body** 192 | ```json 193 | { 194 | "modelName": "model-name" 195 | } 196 | ``` 197 | 198 | **Streaming Response Format** 199 | ```json 200 | {"status": "downloading", "completed": 1234, "total": 5678} 201 | {"status": "verifying digest"} 202 | {"status": "writing manifest"} 203 | ``` 204 | 205 | **Error Response** (400) 206 | ```json 207 | { 208 | "success": false, 209 | "message": "Model name is required" 210 | } 211 | ``` 212 | 213 | ## Error Handling 214 | 215 | All endpoints follow a consistent error response format: 216 | 217 | ```json 218 | { 219 | "success": false, 220 | "message": "Human readable error message", 221 | "error": "Detailed error information (optional)" 222 | } 223 | ``` 224 | 225 | ## Streaming Responses 226 | 227 | For endpoints that return streaming responses (pull and update-model): 228 | 229 | 1. The response is chunked and each chunk contains a JSON object 230 | 2. Each JSON object has a `status` field indicating the current operation 231 | 3. For download progress, the response includes `completed` and `total` bytes 232 | 4. The stream ends when the operation is complete or an error occurs 233 | 5. Error responses in streams include `status: "error"` and an `error` message 234 | -------------------------------------------------------------------------------- /docs/unraid.md: -------------------------------------------------------------------------------- 1 | ### (Untested I dont have unraid to confirm) 2 | 3 | # Unraid Deployment Guide for Ollama Model Manager 4 | 5 | This guide covers how to deploy the Ollama Model Manager on Unraid using Docker. 6 | 7 | ## Prerequisites 8 | 9 | - Unraid server running version 6.9.0 or higher 10 | - Community Applications (CA) plugin installed 11 | - Docker enabled on your Unraid server 12 | - One or more Ollama instances accessible from your network 13 | 14 | ## Installation Steps 15 | 16 | ### 1. Install via Docker 17 | 18 | #### Manual Configuration 19 | 20 | 1. Click "Add Container" in the Docker tab 21 | 2. Fill in the following fields: 22 | 23 | ```yaml 24 | Repository: ghcr.io/d3v0ps-cloud/ollamamodelmanager:latest 25 | Name: ollamamodelmanager 26 | Network Type: Bridge 27 | 28 | # Port Mappings 29 | Host Port: 3000 30 | Container Port: 3000 31 | Protocol: TCP 32 | 33 | # Environment Variables 34 | Variable: OLLAMA_ENDPOINTS 35 | Value: http://your-ollama-ip:11434,https://ollama2.remote.net 36 | 37 | # Optional: Auto-start container 38 | Start on array boot: Yes 39 | ``` -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- 1 | import js from '@eslint/js'; 2 | 3 | export default [ 4 | js.configs.recommended, 5 | { 6 | languageOptions: { 7 | ecmaVersion: 'latest', 8 | sourceType: 'module', 9 | globals: { 10 | // Browser globals 11 | window: 'readonly', 12 | document: 'readonly', 13 | fetch: 'readonly', 14 | TextDecoder: 'readonly', 15 | setTimeout: 'readonly', 16 | // Functions defined in HTML 17 | updateSelectedModels: 'readonly', 18 | updateSelectedModelsInBulk: 'readonly', 19 | displayModels: 'readonly', 20 | formatBytes: 'readonly', 21 | refreshModels: 'readonly', 22 | // Node.js globals 23 | console: 'readonly', 24 | process: 'readonly', 25 | __dirname: 'readonly', 26 | __filename: 'readonly', 27 | exports: 'readonly', 28 | module: 'readonly', 29 | require: 'readonly', 30 | }, 31 | }, 32 | rules: { 33 | // Additional custom rules 34 | 'no-unused-vars': 'warn', 35 | 'no-console': 'off', // Allow console for server-side logging 36 | 'semi': ['error', 'always'], 37 | 'quotes': ['error', 'single'], 38 | }, 39 | // Files to lint 40 | files: ['**/*.js'], 41 | // Files to ignore 42 | ignores: ['node_modules/**', 'build/**', 'dist/**'], 43 | }, 44 | ]; 45 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ollamamodelmanager", 3 | "version": "1.0.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "ollamamodelmanager", 9 | "version": "1.0.0", 10 | "license": "ISC", 11 | "dependencies": { 12 | "axios": "^1.7.9", 13 | "cors": "^2.8.5", 14 | "dotenv": "^16.4.7", 15 | "express": "^4.21.2" 16 | }, 17 | "devDependencies": { 18 | "@eslint/js": "^9.20.0", 19 | "eslint": "^9.20.0", 20 | "nodemon": "^3.1.9" 21 | } 22 | }, 23 | "node_modules/@eslint-community/eslint-utils": { 24 | "version": "4.6.1", 25 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.6.1.tgz", 26 | "integrity": "sha512-KTsJMmobmbrFLe3LDh0PC2FXpcSYJt/MLjlkh/9LEnmKYLSYmT/0EW9JWANjeoemiuZrmogti0tW5Ch+qNUYDw==", 27 | "dev": true, 28 | "license": "MIT", 29 | "dependencies": { 30 | "eslint-visitor-keys": "^3.4.3" 31 | }, 32 | "engines": { 33 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 34 | }, 35 | "funding": { 36 | "url": "https://opencollective.com/eslint" 37 | }, 38 | "peerDependencies": { 39 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 40 | } 41 | }, 42 | "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { 43 | "version": "3.4.3", 44 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", 45 | "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", 46 | "dev": true, 47 | "license": "Apache-2.0", 48 | "engines": { 49 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 50 | }, 51 | "funding": { 52 | "url": "https://opencollective.com/eslint" 53 | } 54 | }, 55 | "node_modules/@eslint-community/regexpp": { 56 | "version": "4.12.1", 57 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", 58 | "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", 59 | "dev": true, 60 | "license": "MIT", 61 | "engines": { 62 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 63 | } 64 | }, 65 | "node_modules/@eslint/config-array": { 66 | "version": "0.20.0", 67 | "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz", 68 | "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==", 69 | "dev": true, 70 | "license": "Apache-2.0", 71 | "dependencies": { 72 | "@eslint/object-schema": "^2.1.6", 73 | "debug": "^4.3.1", 74 | "minimatch": "^3.1.2" 75 | }, 76 | "engines": { 77 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 78 | } 79 | }, 80 | "node_modules/@eslint/config-helpers": { 81 | "version": "0.2.1", 82 | "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.1.tgz", 83 | "integrity": "sha512-RI17tsD2frtDu/3dmI7QRrD4bedNKPM08ziRYaC5AhkGrzIAJelm9kJU1TznK+apx6V+cqRz8tfpEeG3oIyjxw==", 84 | "dev": true, 85 | "license": "Apache-2.0", 86 | "engines": { 87 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 88 | } 89 | }, 90 | "node_modules/@eslint/core": { 91 | "version": "0.13.0", 92 | "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.13.0.tgz", 93 | "integrity": "sha512-yfkgDw1KR66rkT5A8ci4irzDysN7FRpq3ttJolR88OqQikAWqwA8j5VZyas+vjyBNFIJ7MfybJ9plMILI2UrCw==", 94 | "dev": true, 95 | "license": "Apache-2.0", 96 | "dependencies": { 97 | "@types/json-schema": "^7.0.15" 98 | }, 99 | "engines": { 100 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 101 | } 102 | }, 103 | "node_modules/@eslint/eslintrc": { 104 | "version": "3.3.1", 105 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", 106 | "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", 107 | "dev": true, 108 | "license": "MIT", 109 | "dependencies": { 110 | "ajv": "^6.12.4", 111 | "debug": "^4.3.2", 112 | "espree": "^10.0.1", 113 | "globals": "^14.0.0", 114 | "ignore": "^5.2.0", 115 | "import-fresh": "^3.2.1", 116 | "js-yaml": "^4.1.0", 117 | "minimatch": "^3.1.2", 118 | "strip-json-comments": "^3.1.1" 119 | }, 120 | "engines": { 121 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 122 | }, 123 | "funding": { 124 | "url": "https://opencollective.com/eslint" 125 | } 126 | }, 127 | "node_modules/@eslint/js": { 128 | "version": "9.25.1", 129 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.25.1.tgz", 130 | "integrity": "sha512-dEIwmjntEx8u3Uvv+kr3PDeeArL8Hw07H9kyYxCjnM9pBjfEhk6uLXSchxxzgiwtRhhzVzqmUSDFBOi1TuZ7qg==", 131 | "dev": true, 132 | "license": "MIT", 133 | "engines": { 134 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 135 | } 136 | }, 137 | "node_modules/@eslint/object-schema": { 138 | "version": "2.1.6", 139 | "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", 140 | "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", 141 | "dev": true, 142 | "license": "Apache-2.0", 143 | "engines": { 144 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 145 | } 146 | }, 147 | "node_modules/@eslint/plugin-kit": { 148 | "version": "0.2.8", 149 | "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.8.tgz", 150 | "integrity": "sha512-ZAoA40rNMPwSm+AeHpCq8STiNAwzWLJuP8Xv4CHIc9wv/PSuExjMrmjfYNj682vW0OOiZ1HKxzvjQr9XZIisQA==", 151 | "dev": true, 152 | "license": "Apache-2.0", 153 | "dependencies": { 154 | "@eslint/core": "^0.13.0", 155 | "levn": "^0.4.1" 156 | }, 157 | "engines": { 158 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 159 | } 160 | }, 161 | "node_modules/@humanfs/core": { 162 | "version": "0.19.1", 163 | "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", 164 | "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", 165 | "dev": true, 166 | "license": "Apache-2.0", 167 | "engines": { 168 | "node": ">=18.18.0" 169 | } 170 | }, 171 | "node_modules/@humanfs/node": { 172 | "version": "0.16.6", 173 | "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", 174 | "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", 175 | "dev": true, 176 | "license": "Apache-2.0", 177 | "dependencies": { 178 | "@humanfs/core": "^0.19.1", 179 | "@humanwhocodes/retry": "^0.3.0" 180 | }, 181 | "engines": { 182 | "node": ">=18.18.0" 183 | } 184 | }, 185 | "node_modules/@humanfs/node/node_modules/@humanwhocodes/retry": { 186 | "version": "0.3.1", 187 | "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.1.tgz", 188 | "integrity": "sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==", 189 | "dev": true, 190 | "license": "Apache-2.0", 191 | "engines": { 192 | "node": ">=18.18" 193 | }, 194 | "funding": { 195 | "type": "github", 196 | "url": "https://github.com/sponsors/nzakas" 197 | } 198 | }, 199 | "node_modules/@humanwhocodes/module-importer": { 200 | "version": "1.0.1", 201 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 202 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 203 | "dev": true, 204 | "license": "Apache-2.0", 205 | "engines": { 206 | "node": ">=12.22" 207 | }, 208 | "funding": { 209 | "type": "github", 210 | "url": "https://github.com/sponsors/nzakas" 211 | } 212 | }, 213 | "node_modules/@humanwhocodes/retry": { 214 | "version": "0.4.2", 215 | "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.2.tgz", 216 | "integrity": "sha512-xeO57FpIu4p1Ri3Jq/EXq4ClRm86dVF2z/+kvFnyqVYRavTZmaFaUBbWCOuuTh0o/g7DSsk6kc2vrS4Vl5oPOQ==", 217 | "dev": true, 218 | "license": "Apache-2.0", 219 | "engines": { 220 | "node": ">=18.18" 221 | }, 222 | "funding": { 223 | "type": "github", 224 | "url": "https://github.com/sponsors/nzakas" 225 | } 226 | }, 227 | "node_modules/@types/estree": { 228 | "version": "1.0.7", 229 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.7.tgz", 230 | "integrity": "sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==", 231 | "dev": true, 232 | "license": "MIT" 233 | }, 234 | "node_modules/@types/json-schema": { 235 | "version": "7.0.15", 236 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", 237 | "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", 238 | "dev": true, 239 | "license": "MIT" 240 | }, 241 | "node_modules/accepts": { 242 | "version": "1.3.8", 243 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 244 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 245 | "license": "MIT", 246 | "dependencies": { 247 | "mime-types": "~2.1.34", 248 | "negotiator": "0.6.3" 249 | }, 250 | "engines": { 251 | "node": ">= 0.6" 252 | } 253 | }, 254 | "node_modules/acorn": { 255 | "version": "8.14.1", 256 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", 257 | "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", 258 | "dev": true, 259 | "license": "MIT", 260 | "bin": { 261 | "acorn": "bin/acorn" 262 | }, 263 | "engines": { 264 | "node": ">=0.4.0" 265 | } 266 | }, 267 | "node_modules/acorn-jsx": { 268 | "version": "5.3.2", 269 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 270 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 271 | "dev": true, 272 | "license": "MIT", 273 | "peerDependencies": { 274 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 275 | } 276 | }, 277 | "node_modules/ajv": { 278 | "version": "6.12.6", 279 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 280 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 281 | "dev": true, 282 | "license": "MIT", 283 | "dependencies": { 284 | "fast-deep-equal": "^3.1.1", 285 | "fast-json-stable-stringify": "^2.0.0", 286 | "json-schema-traverse": "^0.4.1", 287 | "uri-js": "^4.2.2" 288 | }, 289 | "funding": { 290 | "type": "github", 291 | "url": "https://github.com/sponsors/epoberezkin" 292 | } 293 | }, 294 | "node_modules/ansi-styles": { 295 | "version": "4.3.0", 296 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 297 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 298 | "dev": true, 299 | "license": "MIT", 300 | "dependencies": { 301 | "color-convert": "^2.0.1" 302 | }, 303 | "engines": { 304 | "node": ">=8" 305 | }, 306 | "funding": { 307 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 308 | } 309 | }, 310 | "node_modules/anymatch": { 311 | "version": "3.1.3", 312 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 313 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 314 | "dev": true, 315 | "license": "ISC", 316 | "dependencies": { 317 | "normalize-path": "^3.0.0", 318 | "picomatch": "^2.0.4" 319 | }, 320 | "engines": { 321 | "node": ">= 8" 322 | } 323 | }, 324 | "node_modules/argparse": { 325 | "version": "2.0.1", 326 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 327 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 328 | "dev": true, 329 | "license": "Python-2.0" 330 | }, 331 | "node_modules/array-flatten": { 332 | "version": "1.1.1", 333 | "resolved": "https://registry.npmjs.org/array-flatten/-/array-flatten-1.1.1.tgz", 334 | "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", 335 | "license": "MIT" 336 | }, 337 | "node_modules/asynckit": { 338 | "version": "0.4.0", 339 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 340 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", 341 | "license": "MIT" 342 | }, 343 | "node_modules/axios": { 344 | "version": "1.9.0", 345 | "resolved": "https://registry.npmjs.org/axios/-/axios-1.9.0.tgz", 346 | "integrity": "sha512-re4CqKTJaURpzbLHtIi6XpDv20/CnpXOtjRY5/CU32L8gU8ek9UIivcfvSWvmKEngmVbrUtPpdDwWDWL7DNHvg==", 347 | "license": "MIT", 348 | "dependencies": { 349 | "follow-redirects": "^1.15.6", 350 | "form-data": "^4.0.0", 351 | "proxy-from-env": "^1.1.0" 352 | } 353 | }, 354 | "node_modules/balanced-match": { 355 | "version": "1.0.2", 356 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 357 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 358 | "dev": true, 359 | "license": "MIT" 360 | }, 361 | "node_modules/binary-extensions": { 362 | "version": "2.3.0", 363 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", 364 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", 365 | "dev": true, 366 | "license": "MIT", 367 | "engines": { 368 | "node": ">=8" 369 | }, 370 | "funding": { 371 | "url": "https://github.com/sponsors/sindresorhus" 372 | } 373 | }, 374 | "node_modules/body-parser": { 375 | "version": "1.20.3", 376 | "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.3.tgz", 377 | "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", 378 | "license": "MIT", 379 | "dependencies": { 380 | "bytes": "3.1.2", 381 | "content-type": "~1.0.5", 382 | "debug": "2.6.9", 383 | "depd": "2.0.0", 384 | "destroy": "1.2.0", 385 | "http-errors": "2.0.0", 386 | "iconv-lite": "0.4.24", 387 | "on-finished": "2.4.1", 388 | "qs": "6.13.0", 389 | "raw-body": "2.5.2", 390 | "type-is": "~1.6.18", 391 | "unpipe": "1.0.0" 392 | }, 393 | "engines": { 394 | "node": ">= 0.8", 395 | "npm": "1.2.8000 || >= 1.4.16" 396 | } 397 | }, 398 | "node_modules/body-parser/node_modules/debug": { 399 | "version": "2.6.9", 400 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 401 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 402 | "license": "MIT", 403 | "dependencies": { 404 | "ms": "2.0.0" 405 | } 406 | }, 407 | "node_modules/body-parser/node_modules/ms": { 408 | "version": "2.0.0", 409 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 410 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 411 | "license": "MIT" 412 | }, 413 | "node_modules/brace-expansion": { 414 | "version": "1.1.11", 415 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 416 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 417 | "dev": true, 418 | "license": "MIT", 419 | "dependencies": { 420 | "balanced-match": "^1.0.0", 421 | "concat-map": "0.0.1" 422 | } 423 | }, 424 | "node_modules/braces": { 425 | "version": "3.0.3", 426 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 427 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 428 | "dev": true, 429 | "license": "MIT", 430 | "dependencies": { 431 | "fill-range": "^7.1.1" 432 | }, 433 | "engines": { 434 | "node": ">=8" 435 | } 436 | }, 437 | "node_modules/bytes": { 438 | "version": "3.1.2", 439 | "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", 440 | "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", 441 | "license": "MIT", 442 | "engines": { 443 | "node": ">= 0.8" 444 | } 445 | }, 446 | "node_modules/call-bind-apply-helpers": { 447 | "version": "1.0.2", 448 | "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", 449 | "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", 450 | "license": "MIT", 451 | "dependencies": { 452 | "es-errors": "^1.3.0", 453 | "function-bind": "^1.1.2" 454 | }, 455 | "engines": { 456 | "node": ">= 0.4" 457 | } 458 | }, 459 | "node_modules/call-bound": { 460 | "version": "1.0.4", 461 | "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", 462 | "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", 463 | "license": "MIT", 464 | "dependencies": { 465 | "call-bind-apply-helpers": "^1.0.2", 466 | "get-intrinsic": "^1.3.0" 467 | }, 468 | "engines": { 469 | "node": ">= 0.4" 470 | }, 471 | "funding": { 472 | "url": "https://github.com/sponsors/ljharb" 473 | } 474 | }, 475 | "node_modules/callsites": { 476 | "version": "3.1.0", 477 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 478 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 479 | "dev": true, 480 | "license": "MIT", 481 | "engines": { 482 | "node": ">=6" 483 | } 484 | }, 485 | "node_modules/chalk": { 486 | "version": "4.1.2", 487 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 488 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 489 | "dev": true, 490 | "license": "MIT", 491 | "dependencies": { 492 | "ansi-styles": "^4.1.0", 493 | "supports-color": "^7.1.0" 494 | }, 495 | "engines": { 496 | "node": ">=10" 497 | }, 498 | "funding": { 499 | "url": "https://github.com/chalk/chalk?sponsor=1" 500 | } 501 | }, 502 | "node_modules/chokidar": { 503 | "version": "3.6.0", 504 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 505 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 506 | "dev": true, 507 | "license": "MIT", 508 | "dependencies": { 509 | "anymatch": "~3.1.2", 510 | "braces": "~3.0.2", 511 | "glob-parent": "~5.1.2", 512 | "is-binary-path": "~2.1.0", 513 | "is-glob": "~4.0.1", 514 | "normalize-path": "~3.0.0", 515 | "readdirp": "~3.6.0" 516 | }, 517 | "engines": { 518 | "node": ">= 8.10.0" 519 | }, 520 | "funding": { 521 | "url": "https://paulmillr.com/funding/" 522 | }, 523 | "optionalDependencies": { 524 | "fsevents": "~2.3.2" 525 | } 526 | }, 527 | "node_modules/chokidar/node_modules/glob-parent": { 528 | "version": "5.1.2", 529 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 530 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 531 | "dev": true, 532 | "license": "ISC", 533 | "dependencies": { 534 | "is-glob": "^4.0.1" 535 | }, 536 | "engines": { 537 | "node": ">= 6" 538 | } 539 | }, 540 | "node_modules/color-convert": { 541 | "version": "2.0.1", 542 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 543 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 544 | "dev": true, 545 | "license": "MIT", 546 | "dependencies": { 547 | "color-name": "~1.1.4" 548 | }, 549 | "engines": { 550 | "node": ">=7.0.0" 551 | } 552 | }, 553 | "node_modules/color-name": { 554 | "version": "1.1.4", 555 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 556 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 557 | "dev": true, 558 | "license": "MIT" 559 | }, 560 | "node_modules/combined-stream": { 561 | "version": "1.0.8", 562 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 563 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 564 | "license": "MIT", 565 | "dependencies": { 566 | "delayed-stream": "~1.0.0" 567 | }, 568 | "engines": { 569 | "node": ">= 0.8" 570 | } 571 | }, 572 | "node_modules/concat-map": { 573 | "version": "0.0.1", 574 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 575 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 576 | "dev": true, 577 | "license": "MIT" 578 | }, 579 | "node_modules/content-disposition": { 580 | "version": "0.5.4", 581 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 582 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 583 | "license": "MIT", 584 | "dependencies": { 585 | "safe-buffer": "5.2.1" 586 | }, 587 | "engines": { 588 | "node": ">= 0.6" 589 | } 590 | }, 591 | "node_modules/content-type": { 592 | "version": "1.0.5", 593 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 594 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 595 | "license": "MIT", 596 | "engines": { 597 | "node": ">= 0.6" 598 | } 599 | }, 600 | "node_modules/cookie": { 601 | "version": "0.7.1", 602 | "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.1.tgz", 603 | "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", 604 | "license": "MIT", 605 | "engines": { 606 | "node": ">= 0.6" 607 | } 608 | }, 609 | "node_modules/cookie-signature": { 610 | "version": "1.0.6", 611 | "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.6.tgz", 612 | "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", 613 | "license": "MIT" 614 | }, 615 | "node_modules/cors": { 616 | "version": "2.8.5", 617 | "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz", 618 | "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", 619 | "license": "MIT", 620 | "dependencies": { 621 | "object-assign": "^4", 622 | "vary": "^1" 623 | }, 624 | "engines": { 625 | "node": ">= 0.10" 626 | } 627 | }, 628 | "node_modules/cross-spawn": { 629 | "version": "7.0.6", 630 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", 631 | "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", 632 | "dev": true, 633 | "license": "MIT", 634 | "dependencies": { 635 | "path-key": "^3.1.0", 636 | "shebang-command": "^2.0.0", 637 | "which": "^2.0.1" 638 | }, 639 | "engines": { 640 | "node": ">= 8" 641 | } 642 | }, 643 | "node_modules/debug": { 644 | "version": "4.4.0", 645 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 646 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 647 | "dev": true, 648 | "license": "MIT", 649 | "dependencies": { 650 | "ms": "^2.1.3" 651 | }, 652 | "engines": { 653 | "node": ">=6.0" 654 | }, 655 | "peerDependenciesMeta": { 656 | "supports-color": { 657 | "optional": true 658 | } 659 | } 660 | }, 661 | "node_modules/deep-is": { 662 | "version": "0.1.4", 663 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 664 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 665 | "dev": true, 666 | "license": "MIT" 667 | }, 668 | "node_modules/delayed-stream": { 669 | "version": "1.0.0", 670 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 671 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", 672 | "license": "MIT", 673 | "engines": { 674 | "node": ">=0.4.0" 675 | } 676 | }, 677 | "node_modules/depd": { 678 | "version": "2.0.0", 679 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 680 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 681 | "license": "MIT", 682 | "engines": { 683 | "node": ">= 0.8" 684 | } 685 | }, 686 | "node_modules/destroy": { 687 | "version": "1.2.0", 688 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 689 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 690 | "license": "MIT", 691 | "engines": { 692 | "node": ">= 0.8", 693 | "npm": "1.2.8000 || >= 1.4.16" 694 | } 695 | }, 696 | "node_modules/dotenv": { 697 | "version": "16.5.0", 698 | "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz", 699 | "integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==", 700 | "license": "BSD-2-Clause", 701 | "engines": { 702 | "node": ">=12" 703 | }, 704 | "funding": { 705 | "url": "https://dotenvx.com" 706 | } 707 | }, 708 | "node_modules/dunder-proto": { 709 | "version": "1.0.1", 710 | "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", 711 | "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", 712 | "license": "MIT", 713 | "dependencies": { 714 | "call-bind-apply-helpers": "^1.0.1", 715 | "es-errors": "^1.3.0", 716 | "gopd": "^1.2.0" 717 | }, 718 | "engines": { 719 | "node": ">= 0.4" 720 | } 721 | }, 722 | "node_modules/ee-first": { 723 | "version": "1.1.1", 724 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 725 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", 726 | "license": "MIT" 727 | }, 728 | "node_modules/encodeurl": { 729 | "version": "2.0.0", 730 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", 731 | "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", 732 | "license": "MIT", 733 | "engines": { 734 | "node": ">= 0.8" 735 | } 736 | }, 737 | "node_modules/es-define-property": { 738 | "version": "1.0.1", 739 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", 740 | "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", 741 | "license": "MIT", 742 | "engines": { 743 | "node": ">= 0.4" 744 | } 745 | }, 746 | "node_modules/es-errors": { 747 | "version": "1.3.0", 748 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 749 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 750 | "license": "MIT", 751 | "engines": { 752 | "node": ">= 0.4" 753 | } 754 | }, 755 | "node_modules/es-object-atoms": { 756 | "version": "1.1.1", 757 | "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", 758 | "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", 759 | "license": "MIT", 760 | "dependencies": { 761 | "es-errors": "^1.3.0" 762 | }, 763 | "engines": { 764 | "node": ">= 0.4" 765 | } 766 | }, 767 | "node_modules/es-set-tostringtag": { 768 | "version": "2.1.0", 769 | "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", 770 | "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", 771 | "license": "MIT", 772 | "dependencies": { 773 | "es-errors": "^1.3.0", 774 | "get-intrinsic": "^1.2.6", 775 | "has-tostringtag": "^1.0.2", 776 | "hasown": "^2.0.2" 777 | }, 778 | "engines": { 779 | "node": ">= 0.4" 780 | } 781 | }, 782 | "node_modules/escape-html": { 783 | "version": "1.0.3", 784 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 785 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", 786 | "license": "MIT" 787 | }, 788 | "node_modules/escape-string-regexp": { 789 | "version": "4.0.0", 790 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 791 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 792 | "dev": true, 793 | "license": "MIT", 794 | "engines": { 795 | "node": ">=10" 796 | }, 797 | "funding": { 798 | "url": "https://github.com/sponsors/sindresorhus" 799 | } 800 | }, 801 | "node_modules/eslint": { 802 | "version": "9.25.1", 803 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.25.1.tgz", 804 | "integrity": "sha512-E6Mtz9oGQWDCpV12319d59n4tx9zOTXSTmc8BLVxBx+G/0RdM5MvEEJLU9c0+aleoePYYgVTOsRblx433qmhWQ==", 805 | "dev": true, 806 | "license": "MIT", 807 | "dependencies": { 808 | "@eslint-community/eslint-utils": "^4.2.0", 809 | "@eslint-community/regexpp": "^4.12.1", 810 | "@eslint/config-array": "^0.20.0", 811 | "@eslint/config-helpers": "^0.2.1", 812 | "@eslint/core": "^0.13.0", 813 | "@eslint/eslintrc": "^3.3.1", 814 | "@eslint/js": "9.25.1", 815 | "@eslint/plugin-kit": "^0.2.8", 816 | "@humanfs/node": "^0.16.6", 817 | "@humanwhocodes/module-importer": "^1.0.1", 818 | "@humanwhocodes/retry": "^0.4.2", 819 | "@types/estree": "^1.0.6", 820 | "@types/json-schema": "^7.0.15", 821 | "ajv": "^6.12.4", 822 | "chalk": "^4.0.0", 823 | "cross-spawn": "^7.0.6", 824 | "debug": "^4.3.2", 825 | "escape-string-regexp": "^4.0.0", 826 | "eslint-scope": "^8.3.0", 827 | "eslint-visitor-keys": "^4.2.0", 828 | "espree": "^10.3.0", 829 | "esquery": "^1.5.0", 830 | "esutils": "^2.0.2", 831 | "fast-deep-equal": "^3.1.3", 832 | "file-entry-cache": "^8.0.0", 833 | "find-up": "^5.0.0", 834 | "glob-parent": "^6.0.2", 835 | "ignore": "^5.2.0", 836 | "imurmurhash": "^0.1.4", 837 | "is-glob": "^4.0.0", 838 | "json-stable-stringify-without-jsonify": "^1.0.1", 839 | "lodash.merge": "^4.6.2", 840 | "minimatch": "^3.1.2", 841 | "natural-compare": "^1.4.0", 842 | "optionator": "^0.9.3" 843 | }, 844 | "bin": { 845 | "eslint": "bin/eslint.js" 846 | }, 847 | "engines": { 848 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 849 | }, 850 | "funding": { 851 | "url": "https://eslint.org/donate" 852 | }, 853 | "peerDependencies": { 854 | "jiti": "*" 855 | }, 856 | "peerDependenciesMeta": { 857 | "jiti": { 858 | "optional": true 859 | } 860 | } 861 | }, 862 | "node_modules/eslint-scope": { 863 | "version": "8.3.0", 864 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", 865 | "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", 866 | "dev": true, 867 | "license": "BSD-2-Clause", 868 | "dependencies": { 869 | "esrecurse": "^4.3.0", 870 | "estraverse": "^5.2.0" 871 | }, 872 | "engines": { 873 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 874 | }, 875 | "funding": { 876 | "url": "https://opencollective.com/eslint" 877 | } 878 | }, 879 | "node_modules/eslint-visitor-keys": { 880 | "version": "4.2.0", 881 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", 882 | "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", 883 | "dev": true, 884 | "license": "Apache-2.0", 885 | "engines": { 886 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 887 | }, 888 | "funding": { 889 | "url": "https://opencollective.com/eslint" 890 | } 891 | }, 892 | "node_modules/espree": { 893 | "version": "10.3.0", 894 | "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", 895 | "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", 896 | "dev": true, 897 | "license": "BSD-2-Clause", 898 | "dependencies": { 899 | "acorn": "^8.14.0", 900 | "acorn-jsx": "^5.3.2", 901 | "eslint-visitor-keys": "^4.2.0" 902 | }, 903 | "engines": { 904 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 905 | }, 906 | "funding": { 907 | "url": "https://opencollective.com/eslint" 908 | } 909 | }, 910 | "node_modules/esquery": { 911 | "version": "1.6.0", 912 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", 913 | "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", 914 | "dev": true, 915 | "license": "BSD-3-Clause", 916 | "dependencies": { 917 | "estraverse": "^5.1.0" 918 | }, 919 | "engines": { 920 | "node": ">=0.10" 921 | } 922 | }, 923 | "node_modules/esrecurse": { 924 | "version": "4.3.0", 925 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 926 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 927 | "dev": true, 928 | "license": "BSD-2-Clause", 929 | "dependencies": { 930 | "estraverse": "^5.2.0" 931 | }, 932 | "engines": { 933 | "node": ">=4.0" 934 | } 935 | }, 936 | "node_modules/estraverse": { 937 | "version": "5.3.0", 938 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 939 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 940 | "dev": true, 941 | "license": "BSD-2-Clause", 942 | "engines": { 943 | "node": ">=4.0" 944 | } 945 | }, 946 | "node_modules/esutils": { 947 | "version": "2.0.3", 948 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 949 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 950 | "dev": true, 951 | "license": "BSD-2-Clause", 952 | "engines": { 953 | "node": ">=0.10.0" 954 | } 955 | }, 956 | "node_modules/etag": { 957 | "version": "1.8.1", 958 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 959 | "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", 960 | "license": "MIT", 961 | "engines": { 962 | "node": ">= 0.6" 963 | } 964 | }, 965 | "node_modules/express": { 966 | "version": "4.21.2", 967 | "resolved": "https://registry.npmjs.org/express/-/express-4.21.2.tgz", 968 | "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", 969 | "license": "MIT", 970 | "dependencies": { 971 | "accepts": "~1.3.8", 972 | "array-flatten": "1.1.1", 973 | "body-parser": "1.20.3", 974 | "content-disposition": "0.5.4", 975 | "content-type": "~1.0.4", 976 | "cookie": "0.7.1", 977 | "cookie-signature": "1.0.6", 978 | "debug": "2.6.9", 979 | "depd": "2.0.0", 980 | "encodeurl": "~2.0.0", 981 | "escape-html": "~1.0.3", 982 | "etag": "~1.8.1", 983 | "finalhandler": "1.3.1", 984 | "fresh": "0.5.2", 985 | "http-errors": "2.0.0", 986 | "merge-descriptors": "1.0.3", 987 | "methods": "~1.1.2", 988 | "on-finished": "2.4.1", 989 | "parseurl": "~1.3.3", 990 | "path-to-regexp": "0.1.12", 991 | "proxy-addr": "~2.0.7", 992 | "qs": "6.13.0", 993 | "range-parser": "~1.2.1", 994 | "safe-buffer": "5.2.1", 995 | "send": "0.19.0", 996 | "serve-static": "1.16.2", 997 | "setprototypeof": "1.2.0", 998 | "statuses": "2.0.1", 999 | "type-is": "~1.6.18", 1000 | "utils-merge": "1.0.1", 1001 | "vary": "~1.1.2" 1002 | }, 1003 | "engines": { 1004 | "node": ">= 0.10.0" 1005 | }, 1006 | "funding": { 1007 | "type": "opencollective", 1008 | "url": "https://opencollective.com/express" 1009 | } 1010 | }, 1011 | "node_modules/express/node_modules/debug": { 1012 | "version": "2.6.9", 1013 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1014 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1015 | "license": "MIT", 1016 | "dependencies": { 1017 | "ms": "2.0.0" 1018 | } 1019 | }, 1020 | "node_modules/express/node_modules/ms": { 1021 | "version": "2.0.0", 1022 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1023 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 1024 | "license": "MIT" 1025 | }, 1026 | "node_modules/fast-deep-equal": { 1027 | "version": "3.1.3", 1028 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1029 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1030 | "dev": true, 1031 | "license": "MIT" 1032 | }, 1033 | "node_modules/fast-json-stable-stringify": { 1034 | "version": "2.1.0", 1035 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1036 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1037 | "dev": true, 1038 | "license": "MIT" 1039 | }, 1040 | "node_modules/fast-levenshtein": { 1041 | "version": "2.0.6", 1042 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1043 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1044 | "dev": true, 1045 | "license": "MIT" 1046 | }, 1047 | "node_modules/file-entry-cache": { 1048 | "version": "8.0.0", 1049 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", 1050 | "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", 1051 | "dev": true, 1052 | "license": "MIT", 1053 | "dependencies": { 1054 | "flat-cache": "^4.0.0" 1055 | }, 1056 | "engines": { 1057 | "node": ">=16.0.0" 1058 | } 1059 | }, 1060 | "node_modules/fill-range": { 1061 | "version": "7.1.1", 1062 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 1063 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 1064 | "dev": true, 1065 | "license": "MIT", 1066 | "dependencies": { 1067 | "to-regex-range": "^5.0.1" 1068 | }, 1069 | "engines": { 1070 | "node": ">=8" 1071 | } 1072 | }, 1073 | "node_modules/finalhandler": { 1074 | "version": "1.3.1", 1075 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.3.1.tgz", 1076 | "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", 1077 | "license": "MIT", 1078 | "dependencies": { 1079 | "debug": "2.6.9", 1080 | "encodeurl": "~2.0.0", 1081 | "escape-html": "~1.0.3", 1082 | "on-finished": "2.4.1", 1083 | "parseurl": "~1.3.3", 1084 | "statuses": "2.0.1", 1085 | "unpipe": "~1.0.0" 1086 | }, 1087 | "engines": { 1088 | "node": ">= 0.8" 1089 | } 1090 | }, 1091 | "node_modules/finalhandler/node_modules/debug": { 1092 | "version": "2.6.9", 1093 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1094 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1095 | "license": "MIT", 1096 | "dependencies": { 1097 | "ms": "2.0.0" 1098 | } 1099 | }, 1100 | "node_modules/finalhandler/node_modules/ms": { 1101 | "version": "2.0.0", 1102 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1103 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 1104 | "license": "MIT" 1105 | }, 1106 | "node_modules/find-up": { 1107 | "version": "5.0.0", 1108 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1109 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1110 | "dev": true, 1111 | "license": "MIT", 1112 | "dependencies": { 1113 | "locate-path": "^6.0.0", 1114 | "path-exists": "^4.0.0" 1115 | }, 1116 | "engines": { 1117 | "node": ">=10" 1118 | }, 1119 | "funding": { 1120 | "url": "https://github.com/sponsors/sindresorhus" 1121 | } 1122 | }, 1123 | "node_modules/flat-cache": { 1124 | "version": "4.0.1", 1125 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", 1126 | "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", 1127 | "dev": true, 1128 | "license": "MIT", 1129 | "dependencies": { 1130 | "flatted": "^3.2.9", 1131 | "keyv": "^4.5.4" 1132 | }, 1133 | "engines": { 1134 | "node": ">=16" 1135 | } 1136 | }, 1137 | "node_modules/flatted": { 1138 | "version": "3.3.3", 1139 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz", 1140 | "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", 1141 | "dev": true, 1142 | "license": "ISC" 1143 | }, 1144 | "node_modules/follow-redirects": { 1145 | "version": "1.15.9", 1146 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", 1147 | "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", 1148 | "funding": [ 1149 | { 1150 | "type": "individual", 1151 | "url": "https://github.com/sponsors/RubenVerborgh" 1152 | } 1153 | ], 1154 | "license": "MIT", 1155 | "engines": { 1156 | "node": ">=4.0" 1157 | }, 1158 | "peerDependenciesMeta": { 1159 | "debug": { 1160 | "optional": true 1161 | } 1162 | } 1163 | }, 1164 | "node_modules/form-data": { 1165 | "version": "4.0.2", 1166 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", 1167 | "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", 1168 | "license": "MIT", 1169 | "dependencies": { 1170 | "asynckit": "^0.4.0", 1171 | "combined-stream": "^1.0.8", 1172 | "es-set-tostringtag": "^2.1.0", 1173 | "mime-types": "^2.1.12" 1174 | }, 1175 | "engines": { 1176 | "node": ">= 6" 1177 | } 1178 | }, 1179 | "node_modules/forwarded": { 1180 | "version": "0.2.0", 1181 | "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", 1182 | "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", 1183 | "license": "MIT", 1184 | "engines": { 1185 | "node": ">= 0.6" 1186 | } 1187 | }, 1188 | "node_modules/fresh": { 1189 | "version": "0.5.2", 1190 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 1191 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 1192 | "license": "MIT", 1193 | "engines": { 1194 | "node": ">= 0.6" 1195 | } 1196 | }, 1197 | "node_modules/fsevents": { 1198 | "version": "2.3.3", 1199 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1200 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1201 | "dev": true, 1202 | "hasInstallScript": true, 1203 | "license": "MIT", 1204 | "optional": true, 1205 | "os": [ 1206 | "darwin" 1207 | ], 1208 | "engines": { 1209 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1210 | } 1211 | }, 1212 | "node_modules/function-bind": { 1213 | "version": "1.1.2", 1214 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 1215 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 1216 | "license": "MIT", 1217 | "funding": { 1218 | "url": "https://github.com/sponsors/ljharb" 1219 | } 1220 | }, 1221 | "node_modules/get-intrinsic": { 1222 | "version": "1.3.0", 1223 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", 1224 | "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", 1225 | "license": "MIT", 1226 | "dependencies": { 1227 | "call-bind-apply-helpers": "^1.0.2", 1228 | "es-define-property": "^1.0.1", 1229 | "es-errors": "^1.3.0", 1230 | "es-object-atoms": "^1.1.1", 1231 | "function-bind": "^1.1.2", 1232 | "get-proto": "^1.0.1", 1233 | "gopd": "^1.2.0", 1234 | "has-symbols": "^1.1.0", 1235 | "hasown": "^2.0.2", 1236 | "math-intrinsics": "^1.1.0" 1237 | }, 1238 | "engines": { 1239 | "node": ">= 0.4" 1240 | }, 1241 | "funding": { 1242 | "url": "https://github.com/sponsors/ljharb" 1243 | } 1244 | }, 1245 | "node_modules/get-proto": { 1246 | "version": "1.0.1", 1247 | "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", 1248 | "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", 1249 | "license": "MIT", 1250 | "dependencies": { 1251 | "dunder-proto": "^1.0.1", 1252 | "es-object-atoms": "^1.0.0" 1253 | }, 1254 | "engines": { 1255 | "node": ">= 0.4" 1256 | } 1257 | }, 1258 | "node_modules/glob-parent": { 1259 | "version": "6.0.2", 1260 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1261 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1262 | "dev": true, 1263 | "license": "ISC", 1264 | "dependencies": { 1265 | "is-glob": "^4.0.3" 1266 | }, 1267 | "engines": { 1268 | "node": ">=10.13.0" 1269 | } 1270 | }, 1271 | "node_modules/globals": { 1272 | "version": "14.0.0", 1273 | "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", 1274 | "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", 1275 | "dev": true, 1276 | "license": "MIT", 1277 | "engines": { 1278 | "node": ">=18" 1279 | }, 1280 | "funding": { 1281 | "url": "https://github.com/sponsors/sindresorhus" 1282 | } 1283 | }, 1284 | "node_modules/gopd": { 1285 | "version": "1.2.0", 1286 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", 1287 | "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", 1288 | "license": "MIT", 1289 | "engines": { 1290 | "node": ">= 0.4" 1291 | }, 1292 | "funding": { 1293 | "url": "https://github.com/sponsors/ljharb" 1294 | } 1295 | }, 1296 | "node_modules/has-flag": { 1297 | "version": "4.0.0", 1298 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1299 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1300 | "dev": true, 1301 | "license": "MIT", 1302 | "engines": { 1303 | "node": ">=8" 1304 | } 1305 | }, 1306 | "node_modules/has-symbols": { 1307 | "version": "1.1.0", 1308 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", 1309 | "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", 1310 | "license": "MIT", 1311 | "engines": { 1312 | "node": ">= 0.4" 1313 | }, 1314 | "funding": { 1315 | "url": "https://github.com/sponsors/ljharb" 1316 | } 1317 | }, 1318 | "node_modules/has-tostringtag": { 1319 | "version": "1.0.2", 1320 | "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", 1321 | "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", 1322 | "license": "MIT", 1323 | "dependencies": { 1324 | "has-symbols": "^1.0.3" 1325 | }, 1326 | "engines": { 1327 | "node": ">= 0.4" 1328 | }, 1329 | "funding": { 1330 | "url": "https://github.com/sponsors/ljharb" 1331 | } 1332 | }, 1333 | "node_modules/hasown": { 1334 | "version": "2.0.2", 1335 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 1336 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 1337 | "license": "MIT", 1338 | "dependencies": { 1339 | "function-bind": "^1.1.2" 1340 | }, 1341 | "engines": { 1342 | "node": ">= 0.4" 1343 | } 1344 | }, 1345 | "node_modules/http-errors": { 1346 | "version": "2.0.0", 1347 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 1348 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 1349 | "license": "MIT", 1350 | "dependencies": { 1351 | "depd": "2.0.0", 1352 | "inherits": "2.0.4", 1353 | "setprototypeof": "1.2.0", 1354 | "statuses": "2.0.1", 1355 | "toidentifier": "1.0.1" 1356 | }, 1357 | "engines": { 1358 | "node": ">= 0.8" 1359 | } 1360 | }, 1361 | "node_modules/iconv-lite": { 1362 | "version": "0.4.24", 1363 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", 1364 | "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", 1365 | "license": "MIT", 1366 | "dependencies": { 1367 | "safer-buffer": ">= 2.1.2 < 3" 1368 | }, 1369 | "engines": { 1370 | "node": ">=0.10.0" 1371 | } 1372 | }, 1373 | "node_modules/ignore": { 1374 | "version": "5.3.2", 1375 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", 1376 | "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", 1377 | "dev": true, 1378 | "license": "MIT", 1379 | "engines": { 1380 | "node": ">= 4" 1381 | } 1382 | }, 1383 | "node_modules/ignore-by-default": { 1384 | "version": "1.0.1", 1385 | "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", 1386 | "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", 1387 | "dev": true, 1388 | "license": "ISC" 1389 | }, 1390 | "node_modules/import-fresh": { 1391 | "version": "3.3.1", 1392 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz", 1393 | "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", 1394 | "dev": true, 1395 | "license": "MIT", 1396 | "dependencies": { 1397 | "parent-module": "^1.0.0", 1398 | "resolve-from": "^4.0.0" 1399 | }, 1400 | "engines": { 1401 | "node": ">=6" 1402 | }, 1403 | "funding": { 1404 | "url": "https://github.com/sponsors/sindresorhus" 1405 | } 1406 | }, 1407 | "node_modules/imurmurhash": { 1408 | "version": "0.1.4", 1409 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1410 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1411 | "dev": true, 1412 | "license": "MIT", 1413 | "engines": { 1414 | "node": ">=0.8.19" 1415 | } 1416 | }, 1417 | "node_modules/inherits": { 1418 | "version": "2.0.4", 1419 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1420 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1421 | "license": "ISC" 1422 | }, 1423 | "node_modules/ipaddr.js": { 1424 | "version": "1.9.1", 1425 | "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", 1426 | "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", 1427 | "license": "MIT", 1428 | "engines": { 1429 | "node": ">= 0.10" 1430 | } 1431 | }, 1432 | "node_modules/is-binary-path": { 1433 | "version": "2.1.0", 1434 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1435 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1436 | "dev": true, 1437 | "license": "MIT", 1438 | "dependencies": { 1439 | "binary-extensions": "^2.0.0" 1440 | }, 1441 | "engines": { 1442 | "node": ">=8" 1443 | } 1444 | }, 1445 | "node_modules/is-extglob": { 1446 | "version": "2.1.1", 1447 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1448 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1449 | "dev": true, 1450 | "license": "MIT", 1451 | "engines": { 1452 | "node": ">=0.10.0" 1453 | } 1454 | }, 1455 | "node_modules/is-glob": { 1456 | "version": "4.0.3", 1457 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1458 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1459 | "dev": true, 1460 | "license": "MIT", 1461 | "dependencies": { 1462 | "is-extglob": "^2.1.1" 1463 | }, 1464 | "engines": { 1465 | "node": ">=0.10.0" 1466 | } 1467 | }, 1468 | "node_modules/is-number": { 1469 | "version": "7.0.0", 1470 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1471 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1472 | "dev": true, 1473 | "license": "MIT", 1474 | "engines": { 1475 | "node": ">=0.12.0" 1476 | } 1477 | }, 1478 | "node_modules/isexe": { 1479 | "version": "2.0.0", 1480 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1481 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 1482 | "dev": true, 1483 | "license": "ISC" 1484 | }, 1485 | "node_modules/js-yaml": { 1486 | "version": "4.1.0", 1487 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1488 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1489 | "dev": true, 1490 | "license": "MIT", 1491 | "dependencies": { 1492 | "argparse": "^2.0.1" 1493 | }, 1494 | "bin": { 1495 | "js-yaml": "bin/js-yaml.js" 1496 | } 1497 | }, 1498 | "node_modules/json-buffer": { 1499 | "version": "3.0.1", 1500 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", 1501 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", 1502 | "dev": true, 1503 | "license": "MIT" 1504 | }, 1505 | "node_modules/json-schema-traverse": { 1506 | "version": "0.4.1", 1507 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1508 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1509 | "dev": true, 1510 | "license": "MIT" 1511 | }, 1512 | "node_modules/json-stable-stringify-without-jsonify": { 1513 | "version": "1.0.1", 1514 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 1515 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 1516 | "dev": true, 1517 | "license": "MIT" 1518 | }, 1519 | "node_modules/keyv": { 1520 | "version": "4.5.4", 1521 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", 1522 | "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", 1523 | "dev": true, 1524 | "license": "MIT", 1525 | "dependencies": { 1526 | "json-buffer": "3.0.1" 1527 | } 1528 | }, 1529 | "node_modules/levn": { 1530 | "version": "0.4.1", 1531 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 1532 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 1533 | "dev": true, 1534 | "license": "MIT", 1535 | "dependencies": { 1536 | "prelude-ls": "^1.2.1", 1537 | "type-check": "~0.4.0" 1538 | }, 1539 | "engines": { 1540 | "node": ">= 0.8.0" 1541 | } 1542 | }, 1543 | "node_modules/locate-path": { 1544 | "version": "6.0.0", 1545 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1546 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1547 | "dev": true, 1548 | "license": "MIT", 1549 | "dependencies": { 1550 | "p-locate": "^5.0.0" 1551 | }, 1552 | "engines": { 1553 | "node": ">=10" 1554 | }, 1555 | "funding": { 1556 | "url": "https://github.com/sponsors/sindresorhus" 1557 | } 1558 | }, 1559 | "node_modules/lodash.merge": { 1560 | "version": "4.6.2", 1561 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 1562 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 1563 | "dev": true, 1564 | "license": "MIT" 1565 | }, 1566 | "node_modules/math-intrinsics": { 1567 | "version": "1.1.0", 1568 | "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", 1569 | "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", 1570 | "license": "MIT", 1571 | "engines": { 1572 | "node": ">= 0.4" 1573 | } 1574 | }, 1575 | "node_modules/media-typer": { 1576 | "version": "0.3.0", 1577 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1578 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 1579 | "license": "MIT", 1580 | "engines": { 1581 | "node": ">= 0.6" 1582 | } 1583 | }, 1584 | "node_modules/merge-descriptors": { 1585 | "version": "1.0.3", 1586 | "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", 1587 | "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", 1588 | "license": "MIT", 1589 | "funding": { 1590 | "url": "https://github.com/sponsors/sindresorhus" 1591 | } 1592 | }, 1593 | "node_modules/methods": { 1594 | "version": "1.1.2", 1595 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1596 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 1597 | "license": "MIT", 1598 | "engines": { 1599 | "node": ">= 0.6" 1600 | } 1601 | }, 1602 | "node_modules/mime": { 1603 | "version": "1.6.0", 1604 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1605 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 1606 | "license": "MIT", 1607 | "bin": { 1608 | "mime": "cli.js" 1609 | }, 1610 | "engines": { 1611 | "node": ">=4" 1612 | } 1613 | }, 1614 | "node_modules/mime-db": { 1615 | "version": "1.52.0", 1616 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 1617 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 1618 | "license": "MIT", 1619 | "engines": { 1620 | "node": ">= 0.6" 1621 | } 1622 | }, 1623 | "node_modules/mime-types": { 1624 | "version": "2.1.35", 1625 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 1626 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 1627 | "license": "MIT", 1628 | "dependencies": { 1629 | "mime-db": "1.52.0" 1630 | }, 1631 | "engines": { 1632 | "node": ">= 0.6" 1633 | } 1634 | }, 1635 | "node_modules/minimatch": { 1636 | "version": "3.1.2", 1637 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1638 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1639 | "dev": true, 1640 | "license": "ISC", 1641 | "dependencies": { 1642 | "brace-expansion": "^1.1.7" 1643 | }, 1644 | "engines": { 1645 | "node": "*" 1646 | } 1647 | }, 1648 | "node_modules/ms": { 1649 | "version": "2.1.3", 1650 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1651 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1652 | "license": "MIT" 1653 | }, 1654 | "node_modules/natural-compare": { 1655 | "version": "1.4.0", 1656 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 1657 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 1658 | "dev": true, 1659 | "license": "MIT" 1660 | }, 1661 | "node_modules/negotiator": { 1662 | "version": "0.6.3", 1663 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 1664 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 1665 | "license": "MIT", 1666 | "engines": { 1667 | "node": ">= 0.6" 1668 | } 1669 | }, 1670 | "node_modules/nodemon": { 1671 | "version": "3.1.10", 1672 | "resolved": "https://registry.npmjs.org/nodemon/-/nodemon-3.1.10.tgz", 1673 | "integrity": "sha512-WDjw3pJ0/0jMFmyNDp3gvY2YizjLmmOUQo6DEBY+JgdvW/yQ9mEeSw6H5ythl5Ny2ytb7f9C2nIbjSxMNzbJXw==", 1674 | "dev": true, 1675 | "license": "MIT", 1676 | "dependencies": { 1677 | "chokidar": "^3.5.2", 1678 | "debug": "^4", 1679 | "ignore-by-default": "^1.0.1", 1680 | "minimatch": "^3.1.2", 1681 | "pstree.remy": "^1.1.8", 1682 | "semver": "^7.5.3", 1683 | "simple-update-notifier": "^2.0.0", 1684 | "supports-color": "^5.5.0", 1685 | "touch": "^3.1.0", 1686 | "undefsafe": "^2.0.5" 1687 | }, 1688 | "bin": { 1689 | "nodemon": "bin/nodemon.js" 1690 | }, 1691 | "engines": { 1692 | "node": ">=10" 1693 | }, 1694 | "funding": { 1695 | "type": "opencollective", 1696 | "url": "https://opencollective.com/nodemon" 1697 | } 1698 | }, 1699 | "node_modules/nodemon/node_modules/has-flag": { 1700 | "version": "3.0.0", 1701 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1702 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 1703 | "dev": true, 1704 | "license": "MIT", 1705 | "engines": { 1706 | "node": ">=4" 1707 | } 1708 | }, 1709 | "node_modules/nodemon/node_modules/supports-color": { 1710 | "version": "5.5.0", 1711 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1712 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1713 | "dev": true, 1714 | "license": "MIT", 1715 | "dependencies": { 1716 | "has-flag": "^3.0.0" 1717 | }, 1718 | "engines": { 1719 | "node": ">=4" 1720 | } 1721 | }, 1722 | "node_modules/normalize-path": { 1723 | "version": "3.0.0", 1724 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1725 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1726 | "dev": true, 1727 | "license": "MIT", 1728 | "engines": { 1729 | "node": ">=0.10.0" 1730 | } 1731 | }, 1732 | "node_modules/object-assign": { 1733 | "version": "4.1.1", 1734 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1735 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 1736 | "license": "MIT", 1737 | "engines": { 1738 | "node": ">=0.10.0" 1739 | } 1740 | }, 1741 | "node_modules/object-inspect": { 1742 | "version": "1.13.4", 1743 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", 1744 | "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", 1745 | "license": "MIT", 1746 | "engines": { 1747 | "node": ">= 0.4" 1748 | }, 1749 | "funding": { 1750 | "url": "https://github.com/sponsors/ljharb" 1751 | } 1752 | }, 1753 | "node_modules/on-finished": { 1754 | "version": "2.4.1", 1755 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 1756 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 1757 | "license": "MIT", 1758 | "dependencies": { 1759 | "ee-first": "1.1.1" 1760 | }, 1761 | "engines": { 1762 | "node": ">= 0.8" 1763 | } 1764 | }, 1765 | "node_modules/optionator": { 1766 | "version": "0.9.4", 1767 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", 1768 | "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", 1769 | "dev": true, 1770 | "license": "MIT", 1771 | "dependencies": { 1772 | "deep-is": "^0.1.3", 1773 | "fast-levenshtein": "^2.0.6", 1774 | "levn": "^0.4.1", 1775 | "prelude-ls": "^1.2.1", 1776 | "type-check": "^0.4.0", 1777 | "word-wrap": "^1.2.5" 1778 | }, 1779 | "engines": { 1780 | "node": ">= 0.8.0" 1781 | } 1782 | }, 1783 | "node_modules/p-limit": { 1784 | "version": "3.1.0", 1785 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1786 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1787 | "dev": true, 1788 | "license": "MIT", 1789 | "dependencies": { 1790 | "yocto-queue": "^0.1.0" 1791 | }, 1792 | "engines": { 1793 | "node": ">=10" 1794 | }, 1795 | "funding": { 1796 | "url": "https://github.com/sponsors/sindresorhus" 1797 | } 1798 | }, 1799 | "node_modules/p-locate": { 1800 | "version": "5.0.0", 1801 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1802 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1803 | "dev": true, 1804 | "license": "MIT", 1805 | "dependencies": { 1806 | "p-limit": "^3.0.2" 1807 | }, 1808 | "engines": { 1809 | "node": ">=10" 1810 | }, 1811 | "funding": { 1812 | "url": "https://github.com/sponsors/sindresorhus" 1813 | } 1814 | }, 1815 | "node_modules/parent-module": { 1816 | "version": "1.0.1", 1817 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 1818 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 1819 | "dev": true, 1820 | "license": "MIT", 1821 | "dependencies": { 1822 | "callsites": "^3.0.0" 1823 | }, 1824 | "engines": { 1825 | "node": ">=6" 1826 | } 1827 | }, 1828 | "node_modules/parseurl": { 1829 | "version": "1.3.3", 1830 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1831 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1832 | "license": "MIT", 1833 | "engines": { 1834 | "node": ">= 0.8" 1835 | } 1836 | }, 1837 | "node_modules/path-exists": { 1838 | "version": "4.0.0", 1839 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1840 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1841 | "dev": true, 1842 | "license": "MIT", 1843 | "engines": { 1844 | "node": ">=8" 1845 | } 1846 | }, 1847 | "node_modules/path-key": { 1848 | "version": "3.1.1", 1849 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1850 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1851 | "dev": true, 1852 | "license": "MIT", 1853 | "engines": { 1854 | "node": ">=8" 1855 | } 1856 | }, 1857 | "node_modules/path-to-regexp": { 1858 | "version": "0.1.12", 1859 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", 1860 | "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", 1861 | "license": "MIT" 1862 | }, 1863 | "node_modules/picomatch": { 1864 | "version": "2.3.1", 1865 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1866 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1867 | "dev": true, 1868 | "license": "MIT", 1869 | "engines": { 1870 | "node": ">=8.6" 1871 | }, 1872 | "funding": { 1873 | "url": "https://github.com/sponsors/jonschlinkert" 1874 | } 1875 | }, 1876 | "node_modules/prelude-ls": { 1877 | "version": "1.2.1", 1878 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 1879 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 1880 | "dev": true, 1881 | "license": "MIT", 1882 | "engines": { 1883 | "node": ">= 0.8.0" 1884 | } 1885 | }, 1886 | "node_modules/proxy-addr": { 1887 | "version": "2.0.7", 1888 | "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", 1889 | "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", 1890 | "license": "MIT", 1891 | "dependencies": { 1892 | "forwarded": "0.2.0", 1893 | "ipaddr.js": "1.9.1" 1894 | }, 1895 | "engines": { 1896 | "node": ">= 0.10" 1897 | } 1898 | }, 1899 | "node_modules/proxy-from-env": { 1900 | "version": "1.1.0", 1901 | "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", 1902 | "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", 1903 | "license": "MIT" 1904 | }, 1905 | "node_modules/pstree.remy": { 1906 | "version": "1.1.8", 1907 | "resolved": "https://registry.npmjs.org/pstree.remy/-/pstree.remy-1.1.8.tgz", 1908 | "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", 1909 | "dev": true, 1910 | "license": "MIT" 1911 | }, 1912 | "node_modules/punycode": { 1913 | "version": "2.3.1", 1914 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 1915 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 1916 | "dev": true, 1917 | "license": "MIT", 1918 | "engines": { 1919 | "node": ">=6" 1920 | } 1921 | }, 1922 | "node_modules/qs": { 1923 | "version": "6.13.0", 1924 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", 1925 | "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", 1926 | "license": "BSD-3-Clause", 1927 | "dependencies": { 1928 | "side-channel": "^1.0.6" 1929 | }, 1930 | "engines": { 1931 | "node": ">=0.6" 1932 | }, 1933 | "funding": { 1934 | "url": "https://github.com/sponsors/ljharb" 1935 | } 1936 | }, 1937 | "node_modules/range-parser": { 1938 | "version": "1.2.1", 1939 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1940 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1941 | "license": "MIT", 1942 | "engines": { 1943 | "node": ">= 0.6" 1944 | } 1945 | }, 1946 | "node_modules/raw-body": { 1947 | "version": "2.5.2", 1948 | "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.2.tgz", 1949 | "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", 1950 | "license": "MIT", 1951 | "dependencies": { 1952 | "bytes": "3.1.2", 1953 | "http-errors": "2.0.0", 1954 | "iconv-lite": "0.4.24", 1955 | "unpipe": "1.0.0" 1956 | }, 1957 | "engines": { 1958 | "node": ">= 0.8" 1959 | } 1960 | }, 1961 | "node_modules/readdirp": { 1962 | "version": "3.6.0", 1963 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1964 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1965 | "dev": true, 1966 | "license": "MIT", 1967 | "dependencies": { 1968 | "picomatch": "^2.2.1" 1969 | }, 1970 | "engines": { 1971 | "node": ">=8.10.0" 1972 | } 1973 | }, 1974 | "node_modules/resolve-from": { 1975 | "version": "4.0.0", 1976 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1977 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1978 | "dev": true, 1979 | "license": "MIT", 1980 | "engines": { 1981 | "node": ">=4" 1982 | } 1983 | }, 1984 | "node_modules/safe-buffer": { 1985 | "version": "5.2.1", 1986 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1987 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1988 | "funding": [ 1989 | { 1990 | "type": "github", 1991 | "url": "https://github.com/sponsors/feross" 1992 | }, 1993 | { 1994 | "type": "patreon", 1995 | "url": "https://www.patreon.com/feross" 1996 | }, 1997 | { 1998 | "type": "consulting", 1999 | "url": "https://feross.org/support" 2000 | } 2001 | ], 2002 | "license": "MIT" 2003 | }, 2004 | "node_modules/safer-buffer": { 2005 | "version": "2.1.2", 2006 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 2007 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 2008 | "license": "MIT" 2009 | }, 2010 | "node_modules/semver": { 2011 | "version": "7.7.1", 2012 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", 2013 | "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", 2014 | "dev": true, 2015 | "license": "ISC", 2016 | "bin": { 2017 | "semver": "bin/semver.js" 2018 | }, 2019 | "engines": { 2020 | "node": ">=10" 2021 | } 2022 | }, 2023 | "node_modules/send": { 2024 | "version": "0.19.0", 2025 | "resolved": "https://registry.npmjs.org/send/-/send-0.19.0.tgz", 2026 | "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", 2027 | "license": "MIT", 2028 | "dependencies": { 2029 | "debug": "2.6.9", 2030 | "depd": "2.0.0", 2031 | "destroy": "1.2.0", 2032 | "encodeurl": "~1.0.2", 2033 | "escape-html": "~1.0.3", 2034 | "etag": "~1.8.1", 2035 | "fresh": "0.5.2", 2036 | "http-errors": "2.0.0", 2037 | "mime": "1.6.0", 2038 | "ms": "2.1.3", 2039 | "on-finished": "2.4.1", 2040 | "range-parser": "~1.2.1", 2041 | "statuses": "2.0.1" 2042 | }, 2043 | "engines": { 2044 | "node": ">= 0.8.0" 2045 | } 2046 | }, 2047 | "node_modules/send/node_modules/debug": { 2048 | "version": "2.6.9", 2049 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 2050 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 2051 | "license": "MIT", 2052 | "dependencies": { 2053 | "ms": "2.0.0" 2054 | } 2055 | }, 2056 | "node_modules/send/node_modules/debug/node_modules/ms": { 2057 | "version": "2.0.0", 2058 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 2059 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 2060 | "license": "MIT" 2061 | }, 2062 | "node_modules/send/node_modules/encodeurl": { 2063 | "version": "1.0.2", 2064 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 2065 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 2066 | "license": "MIT", 2067 | "engines": { 2068 | "node": ">= 0.8" 2069 | } 2070 | }, 2071 | "node_modules/serve-static": { 2072 | "version": "1.16.2", 2073 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.16.2.tgz", 2074 | "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", 2075 | "license": "MIT", 2076 | "dependencies": { 2077 | "encodeurl": "~2.0.0", 2078 | "escape-html": "~1.0.3", 2079 | "parseurl": "~1.3.3", 2080 | "send": "0.19.0" 2081 | }, 2082 | "engines": { 2083 | "node": ">= 0.8.0" 2084 | } 2085 | }, 2086 | "node_modules/setprototypeof": { 2087 | "version": "1.2.0", 2088 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 2089 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", 2090 | "license": "ISC" 2091 | }, 2092 | "node_modules/shebang-command": { 2093 | "version": "2.0.0", 2094 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2095 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2096 | "dev": true, 2097 | "license": "MIT", 2098 | "dependencies": { 2099 | "shebang-regex": "^3.0.0" 2100 | }, 2101 | "engines": { 2102 | "node": ">=8" 2103 | } 2104 | }, 2105 | "node_modules/shebang-regex": { 2106 | "version": "3.0.0", 2107 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2108 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2109 | "dev": true, 2110 | "license": "MIT", 2111 | "engines": { 2112 | "node": ">=8" 2113 | } 2114 | }, 2115 | "node_modules/side-channel": { 2116 | "version": "1.1.0", 2117 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", 2118 | "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", 2119 | "license": "MIT", 2120 | "dependencies": { 2121 | "es-errors": "^1.3.0", 2122 | "object-inspect": "^1.13.3", 2123 | "side-channel-list": "^1.0.0", 2124 | "side-channel-map": "^1.0.1", 2125 | "side-channel-weakmap": "^1.0.2" 2126 | }, 2127 | "engines": { 2128 | "node": ">= 0.4" 2129 | }, 2130 | "funding": { 2131 | "url": "https://github.com/sponsors/ljharb" 2132 | } 2133 | }, 2134 | "node_modules/side-channel-list": { 2135 | "version": "1.0.0", 2136 | "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", 2137 | "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", 2138 | "license": "MIT", 2139 | "dependencies": { 2140 | "es-errors": "^1.3.0", 2141 | "object-inspect": "^1.13.3" 2142 | }, 2143 | "engines": { 2144 | "node": ">= 0.4" 2145 | }, 2146 | "funding": { 2147 | "url": "https://github.com/sponsors/ljharb" 2148 | } 2149 | }, 2150 | "node_modules/side-channel-map": { 2151 | "version": "1.0.1", 2152 | "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", 2153 | "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", 2154 | "license": "MIT", 2155 | "dependencies": { 2156 | "call-bound": "^1.0.2", 2157 | "es-errors": "^1.3.0", 2158 | "get-intrinsic": "^1.2.5", 2159 | "object-inspect": "^1.13.3" 2160 | }, 2161 | "engines": { 2162 | "node": ">= 0.4" 2163 | }, 2164 | "funding": { 2165 | "url": "https://github.com/sponsors/ljharb" 2166 | } 2167 | }, 2168 | "node_modules/side-channel-weakmap": { 2169 | "version": "1.0.2", 2170 | "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", 2171 | "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", 2172 | "license": "MIT", 2173 | "dependencies": { 2174 | "call-bound": "^1.0.2", 2175 | "es-errors": "^1.3.0", 2176 | "get-intrinsic": "^1.2.5", 2177 | "object-inspect": "^1.13.3", 2178 | "side-channel-map": "^1.0.1" 2179 | }, 2180 | "engines": { 2181 | "node": ">= 0.4" 2182 | }, 2183 | "funding": { 2184 | "url": "https://github.com/sponsors/ljharb" 2185 | } 2186 | }, 2187 | "node_modules/simple-update-notifier": { 2188 | "version": "2.0.0", 2189 | "resolved": "https://registry.npmjs.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", 2190 | "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", 2191 | "dev": true, 2192 | "license": "MIT", 2193 | "dependencies": { 2194 | "semver": "^7.5.3" 2195 | }, 2196 | "engines": { 2197 | "node": ">=10" 2198 | } 2199 | }, 2200 | "node_modules/statuses": { 2201 | "version": "2.0.1", 2202 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 2203 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 2204 | "license": "MIT", 2205 | "engines": { 2206 | "node": ">= 0.8" 2207 | } 2208 | }, 2209 | "node_modules/strip-json-comments": { 2210 | "version": "3.1.1", 2211 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2212 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2213 | "dev": true, 2214 | "license": "MIT", 2215 | "engines": { 2216 | "node": ">=8" 2217 | }, 2218 | "funding": { 2219 | "url": "https://github.com/sponsors/sindresorhus" 2220 | } 2221 | }, 2222 | "node_modules/supports-color": { 2223 | "version": "7.2.0", 2224 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 2225 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 2226 | "dev": true, 2227 | "license": "MIT", 2228 | "dependencies": { 2229 | "has-flag": "^4.0.0" 2230 | }, 2231 | "engines": { 2232 | "node": ">=8" 2233 | } 2234 | }, 2235 | "node_modules/to-regex-range": { 2236 | "version": "5.0.1", 2237 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2238 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2239 | "dev": true, 2240 | "license": "MIT", 2241 | "dependencies": { 2242 | "is-number": "^7.0.0" 2243 | }, 2244 | "engines": { 2245 | "node": ">=8.0" 2246 | } 2247 | }, 2248 | "node_modules/toidentifier": { 2249 | "version": "1.0.1", 2250 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 2251 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 2252 | "license": "MIT", 2253 | "engines": { 2254 | "node": ">=0.6" 2255 | } 2256 | }, 2257 | "node_modules/touch": { 2258 | "version": "3.1.1", 2259 | "resolved": "https://registry.npmjs.org/touch/-/touch-3.1.1.tgz", 2260 | "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", 2261 | "dev": true, 2262 | "license": "ISC", 2263 | "bin": { 2264 | "nodetouch": "bin/nodetouch.js" 2265 | } 2266 | }, 2267 | "node_modules/type-check": { 2268 | "version": "0.4.0", 2269 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 2270 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 2271 | "dev": true, 2272 | "license": "MIT", 2273 | "dependencies": { 2274 | "prelude-ls": "^1.2.1" 2275 | }, 2276 | "engines": { 2277 | "node": ">= 0.8.0" 2278 | } 2279 | }, 2280 | "node_modules/type-is": { 2281 | "version": "1.6.18", 2282 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 2283 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 2284 | "license": "MIT", 2285 | "dependencies": { 2286 | "media-typer": "0.3.0", 2287 | "mime-types": "~2.1.24" 2288 | }, 2289 | "engines": { 2290 | "node": ">= 0.6" 2291 | } 2292 | }, 2293 | "node_modules/undefsafe": { 2294 | "version": "2.0.5", 2295 | "resolved": "https://registry.npmjs.org/undefsafe/-/undefsafe-2.0.5.tgz", 2296 | "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", 2297 | "dev": true, 2298 | "license": "MIT" 2299 | }, 2300 | "node_modules/unpipe": { 2301 | "version": "1.0.0", 2302 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2303 | "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", 2304 | "license": "MIT", 2305 | "engines": { 2306 | "node": ">= 0.8" 2307 | } 2308 | }, 2309 | "node_modules/uri-js": { 2310 | "version": "4.4.1", 2311 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 2312 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 2313 | "dev": true, 2314 | "license": "BSD-2-Clause", 2315 | "dependencies": { 2316 | "punycode": "^2.1.0" 2317 | } 2318 | }, 2319 | "node_modules/utils-merge": { 2320 | "version": "1.0.1", 2321 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2322 | "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", 2323 | "license": "MIT", 2324 | "engines": { 2325 | "node": ">= 0.4.0" 2326 | } 2327 | }, 2328 | "node_modules/vary": { 2329 | "version": "1.1.2", 2330 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2331 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 2332 | "license": "MIT", 2333 | "engines": { 2334 | "node": ">= 0.8" 2335 | } 2336 | }, 2337 | "node_modules/which": { 2338 | "version": "2.0.2", 2339 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2340 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2341 | "dev": true, 2342 | "license": "ISC", 2343 | "dependencies": { 2344 | "isexe": "^2.0.0" 2345 | }, 2346 | "bin": { 2347 | "node-which": "bin/node-which" 2348 | }, 2349 | "engines": { 2350 | "node": ">= 8" 2351 | } 2352 | }, 2353 | "node_modules/word-wrap": { 2354 | "version": "1.2.5", 2355 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", 2356 | "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", 2357 | "dev": true, 2358 | "license": "MIT", 2359 | "engines": { 2360 | "node": ">=0.10.0" 2361 | } 2362 | }, 2363 | "node_modules/yocto-queue": { 2364 | "version": "0.1.0", 2365 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2366 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2367 | "dev": true, 2368 | "license": "MIT", 2369 | "engines": { 2370 | "node": ">=10" 2371 | }, 2372 | "funding": { 2373 | "url": "https://github.com/sponsors/sindresorhus" 2374 | } 2375 | } 2376 | } 2377 | } 2378 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ollamamodelmanager", 3 | "version": "1.0.0", 4 | "main": "index.js", 5 | "type": "module", 6 | "scripts": { 7 | "start": "node server.js", 8 | "debug": "node --inspect server.js", 9 | "debug:dev": "nodemon --inspect server.js", 10 | "dev": "nodemon server.js", 11 | "test": "echo \"Error: no test specified\" && exit 1", 12 | "lint": "eslint .", 13 | "lint:fix": "eslint . --fix" 14 | }, 15 | "keywords": [], 16 | "author": "", 17 | "license": "ISC", 18 | "description": "", 19 | "dependencies": { 20 | "axios": "^1.7.9", 21 | "cors": "^2.8.5", 22 | "dotenv": "^16.4.7", 23 | "express": "^4.21.2" 24 | }, 25 | "devDependencies": { 26 | "@eslint/js": "^9.20.0", 27 | "eslint": "^9.20.0", 28 | "nodemon": "^3.1.9" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ollama Model Manager 7 | 8 | 9 | 10 | 13 | 14 | 15 | API Docs 16 | 17 | 18 |
19 |

Ollama Model Manager

20 | 21 |
22 |

Ollama Endpoints

23 |
24 |
25 | 28 |
29 |
30 |
31 |

Running Models

32 |
33 |
34 |
35 |
36 | 37 |
38 |
39 | 40 | 41 |
42 | 43 |
44 |

Available Models

45 | 46 | 47 | 48 |
49 | 50 |
51 |
52 |
53 |
54 | 55 |
56 |
Name
57 |
Size
58 |
Params
59 |
Family
60 |
Format
61 |
Q-Level
62 |
Actions
63 |
64 |
65 |
66 |
67 |
68 | 69 | 596 | 597 | 598 | -------------------------------------------------------------------------------- /public/script.js: -------------------------------------------------------------------------------- 1 | let selectedModels = new Set(); 2 | 3 | /* eslint-disable no-unused-vars */ 4 | function updateSelectedModels(checkbox) { 5 | if (checkbox.checked) { 6 | selectedModels.add(checkbox.value); 7 | } else { 8 | selectedModels.delete(checkbox.value); 9 | } 10 | updateBulkActionButtons(); 11 | } 12 | 13 | function updateBulkActionButtons() { 14 | const updateSelectedBtn = document.getElementById('updateSelectedBtn'); 15 | if (updateSelectedBtn) { 16 | updateSelectedBtn.disabled = selectedModels.size === 0; 17 | } 18 | } 19 | 20 | async function updateSelectedModelsInBulk() { 21 | const models = Array.from(selectedModels); 22 | const updatePromises = models.map(modelName => updateModel(modelName)); 23 | await Promise.all(updatePromises); 24 | selectedModels.clear(); 25 | updateBulkActionButtons(); 26 | } 27 | 28 | function displayModels(models) { 29 | /* eslint-enable no-unused-vars */ 30 | const container = document.getElementById('modelsListContent'); 31 | container.innerHTML = ` 32 |
33 | 34 |
35 | `; 36 | 37 | models.forEach(model => { 38 | const row = document.createElement('div'); 39 | row.className = 'model-row'; 40 | row.innerHTML = ` 41 |
42 | 43 |
44 |
${model.name}
45 |
${formatBytes(model.size)}
46 |
${model.parameter_size || 'N/A'}
47 |
${model.family || 'N/A'}
48 |
${model.format || 'N/A'}
49 |
${model.quantization_level || 'N/A'}
50 |
51 | 52 |
53 |
54 | `; 55 | container.appendChild(row); 56 | }); 57 | } 58 | 59 | async function updateModel(modelName) { 60 | const statusElement = document.getElementById(`status-${modelName}`); 61 | statusElement.textContent = 'Starting update...'; 62 | 63 | try { 64 | const response = await fetch('/api/update-model', { 65 | method: 'POST', 66 | headers: { 67 | 'Content-Type': 'application/json' 68 | }, 69 | body: JSON.stringify({ modelName }) 70 | }); 71 | 72 | if (!response.ok) { 73 | const error = await response.json(); 74 | throw new Error(error.message || 'Failed to start update'); 75 | } 76 | 77 | const reader = response.body.getReader(); 78 | let lastStatus = ''; 79 | 80 | while (true) { 81 | const { done, value } = await reader.read(); 82 | if (done) break; 83 | 84 | const text = new TextDecoder().decode(value); 85 | const lines = text.split('\n'); 86 | 87 | for (const line of lines) { 88 | if (line.trim()) { 89 | try { 90 | const update = JSON.parse(line); 91 | 92 | if (update.status === 'error') { 93 | throw new Error(update.error || 'Update failed'); 94 | } 95 | 96 | if (update.status === 'downloading') { 97 | const progress = ((update.completed / update.total) * 100).toFixed(1); 98 | statusElement.textContent = `Downloading: ${progress}%`; 99 | } else if (update.status === 'verifying digest') { 100 | statusElement.textContent = 'Verifying download...'; 101 | } else if (update.status === 'writing manifest') { 102 | statusElement.textContent = 'Finalizing update...'; 103 | } else if (update.status !== lastStatus) { 104 | statusElement.textContent = update.status; 105 | lastStatus = update.status; 106 | } 107 | } catch (e) { 108 | if (e.message === 'Update failed') { 109 | throw e; 110 | } 111 | console.error('Error parsing update:', e); 112 | } 113 | } 114 | } 115 | } 116 | 117 | statusElement.textContent = 'Update complete'; 118 | setTimeout(() => { 119 | statusElement.textContent = ''; 120 | refreshModels(); 121 | }, 2000); 122 | 123 | } catch (error) { 124 | console.error('Update error:', error); 125 | statusElement.textContent = `Error: ${error.message}`; 126 | setTimeout(() => { 127 | statusElement.textContent = ''; 128 | }, 5000); 129 | } 130 | } 131 | -------------------------------------------------------------------------------- /public/styles.css: -------------------------------------------------------------------------------- 1 | /* Light theme */ 2 | :root { 3 | --bg-color: #f2f2f7; 4 | --container-bg: rgba(255, 255, 255, 0.95); 5 | --text-color: #000; 6 | --secondary-text: #6c6c70; 7 | --border-color: rgba(60, 60, 67, 0.12); 8 | --hover-bg: rgba(60, 60, 67, 0.03); 9 | --header-bg: rgba(255, 255, 255, 0.85); 10 | --pill-bg: #e5e5ea; 11 | --pill-text: #3a3a3c; 12 | --shadow-color: rgba(0,0,0,0.05); 13 | --success-bg: #e4f8ef; 14 | --success-text: #1d804b; 15 | --error-bg: #ffe5e5; 16 | --error-text: #ff3b30; 17 | --button-bg: #007aff; 18 | --button-hover: #0063cc; 19 | --button-text: white; 20 | --delete-button-bg: #ff3b30; 21 | --delete-button-hover: #d70015; 22 | --checkbox-bg: white; 23 | --input-bg: rgba(118, 118, 128, 0.12); 24 | --input-text: #000; 25 | --input-border: transparent; 26 | --select-bg: rgba(118, 118, 128, 0.12); 27 | } 28 | 29 | [data-theme="dark"] { 30 | --bg-color: #000; 31 | --container-bg: rgba(28, 28, 30, 0.95); 32 | --text-color: #fff; 33 | --secondary-text: #98989d; 34 | --border-color: rgba(84, 84, 88, 0.65); 35 | --hover-bg: rgba(84, 84, 88, 0.2); 36 | --header-bg: rgba(28, 28, 30, 0.85); 37 | --pill-bg: #48484a; 38 | --pill-text: #e5e5ea; 39 | --shadow-color: rgba(0,0,0,0.3); 40 | --success-bg: #1c3829; 41 | --success-text: #30d158; 42 | --error-bg: #3b1715; 43 | --error-text: #ff453a; 44 | --button-bg: #0a84ff; 45 | --button-hover: #0066cc; 46 | --button-text: white; 47 | --delete-button-bg: #ff453a; 48 | --delete-button-hover: #d70015; 49 | --checkbox-bg: #48484a; 50 | --input-bg: rgba(118, 118, 128, 0.24); 51 | --input-text: #fff; 52 | --input-border: transparent; 53 | --select-bg: rgba(118, 118, 128, 0.24); 54 | } 55 | 56 | @supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) { 57 | .container, .models-header { 58 | backdrop-filter: blur(20px); 59 | -webkit-backdrop-filter: blur(20px); 60 | } 61 | } 62 | 63 | body { 64 | font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif; 65 | max-width: 900px; 66 | margin: 0 auto; 67 | padding: 20px; 68 | background-color: var(--bg-color); 69 | color: var(--text-color); 70 | line-height: 1.5; 71 | -webkit-font-smoothing: antialiased; 72 | } 73 | 74 | .container { 75 | background-color: var(--container-bg); 76 | padding: 24px; 77 | border-radius: 16px; 78 | box-shadow: 0 8px 32px var(--shadow-color); 79 | transition: all 0.3s ease; 80 | } 81 | 82 | h1 { 83 | font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; 84 | font-size: 34px; 85 | font-weight: 700; 86 | margin-bottom: 24px; 87 | } 88 | 89 | h2 { 90 | font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; 91 | font-size: 22px; 92 | font-weight: 600; 93 | margin-bottom: 16px; 94 | } 95 | 96 | .endpoint-section { 97 | margin-bottom: 32px; 98 | padding-bottom: 24px; 99 | border-bottom: 1px solid var(--border-color); 100 | } 101 | 102 | .endpoint-container { 103 | display: flex; 104 | gap: 24px; 105 | align-items: flex-start; 106 | } 107 | 108 | .endpoint-select-wrapper { 109 | flex: 0 0 auto; 110 | } 111 | 112 | .running-models-stats { 113 | flex: 1; 114 | background: var(--container-bg); 115 | border: 1px solid var(--border-color); 116 | border-radius: 12px; 117 | padding: 16px; 118 | max-width: 400px; 119 | } 120 | 121 | .running-models-stats h3 { 122 | font-size: 16px; 123 | font-weight: 600; 124 | margin: 0 0 12px 0; 125 | color: var(--text-color); 126 | } 127 | 128 | .running-model-item { 129 | padding: 12px; 130 | border: 1px solid var(--border-color); 131 | border-radius: 8px; 132 | margin-bottom: 8px; 133 | background: var(--hover-bg); 134 | } 135 | 136 | .running-model-item:last-child { 137 | margin-bottom: 0; 138 | } 139 | 140 | .model-stat { 141 | display: flex; 142 | justify-content: space-between; 143 | margin-bottom: 4px; 144 | font-size: 14px; 145 | } 146 | 147 | .model-stat:last-child { 148 | margin-bottom: 0; 149 | } 150 | 151 | .stat-label { 152 | color: var(--secondary-text); 153 | } 154 | 155 | .stat-value { 156 | color: var(--text-color); 157 | font-weight: 500; 158 | } 159 | 160 | .endpoint-select { 161 | width: 300px; 162 | padding: 12px 16px; 163 | margin-right: 12px; 164 | background-color: var(--input-bg); 165 | color: var(--input-text); 166 | border: none; 167 | border-radius: 10px; 168 | font-size: 16px; 169 | cursor: pointer; 170 | transition: all 0.2s ease; 171 | -webkit-appearance: none; 172 | appearance: none; 173 | background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2214%22%20height%3D%228%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M1%201l6%206%206-6%22%20stroke%3D%22%23999%22%20stroke-width%3D%222%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E"); 174 | background-repeat: no-repeat; 175 | background-position: right 16px center; 176 | padding-right: 40px; 177 | } 178 | 179 | .endpoint-select:focus { 180 | outline: none; 181 | box-shadow: 0 0 0 2px var(--button-bg); 182 | } 183 | 184 | .endpoint-select option { 185 | background-color: var(--select-bg); 186 | color: var(--input-text); 187 | padding: 12px; 188 | } 189 | 190 | .models-list { 191 | margin-top: 24px; 192 | border-radius: 12px; 193 | overflow: hidden; 194 | box-shadow: 0 2px 8px var(--shadow-color); 195 | } 196 | 197 | .models-header { 198 | display: flex; 199 | align-items: center; 200 | padding: 14px 16px; 201 | background-color: var(--header-bg); 202 | font-weight: 600; 203 | font-size: 14px; 204 | color: var(--secondary-text); 205 | position: sticky; 206 | top: 0; 207 | z-index: 1; 208 | } 209 | 210 | .models-header > div { 211 | cursor: pointer; 212 | display: flex; 213 | align-items: center; 214 | user-select: none; 215 | transition: color 0.2s ease; 216 | } 217 | 218 | .models-header > div:hover { 219 | color: var(--button-bg); 220 | } 221 | 222 | .sort-indicator::after { 223 | content: '↕'; 224 | margin-left: 6px; 225 | font-size: 12px; 226 | opacity: 0.5; 227 | } 228 | 229 | .sort-asc::after { 230 | content: '↑'; 231 | opacity: 1; 232 | } 233 | 234 | .sort-desc::after { 235 | content: '↓'; 236 | opacity: 1; 237 | } 238 | 239 | .model-item { 240 | display: flex; 241 | align-items: center; 242 | padding: 14px 16px; 243 | border-bottom: 1px solid var(--border-color); 244 | transition: background-color 0.2s ease; 245 | animation: fadeIn 0.3s ease; 246 | } 247 | 248 | @keyframes fadeIn { 249 | from { opacity: 0; transform: translateY(10px); } 250 | to { opacity: 1; transform: translateY(0); } 251 | } 252 | 253 | .model-item:hover { 254 | background-color: var(--hover-bg); 255 | } 256 | 257 | .checkbox-col { 258 | width: 24px; 259 | } 260 | 261 | .checkbox-col input[type="checkbox"] { 262 | width: 20px; 263 | height: 20px; 264 | border-radius: 6px; 265 | border: 2px solid var(--border-color); 266 | appearance: none; 267 | -webkit-appearance: none; 268 | outline: none; 269 | cursor: pointer; 270 | position: relative; 271 | transition: all 0.2s ease; 272 | } 273 | 274 | .checkbox-col input[type="checkbox"]:checked { 275 | background-color: var(--button-bg); 276 | border-color: var(--button-bg); 277 | } 278 | 279 | .checkbox-col input[type="checkbox"]:checked::after { 280 | content: ''; 281 | position: absolute; 282 | left: 6px; 283 | top: 2px; 284 | width: 4px; 285 | height: 9px; 286 | border: solid white; 287 | border-width: 0 2px 2px 0; 288 | transform: rotate(45deg); 289 | } 290 | 291 | .name-col { flex: 2; min-width: 150px; } 292 | .size-col { width: 100px; } 293 | .param-col { width: 80px; } 294 | .family-col { width: 100px; } 295 | .format-col { width: 80px; } 296 | .quant-col { width: 100px; } 297 | 298 | .actions-col { 299 | flex: 0.8; 300 | text-align: center; 301 | } 302 | 303 | .action-buttons { 304 | display: flex; 305 | gap: 8px; 306 | justify-content: center; 307 | } 308 | 309 | .action-buttons button { 310 | padding: 6px 12px; 311 | margin: 0; 312 | font-size: 14px; 313 | } 314 | 315 | .update-btn { 316 | background-color: var(--button-bg); 317 | } 318 | 319 | .update-btn:hover { 320 | background-color: var(--button-hover); 321 | } 322 | 323 | button { 324 | padding: 10px 20px; 325 | background-color: var(--button-bg); 326 | color: var(--button-text); 327 | border: none; 328 | border-radius: 10px; 329 | font-size: 15px; 330 | font-weight: 500; 331 | cursor: pointer; 332 | transition: all 0.2s ease; 333 | margin-right: 12px; 334 | margin-bottom: 16px; 335 | } 336 | 337 | button:hover { 338 | background-color: var(--button-hover); 339 | transform: translateY(-1px); 340 | } 341 | 342 | button:active { 343 | transform: translateY(0); 344 | } 345 | 346 | button:disabled { 347 | background-color: var(--border-color); 348 | cursor: not-allowed; 349 | transform: none; 350 | } 351 | 352 | .delete-btn { 353 | background-color: var(--delete-button-bg); 354 | } 355 | 356 | .delete-btn:hover { 357 | background-color: var(--delete-button-hover); 358 | } 359 | 360 | .update-status { 361 | font-size: 0.8em; 362 | color: var(--text-color); 363 | margin-top: 4px; 364 | } 365 | 366 | .filter-container { 367 | margin-bottom: 16px; 368 | } 369 | 370 | .filter-input { 371 | width: 100%; 372 | padding: 12px 16px; 373 | background-color: var(--input-bg); 374 | color: var(--input-text); 375 | border: none; 376 | border-radius: 10px; 377 | font-size: 16px; 378 | transition: all 0.2s ease; 379 | } 380 | 381 | .filter-input:focus { 382 | outline: none; 383 | box-shadow: 0 0 0 2px var(--button-bg); 384 | } 385 | 386 | .filter-input::placeholder { 387 | color: var(--secondary-text); 388 | } 389 | 390 | .api-docs-link { 391 | position: fixed; 392 | top: 20px; 393 | right: 80px; 394 | text-decoration: none; 395 | padding: 10px; 396 | border-radius: 8px; 397 | width: 44px; 398 | height: 44px; 399 | display: flex; 400 | align-items: center; 401 | justify-content: center; 402 | font-size: 12px; 403 | background-color: var(--container-bg); 404 | color: var(--text-color); 405 | box-shadow: 0 4px 12px var(--shadow-color); 406 | transition: all 0.3s ease; 407 | } 408 | 409 | .api-docs-link:hover { 410 | transform: scale(1.05); 411 | background-color: var(--container-bg); 412 | } 413 | 414 | .theme-toggle { 415 | position: fixed; 416 | top: 20px; 417 | right: 20px; 418 | padding: 10px; 419 | border-radius: 8px; 420 | width: 44px; 421 | height: 44px; 422 | display: flex; 423 | align-items: center; 424 | justify-content: center; 425 | font-size: 22px; 426 | background-color: var(--container-bg); 427 | color: var(--text-color); 428 | cursor: pointer; 429 | border: none; 430 | box-shadow: 0 4px 12px var(--shadow-color); 431 | transition: all 0.3s ease; 432 | } 433 | 434 | .theme-toggle:hover { 435 | transform: scale(1.05); 436 | background-color: var(--container-bg); 437 | } 438 | 439 | #endpointStatus { 440 | margin-top: 12px; 441 | padding: 12px 16px; 442 | border-radius: 10px; 443 | font-size: 15px; 444 | animation: slideIn 0.3s ease; 445 | } 446 | 447 | @keyframes slideIn { 448 | from { opacity: 0; transform: translateX(-10px); } 449 | to { opacity: 1; transform: translateX(0); } 450 | } 451 | 452 | .success { 453 | background-color: var(--success-bg); 454 | color: var(--success-text); 455 | } 456 | 457 | .error { 458 | background-color: var(--error-bg); 459 | color: var(--error-text); 460 | } 461 | 462 | .progress-text { 463 | font-size: 14px; 464 | color: var(--secondary-text); 465 | text-align: center; 466 | margin-top: 12px; 467 | } 468 | -------------------------------------------------------------------------------- /public/swagger.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Ollama Model Manager API Documentation 7 | 8 | 17 | 18 | 19 |
20 | 21 | 22 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /public/swagger.json: -------------------------------------------------------------------------------- 1 | { 2 | "openapi": "3.0.0", 3 | "info": { 4 | "title": "Ollama Model Manager API", 5 | "description": "REST API for managing Ollama models and endpoints", 6 | "version": "1.0.0" 7 | }, 8 | "servers": [ 9 | { 10 | "url": "/", 11 | "description": "Current server (relative URL)" 12 | }, 13 | { 14 | "url": "{protocol}://{hostname}:{port}", 15 | "description": "Custom server URL", 16 | "variables": { 17 | "protocol": { 18 | "enum": ["http", "https"], 19 | "default": "http" 20 | }, 21 | "hostname": { 22 | "default": "localhost" 23 | }, 24 | "port": { 25 | "default": "3000" 26 | } 27 | } 28 | } 29 | ], 30 | "components": { 31 | "schemas": { 32 | "Error": { 33 | "type": "object", 34 | "properties": { 35 | "success": { 36 | "type": "boolean", 37 | "example": false 38 | }, 39 | "message": { 40 | "type": "string", 41 | "description": "Human readable error message" 42 | }, 43 | "error": { 44 | "type": "string", 45 | "description": "Detailed error information (optional)" 46 | } 47 | } 48 | }, 49 | "SuccessResponse": { 50 | "type": "object", 51 | "properties": { 52 | "success": { 53 | "type": "boolean", 54 | "example": true 55 | }, 56 | "message": { 57 | "type": "string" 58 | } 59 | } 60 | }, 61 | "ModelDetails": { 62 | "type": "object", 63 | "properties": { 64 | "parent_model": { 65 | "type": "string" 66 | }, 67 | "format": { 68 | "type": "string" 69 | }, 70 | "family": { 71 | "type": "string" 72 | }, 73 | "families": { 74 | "type": "array", 75 | "items": { 76 | "type": "string" 77 | } 78 | }, 79 | "parameter_size": { 80 | "type": "string" 81 | }, 82 | "quantization_level": { 83 | "type": "string" 84 | } 85 | } 86 | } 87 | } 88 | }, 89 | "paths": { 90 | "/api/endpoints": { 91 | "get": { 92 | "summary": "Get Available Ollama Endpoints", 93 | "description": "Returns a list of configured Ollama endpoints", 94 | "responses": { 95 | "200": { 96 | "description": "List of endpoints", 97 | "content": { 98 | "application/json": { 99 | "schema": { 100 | "type": "array", 101 | "items": { 102 | "type": "string" 103 | } 104 | } 105 | } 106 | } 107 | } 108 | } 109 | } 110 | }, 111 | "/api/set-endpoint": { 112 | "post": { 113 | "summary": "Set Active Ollama Endpoint", 114 | "description": "Sets and validates the active Ollama endpoint", 115 | "requestBody": { 116 | "required": true, 117 | "content": { 118 | "application/json": { 119 | "schema": { 120 | "type": "object", 121 | "properties": { 122 | "endpoint": { 123 | "type": "string", 124 | "example": "http://localhost:11434" 125 | } 126 | }, 127 | "required": ["endpoint"] 128 | } 129 | } 130 | } 131 | }, 132 | "responses": { 133 | "200": { 134 | "description": "Endpoint set successfully", 135 | "content": { 136 | "application/json": { 137 | "schema": { 138 | "$ref": "#/components/schemas/SuccessResponse" 139 | } 140 | } 141 | } 142 | }, 143 | "500": { 144 | "description": "Error setting endpoint", 145 | "content": { 146 | "application/json": { 147 | "schema": { 148 | "$ref": "#/components/schemas/Error" 149 | } 150 | } 151 | } 152 | } 153 | } 154 | } 155 | }, 156 | "/api/ps": { 157 | "get": { 158 | "summary": "Get Running Models", 159 | "description": "Returns a list of currently running Ollama models", 160 | "responses": { 161 | "200": { 162 | "description": "List of running models", 163 | "content": { 164 | "application/json": { 165 | "schema": { 166 | "type": "object", 167 | "description": "Response format matches Ollama's /api/ps endpoint" 168 | } 169 | } 170 | } 171 | }, 172 | "500": { 173 | "description": "Error fetching running models", 174 | "content": { 175 | "application/json": { 176 | "schema": { 177 | "$ref": "#/components/schemas/Error" 178 | } 179 | } 180 | } 181 | } 182 | } 183 | } 184 | }, 185 | "/api/models": { 186 | "get": { 187 | "summary": "Get Available Models", 188 | "description": "Returns a list of available models with their details", 189 | "responses": { 190 | "200": { 191 | "description": "List of models", 192 | "content": { 193 | "application/json": { 194 | "schema": { 195 | "type": "array", 196 | "items": { 197 | "type": "object", 198 | "properties": { 199 | "name": { 200 | "type": "string" 201 | }, 202 | "size": { 203 | "type": "integer" 204 | }, 205 | "details": { 206 | "$ref": "#/components/schemas/ModelDetails" 207 | } 208 | } 209 | } 210 | } 211 | } 212 | } 213 | }, 214 | "500": { 215 | "description": "Error fetching models", 216 | "content": { 217 | "application/json": { 218 | "schema": { 219 | "$ref": "#/components/schemas/Error" 220 | } 221 | } 222 | } 223 | } 224 | } 225 | }, 226 | "delete": { 227 | "summary": "Delete Models", 228 | "description": "Deletes one or more models from Ollama", 229 | "requestBody": { 230 | "required": true, 231 | "content": { 232 | "application/json": { 233 | "schema": { 234 | "type": "object", 235 | "properties": { 236 | "models": { 237 | "type": "array", 238 | "items": { 239 | "type": "string" 240 | } 241 | } 242 | }, 243 | "required": ["models"] 244 | } 245 | } 246 | } 247 | }, 248 | "responses": { 249 | "200": { 250 | "description": "Models deleted successfully", 251 | "content": { 252 | "application/json": { 253 | "schema": { 254 | "$ref": "#/components/schemas/SuccessResponse" 255 | } 256 | } 257 | } 258 | }, 259 | "500": { 260 | "description": "Error deleting models", 261 | "content": { 262 | "application/json": { 263 | "schema": { 264 | "$ref": "#/components/schemas/Error" 265 | } 266 | } 267 | } 268 | } 269 | } 270 | } 271 | }, 272 | "/api/pull": { 273 | "post": { 274 | "summary": "Pull Model", 275 | "description": "Pulls a new model from Ollama. Returns a streaming response with progress updates", 276 | "requestBody": { 277 | "required": true, 278 | "content": { 279 | "application/json": { 280 | "schema": { 281 | "type": "object", 282 | "properties": { 283 | "model": { 284 | "type": "string" 285 | } 286 | }, 287 | "required": ["model"] 288 | } 289 | } 290 | } 291 | }, 292 | "responses": { 293 | "200": { 294 | "description": "Streaming response with progress updates", 295 | "content": { 296 | "application/x-ndjson": { 297 | "schema": { 298 | "type": "object", 299 | "properties": { 300 | "status": { 301 | "type": "string", 302 | "enum": ["downloading", "verifying digest", "writing manifest", "error"] 303 | }, 304 | "completed": { 305 | "type": "integer" 306 | }, 307 | "total": { 308 | "type": "integer" 309 | }, 310 | "error": { 311 | "type": "string" 312 | } 313 | } 314 | } 315 | } 316 | } 317 | }, 318 | "400": { 319 | "description": "Invalid request", 320 | "content": { 321 | "application/json": { 322 | "schema": { 323 | "$ref": "#/components/schemas/Error" 324 | } 325 | } 326 | } 327 | } 328 | } 329 | } 330 | }, 331 | "/api/update-model": { 332 | "post": { 333 | "summary": "Update Model", 334 | "description": "Updates an existing model. Returns a streaming response with progress updates", 335 | "requestBody": { 336 | "required": true, 337 | "content": { 338 | "application/json": { 339 | "schema": { 340 | "type": "object", 341 | "properties": { 342 | "modelName": { 343 | "type": "string" 344 | } 345 | }, 346 | "required": ["modelName"] 347 | } 348 | } 349 | } 350 | }, 351 | "responses": { 352 | "200": { 353 | "description": "Streaming response with progress updates", 354 | "content": { 355 | "application/x-ndjson": { 356 | "schema": { 357 | "type": "object", 358 | "properties": { 359 | "status": { 360 | "type": "string", 361 | "enum": ["downloading", "verifying digest", "writing manifest", "error"] 362 | }, 363 | "completed": { 364 | "type": "integer" 365 | }, 366 | "total": { 367 | "type": "integer" 368 | }, 369 | "error": { 370 | "type": "string" 371 | } 372 | } 373 | } 374 | } 375 | } 376 | }, 377 | "400": { 378 | "description": "Invalid request", 379 | "content": { 380 | "application/json": { 381 | "schema": { 382 | "$ref": "#/components/schemas/Error" 383 | } 384 | } 385 | } 386 | } 387 | } 388 | } 389 | } 390 | } 391 | } 392 | -------------------------------------------------------------------------------- /server.js: -------------------------------------------------------------------------------- 1 | import 'dotenv/config'; 2 | import express from 'express'; 3 | import cors from 'cors'; 4 | import axios from 'axios'; 5 | import { readFile } from 'fs/promises'; 6 | import { join } from 'path'; 7 | const app = express(); 8 | 9 | app.use(cors({ 10 | origin: '*', 11 | methods: ['GET', 'POST', 'DELETE', 'OPTIONS'], 12 | allowedHeaders: ['Content-Type'] 13 | })); 14 | app.use(express.json()); 15 | 16 | // Serve swagger.json with explicit route 17 | app.get('/swagger.json', async (req, res) => { 18 | try { 19 | const swaggerPath = join(process.cwd(), 'public', 'swagger.json'); 20 | const swaggerContent = await readFile(swaggerPath, 'utf8'); 21 | res.setHeader('Content-Type', 'application/json'); 22 | res.send(swaggerContent); 23 | } catch (error) { 24 | console.error('Error serving swagger.json:', error); 25 | res.status(500).send({ error: 'Failed to load swagger.json' }); 26 | } 27 | }); 28 | 29 | // Serve static files after routes 30 | app.use(express.static('public')); 31 | 32 | // Store the Ollama endpoint 33 | let ollamaEndpoint = 'http://localhost:11434'; 34 | 35 | // Get endpoints from environment variable 36 | const getEndpoints = () => { 37 | const endpoints = process.env.OLLAMA_ENDPOINTS || 'http://localhost:11434'; 38 | return endpoints.split(',').map(endpoint => endpoint.trim()); 39 | }; 40 | 41 | // Endpoint to get available Ollama endpoints 42 | app.get('/api/endpoints', (req, res) => { 43 | res.json(getEndpoints()); 44 | }); 45 | 46 | // Endpoint to set Ollama API URL 47 | app.post('/api/set-endpoint', async (req, res) => { 48 | const { endpoint } = req.body; 49 | ollamaEndpoint = endpoint; 50 | try { 51 | // Test the connection 52 | await axios.get(`${endpoint}/api/tags`); 53 | res.json({ success: true, message: 'Endpoint set successfully' }); 54 | } catch (error) { 55 | res.status(500).json({ 56 | success: false, 57 | message: 'Failed to connect to Ollama endpoint', 58 | error: error.message 59 | }); 60 | } 61 | }); 62 | 63 | // Get running models from Ollama 64 | app.get('/api/ps', async (req, res) => { 65 | try { 66 | const response = await axios.get(`${ollamaEndpoint}/api/ps`); 67 | res.json(response.data); 68 | } catch (error) { 69 | res.status(500).json({ 70 | success: false, 71 | message: 'Failed to fetch running models', 72 | error: error.message 73 | }); 74 | } 75 | }); 76 | 77 | app.get('/api/models', async (req, res) => { 78 | try { 79 | const response = await axios.get(`${ollamaEndpoint}/api/tags`); 80 | 81 | // Get details for each model 82 | const modelsWithDetails = await Promise.all(response.data.models.map(async (model) => { 83 | try { 84 | const detailsResponse = await axios.post(`${ollamaEndpoint}/api/show`, { 85 | name: model.name 86 | }); 87 | return { 88 | ...model, 89 | details: { 90 | parent_model: detailsResponse.data.details?.parent_model || '', 91 | format: detailsResponse.data.details?.format || '', 92 | family: detailsResponse.data.details?.family || '', 93 | families: detailsResponse.data.details?.families || [], 94 | parameter_size: detailsResponse.data.details?.parameter_size || '', 95 | quantization_level: detailsResponse.data.details?.quantization_level || '' 96 | } 97 | }; 98 | } catch { 99 | // If we can't get details, return the model without them 100 | return model; 101 | } 102 | })); 103 | 104 | // Sort models alphabetically 105 | const sortedModels = modelsWithDetails.sort((a, b) => 106 | a.name.localeCompare(b.name) 107 | ); 108 | res.json(sortedModels); 109 | } catch (error) { 110 | res.status(500).json({ 111 | success: false, 112 | message: 'Failed to fetch models', 113 | error: error.message 114 | }); 115 | } 116 | }); 117 | 118 | // Delete models from Ollama 119 | app.delete('/api/models', async (req, res) => { 120 | const { models } = req.body; 121 | try { 122 | const results = await Promise.allSettled(models.map(model => 123 | axios.delete(`${ollamaEndpoint}/api/delete`, { 124 | data: { name: model } 125 | }) 126 | )); 127 | 128 | const failed = results 129 | .filter(r => r.status === 'rejected') 130 | .map((r, i) => models[i]); 131 | 132 | if (failed.length > 0) { 133 | res.status(500).json({ 134 | success: false, 135 | message: `Failed to delete models: ${failed.join(', ')}`, 136 | }); 137 | } else { 138 | res.json({ success: true, message: 'Models deleted successfully' }); 139 | } 140 | } catch (error) { 141 | res.status(500).json({ 142 | success: false, 143 | message: 'Failed to process delete request', 144 | error: error.message 145 | }); 146 | } 147 | }); 148 | 149 | // Handle streaming response for model operations 150 | const handleModelOperation = async (req, res, operation) => { 151 | res.setHeader('Content-Type', 'application/json'); 152 | res.setHeader('Transfer-Encoding', 'chunked'); 153 | 154 | let hasEnded = false; 155 | const endResponse = (error) => { 156 | if (!hasEnded) { 157 | hasEnded = true; 158 | if (error) { 159 | res.write(JSON.stringify({ 160 | status: 'error', 161 | error: error.message 162 | }) + '\n'); 163 | } 164 | res.end(); 165 | } 166 | }; 167 | 168 | try { 169 | const response = await axios({ 170 | method: 'post', 171 | url: `${ollamaEndpoint}/api/pull`, 172 | data: operation, 173 | responseType: 'stream' 174 | }); 175 | 176 | response.data.on('data', (chunk) => { 177 | try { 178 | const lines = chunk.toString().split('\n'); 179 | lines.forEach(line => { 180 | if (line.trim()) { 181 | try { 182 | JSON.parse(line); 183 | res.write(line + '\n'); 184 | } catch { 185 | console.error('Invalid JSON in response:', line); 186 | } 187 | } 188 | }); 189 | } catch (error) { 190 | console.error('Error processing chunk:', error); 191 | endResponse(error); 192 | } 193 | }); 194 | 195 | response.data.on('end', () => endResponse()); 196 | response.data.on('error', (error) => { 197 | console.error('Stream error:', error); 198 | endResponse(error); 199 | }); 200 | 201 | req.on('close', () => endResponse()); 202 | 203 | } catch (error) { 204 | console.error('Failed to start operation:', error); 205 | endResponse(error); 206 | } 207 | }; 208 | 209 | // Endpoint to pull a model 210 | app.post('/api/pull', async (req, res) => { 211 | const { model } = req.body; 212 | if (!model) { 213 | return res.status(400).json({ 214 | success: false, 215 | message: 'Model name is required' 216 | }); 217 | } 218 | await handleModelOperation(req, res, { model }); 219 | }); 220 | 221 | // Endpoint to update a model 222 | app.post('/api/update-model', async (req, res) => { 223 | const { modelName } = req.body; 224 | if (!modelName) { 225 | return res.status(400).json({ 226 | success: false, 227 | message: 'Model name is required' 228 | }); 229 | } 230 | await handleModelOperation(req, res, { model: modelName }); 231 | }); 232 | 233 | const PORT = 3000; 234 | app.listen(PORT, () => { 235 | console.log(`Server running on http://localhost:${PORT}`); 236 | }); 237 | -------------------------------------------------------------------------------- /sonar-project.properties: -------------------------------------------------------------------------------- 1 | sonar.projectKey=d3v0ps-cloud_OllamaModelManager_31f3370e-89cb-4039-a803-018716922431 2 | --------------------------------------------------------------------------------