rferrari/boar-app
Sobre
BOAR - Adaptive Local Intelligence
IA e aprendizado de máquinaCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- Coletando histórico
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original
The app icon, and the original mascot (kept for reference while the new avatar replaces it).
BOAR
AI that works when the internet doesn't.
An open-source research assistant that runs on your phone and shows where every answer came from.
What it is
BOAR downloads a small language model and the knowledge you pick once, then answers your questions in airplane mode. There is no account, and the app needs no server and no Google Play Services. Answers cite local sources: built-in Wikipedia articles, knowledge packs and your own documents. Tap a citation to read the exact passage.
It is a native Android app written in Kotlin with Jetpack Compose. Inference is llama.cpp, called through JNI. What we believe: MANIFESTO.md.
Install
- Download the APK from the releases page (any 64-bit ARM phone, Android 8 or newer). The current release is 2.1.0.
- Check it against
SHA256SUMS, next to it on the release (sha256sum -c SHA256SUMS), then open it on the phone or runadb install boar-2.1.0.apk. - On first launch, setup downloads three things: the answer model, the search model
(BGE Small) and the Wikipedia Vital Articles pack (about 164 MB, from the
knowledge-pack-v1release). The answer model is Qwen3 4B (about 2.5 GB) on 12 GB phones (Android reports 10 GB or more) and Qwen3 1.7B (about 1.1 GB) below that. If the phone is short on space, setup offers a smaller package without the Vital Articles pack. While it downloads, setup walks you through BOAR's main choices.
No internet at all, not even once? 2.1.0 has no offline APK. The last ones are 2.0.0-rc2's, on Hugging Face: an offline APK with the model, the search model, the Vital Articles pack and Designer's drawing model inside, which unpacks them on first launch and never needs the network (Qwen3 1.7B, about 2 GB, or Qwen3 4B, about 3.4 GB, for 12 GB phones). You can also build your own from the current code, with another model if you like (USING.md).
After setup, chat, search and sources work without a connection. The network permission stays for things you start yourself: more models, packs, or searching Hugging Face for other GGUF models.
If you have BOAR 1.x (the Expo app) installed, an official release installs over it and keeps your models.
The APK has no Google Play Services dependencies. 2.0.0-rc1 was tested on a Pixel 8a with GrapheneOS.
Which branch?
| You want to… | Branch | What's there |
|---|---|---|
| Build or change the Android app | main |
The native app (Kotlin, llama.cpp). 2.1.0 is built from it. |
| Send a pull request | a branch off main |
feat/…, fix/…, docs/…, then a pull request into main |
| Write a Boar Lab or plugin | a branch off main |
One plugin folder, then a pull request into main: docs/PLUGINS.md |
| Use BOAR on iPhone or Mac | sopa-agency/boar-ios-app | Its own repository: SwiftUI and llama.cpp, kept in step with the Android work |
| Ship a phone that never goes online | feat/offline-bundle |
The offline APK's packaging (scripts/build-offline-apk.sh), at 2.0.0-rc2, not updated since |
| Find BOAR 1.x | expo, ios |
The Expo / React Native app (tag expo-final), including the routing and facts work of PR #85. Parked. |
| Try other inference engines | experimental-engines, experimental-laya |
Parked experiments, with their measurements |
main holds the current code and the releases. Branch from main, and open your pull request
against it.
Build from source
The app lives in android-native/. You need the Android SDK with
NDK 27.1.12297006 and CMake 3.22.1, and JDK 17.
git clone --recursive https://github.com/rferrari/boar-app.git
cd boar-app/android-native
./gradlew assembleRelease -Pboar.experimentalFeatures=true
# -> app/build/outputs/apk/release/boar-2.1.0.apk
Without the release key the APK is debug-signed. That is fine for your own phone.
Exact commands, build flags, signing and tests: AGENTS.md.
Or run make start at the repo root: a numbered menu to build the APKs, install on a USB phone or the emulator,
read BOAR's log, run a benchmark and run the checks. make help lists the same actions as plain targets.
Boar Labs
Boar Labs, the plugins, exists only in builds made with EXPERIMENTAL_FEATURES=true, as 2.1.0
is. Each plugin is one folder under android-native/app/src/labs/plugins/; a release build
carries the ones listed in android-native/app/src/labs/released.txt, each with its tests.
- Start on: Vitals, Designer, Press, Calculator, Distance, Facts, Cohazard and Cards.
- Start off: Nomad, Lunar and Guard.
- Polyglot is deprecated: its code stays, but it is off and not in the list.
- Big Boar and Boar Wisp, which run their own engines, are left out of a release build. Designer draws on the phone with stable-diffusion.cpp.
The Plugins list, with a switch for each plugin, is in the menu in every profile. Turning off Cohazard, the carbon monoxide safety card, asks first. Boar Labs' own switch is in Settings → Experimental (Pro). A build without the flag has none of this. How a plugin is made: docs/PLUGINS.md.
Docs
| docs/USING.md | Using BOAR: answer styles, Deep Research, sources, Labs, PIN |
| AGENTS.md | Build, install, test and evaluate from the command line |
| docs/PLUGINS.md | Boar Labs plugins |
| docs/MODELS.md | Models, datasets and indexes |
| docs/KNOWLEDGE_PACKS.md | How knowledge packs are built and searched |
| docs/EVAL_QUERIES.md | The evaluation questions |
| docs/DESKTOP_RUNNER.md | Answering a question set with the app's answer path on a Linux computer (CPU or GPU) |
| boarapp.com/docs/results · docs/evidence | Benchmark results measured on phones, and the raw runs of the 2.x app |
| PRIVACY.md · TERMS.md | Privacy policy and terms |
Built for the poidh bounty #31, "Build the Best Offline AI Research App for Android".
License
MIT, see LICENSE. Third-party code and models keep their own licenses, listed in android-native/NOTICE.
Explore projetos relacionados
Carregando…