Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

2.6 KB
Raw Blame
{
  "$schema": "https://schema.tauri.app/config/2",
  "productName": "Jan",
  "mainBinaryName": "Jan-Desktop",
  "version": "0.8.8",
  "identifier": "jan.ai.app",
  "build": {
    "frontendDist": "../web-app/dist",
    "devUrl": "http://localhost:1420",
    "beforeDevCommand": "cross-env IS_TAURI=true IS_DEV=true yarn dev:web",
    "beforeBuildCommand": "cross-env IS_TAURI=true yarn build:web"
  },
  "app": {
    "macOSPrivateApi": true,
    "security": {
      "capabilities": [
        "default",
        "extensions",
        "log-app-window",
        "logs-window",
        "system-monitor-window",
        "mlx"
      ],
      "csp": {
        "default-src": "'self' customprotocol: asset: http://localhost:* http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:*",
        "connect-src": "'self' asset: ipc: data: http://asset.localhost http://ipc.localhost http://127.0.0.1:* ws://localhost:* ws://127.0.0.1:* https: http:",
        "font-src": [
          "https://fonts.gstatic.com blob: data: tauri://localhost http://tauri.localhost"
        ],
        "img-src": "'self' asset: http://asset.localhost blob: data: https:",
        "media-src": "'self' asset: http://asset.localhost blob: data: https:",
        "frame-src": "'self' preview: http://preview.localhost",
        "style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com",
        "script-src": "'self' 'wasm-unsafe-eval' https://eu-assets.i.posthog.com https://posthog.com",
        "worker-src": "'self' blob:"
      },
      "dangerousDisableAssetCspModification": ["style-src"],
      "assetProtocol": {
        "enable": true,
        "scope": {
          "requireLiteralLeadingDot": false,
          "allow": []
        }
      }
    }
  },
  "plugins": {
    "opener": {
      "requireLiteralLeadingDot": false
    },
    "os": {
      "version": "latest",
      "resolve": true
    },
    "updater": {
      "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDJFNDEzMEVCMUEzNUFENDQKUldSRXJUVWE2ekJCTGc1Mm1BVXgrWmtES3huUlBFR0lCdG5qbWFvMzgyNDhGN3VTTko5Q1NtTW0K",
      "endpoints": [
        "https://apps.jan.ai/update-check",
        "https://github.com/janhq/jan/releases/latest/download/latest.json"
      ],
      "windows": {
        "installMode": "passive"
      }
    }
  },
  "bundle": {
    "publisher": "Menlo Research Pte. Ltd.",
    "active": true,
    "createUpdaterArtifacts": false,
    "icon": [
      "icons/32x32.png",
      "icons/128x128.png",
      "icons/[email protected]",
      "icons-macos/icon.icns",
      "icons-windows/icon.ico"
    ],
    "resources": ["resources/LICENSE"]
  }
}