https://github.com/opensass/nano-ai
π¬Gemini Nano Adapter for WASM Frameworks.
https://github.com/opensass/nano-ai
ai dioxus gemini gemini-nano gemini-nano-in-chrome leptos rust yew
Last synced: about 1 year ago
JSON representation
π¬Gemini Nano Adapter for WASM Frameworks.
- Host: GitHub
- URL: https://github.com/opensass/nano-ai
- Owner: opensass
- License: mit
- Created: 2024-12-02T11:18:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-04T04:10:15.000Z (over 1 year ago)
- Last Synced: 2025-03-27T19:21:31.746Z (about 1 year ago)
- Topics: ai, dioxus, gemini, gemini-nano, gemini-nano-in-chrome, leptos, rust, yew
- Language: Rust
- Homepage: https://nano-wasm.netlify.app/
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# π€ Nano AI
[](https://www.rust-lang.org/)
[](https://crates.io/crates/nano-ai)
[](https://crates.io/crates/nano-ai)
[](https://docs.rs/nano-ai/)
[](LICENSE)
[](https://github.com/wiseaidev)
[](https://nano-wasm.netlify.app/)

## π Overview
`nano-ai` is a lightweight and efficient AI adapter for integrating Gemini Nano AI model into WASM frameworks.
## π Features
| Method | Supported | Tested | Windows Chrome Canary | Linux Chrome Canary |
|-------------------------|-----------|--------|-----------------------|---------------------|
| `get_capabilities` | β
| β
| β
| β
|
| `create_session` | β
| β
| β
| β
|
| `send_prompt` | β
| β
| β
| β |
| `stream_prompt` | β
| β¬ | β
| β |
| `destroy_session` | β
| β
| β
| β
|
> [!WARNING]
> This crate has been fully tested only on [Chrome Canary](https://www.google.com/chrome/canary/) running on a Windows machine. Compatibility on Linux Chrome Canary is limited, as only `get_capabilities`, `create_session`, and `destroy_session` methods are confirmed to work.
## π WASM Frameworks
| Framework | Supported |
|-----------|-------------|
| Yew | β
|
| Dioxus | β¬ |
| Leptos | β¬ |
## π Examples
| Framework | Example |
|-----------|-------------------------------------------------------------------------------------------|
| Yew | [](./examples/yew) |
| Dioxus | β¬ |
| Leptos | β¬ |
β¬: TODO
## π₯ Contributing
We welcome contributions to enhance `nano-ai`! Feel free to submit issues, create pull requests, or discuss improvements on our [GitHub repository](https://github.com/opensass/nano-ai).
## π License
This project is licensed under the [MIT License](LICENSE).