Breve is a cross-platform application built using Tauri, Vue 3, and TypeScript. It provides a conversational interface that allows users to create, manage, and continue conversations, storing all data locally using SQLite through a Rust backend.
- Run LLMs locally on any device, without internet connection
- Calculate maximum context length and query length based on Device memory
- Cross-platform application using Tauri and Vue 3
- Create, update, and delete conversations
- Persist conversations locally in SQLite
- Rust backend for secure, high-performance operations
- Hot-reloading and easy development experience
- Frontend: Vue 3, TypeScript, Vite
- Backend: Tauri (Rust), SQLite for local data storage
- Data Model: Conversations are stored and managed using a local SQLite database, with Rust providing data access and business logic.
- Communication: Frontend and backend interact via Tauri commands.
-
Clone the repository:
git clone https://github.com/divy-sh/breve.git cd breve -
Install frontend dependencies:
yarn install # or npm install -
You can choose and add any new models to infrastructure/config.rs and it would show up on the download page.
config.rs
-
You will get the download model page on first start.
-
Run the development server:
yarn tauri dev # or npm run tauri dev
To build the app for production:
yarn tauri build
# or
npm run tauri build- Intall android sdk, and export its path - export ANDROID_HOME "android/"
- Intall android ndk, and export its path - export NDK_HOME "android/ndk/ndk-version"
- Run npm run tauri android init
To package for android:
Add the following to src-tauri/gen/android/app/build.gradle.kts:
defaultConfig {
...
}
signingConfigs {
create("release") {
val keystorePropertiesFile = rootProject.file("keystore.properties")
val keystoreProperties = Properties()
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["password"] as String
storeFile = file(keystoreProperties["storeFile"] as String)
storePassword = keystoreProperties["password"] as String
}
}
buildTypes {
...
}Add the following to src-tauri/gen/android/app/src/main/AndroidManifest.xml
<activity
# this line
android:windowSoftInputMode="adjustResize"
...>
<intent-filter>
...
</intent-filter>
</activity>Add File keystorre.properties to src-tauri/gen/android/
password=you key alias password
keyAlias=your key alias
storeFile=your google play keystore file pathapk file
npm run tauri android build -- --apkaab file
npm run tauri android build -- --aab--relese // add this for releaseIf you want to set build type debug:
--debug // add this for debugTo sign the android package, go through the following link: Tauri android App Signing
Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's Take Over mode by following these steps:
- Run
Extensions: Show Built-in Extensionsfrom VS Code's command palette, look forTypeScript and JavaScript Language Features, then right click and selectDisable (Workspace). By default, Take Over mode will enable itself if the default TypeScript extension is disabled. - Reload the VS Code window by running
Developer: Reload Windowfrom the command palette.
Learn more about Take Over mode here.
Contributions are welcome! Please open issues and pull requests to help improve Breve.
- Fix the model switching issue on model configuration change.





