khoj/src/interface/desktop
Debanjum Singh Solanky 29a581d2b0 Move to single click audio chat UX on desktop app
- Capabillity
  New default UX has 1 long-press to send transcribed audio message

  - Removes the previous default of 3 clicks required to send audio message
    - The record > stop > send process to send audio messages was unclear
  - Still allows stopping message from being sent, if users want to make
    correction to transcribed audio
  - Removes inadvertent long audio transcriptions if user forgets to
    press stop when recording

- Changes
  - Record audio while microphone button pressed
  - Show auto-send 3s countdown timer UI for audio chat message
    Provide a visual cue around send button for how long before audio
    message is automatically sent to Khoj for response
  - Auto-send msg in 3s unless stop send message button clicked
2024-01-20 16:03:51 +05:30
..
assets Convert config page buttons to use stronger yellow 2023-11-28 19:55:43 -08:00
about.html Add About page for Khoj to Desktop app. Expose it via system tray 2023-11-03 23:59:21 -07:00
chat.html Move to single click audio chat UX on desktop app 2024-01-20 16:03:51 +05:30
config.html Convert config page buttons to use stronger yellow 2023-11-28 19:55:43 -08:00
loading-animation.js Replace var declarations with let declarations (#576) 2023-12-29 10:20:48 +05:30
main.js Add option to use HuggingFace's inference endpoint for generating embeddings (#609) 2024-01-16 08:58:24 +05:30
package.json Release Khoj version 1.3.0 2024-01-18 11:42:13 +05:30
preload.js Indicate in the desktop if the user gets rate limited for indexing 2023-11-25 22:31:23 -08:00
README.md Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
renderer.js Show relevant error msg in desktop app, e.g when can't connect to server 2024-01-09 23:09:34 +05:30
search.html Use file source to find entries from github, notion on web, desktop client 2023-11-21 13:10:50 -08:00
splash.html Show splash screen on starting desktop app 2023-11-03 03:19:08 -07:00
todesktop.json Add front-end Electron application for Khoj local file syncing (#473) 2023-09-06 12:04:18 -07:00
utils.js Add About page for Khoj to Desktop app. Expose it via system tray 2023-11-03 23:59:21 -07:00
yarn.lock Update jinja2 and axios min supported package versions 2024-01-16 18:45:38 +05:30

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)".