khoj/src/interface/desktop
Debanjum 9acc722f7f
[Multi-User Part 4]: Authenticate using API Tokens (#513)
###  New
- Use API keys to authenticate from Desktop, Obsidian, Emacs clients
- Create API, UI on web app config page to CRUD API Keys
- Create user API keys table and functions to CRUD them in Database

### 🧪 Improve
- Default to better search model, [gte-small](https://huggingface.co/thenlper/gte-small), to improve search quality
- Only load chat model to GPU if enough space, throw error on load failure
- Show encoding progress, truncate headings to max chars supported
- Add instruction to create db in Django DB setup Readme

### ⚙️ Fix
- Fix error handling when configure offline chat via Web UI
- Do not warn in anon mode about Google OAuth env vars not being set
- Fix path to load static files when server started from project root
2023-10-26 12:33:03 -07:00
..
assets [Multi-User Part 4]: Authenticate using API Tokens (#513) 2023-10-26 12:33:03 -07:00
chat.html [Multi-User Part 4]: Authenticate using API Tokens (#513) 2023-10-26 12:33:03 -07:00
config.html [Multi-User Part 4]: Authenticate using API Tokens (#513) 2023-10-26 12:33:03 -07:00
index.html [Multi-User Part 4]: Authenticate using API Tokens (#513) 2023-10-26 12:33:03 -07:00
main.js [Multi-User Part 4]: Authenticate using API Tokens (#513) 2023-10-26 12:33:03 -07:00
package.json Release Khoj version 0.13.0 2023-10-18 03:43:54 -07:00
preload.js [Multi-User Part 4]: Authenticate using API Tokens (#513) 2023-10-26 12:33:03 -07:00
README.md Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
renderer.js [Multi-User Part 4]: Authenticate using API Tokens (#513) 2023-10-26 12:33:03 -07:00
todesktop.json Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
yarn.lock Update Khoj package version for Electron, Desktop app (#492) 2023-10-03 12:21:32 -07:00

Run it locally

Prerequisites

Install the runtime dependencies. This command should install all dev dependencies.

yarn add

Run the application

yarn start

Deploying the Electron App

Prerequisites

Install the ToDesktop CLI. Full documentation can be found here: https://www.npmjs.com/package/@todesktop/cli

yarn global add @todesktop/cli

Configure the todesktop.json file. Fill in the id based on the application ID.

Build

This will prompt you to login. It triggers builds for all platforms.

todesktop build

If you get an error saying the command is not found, make sure that your yarn global bin directory is in your PATH environment variable. You can find the location of the global bin directory by running yarn global bin. Add this line to your .bashrc or .zshrc file: export PATH="$PATH:$(yarn global bin)".