Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ahkohd/tauri-macos-spotlight-example

An example macOS Spotlight app built with Tauri
https://github.com/ahkohd/tauri-macos-spotlight-example

macos rust tauri tauri-template

Last synced: 5 days ago
JSON representation

An example macOS Spotlight app built with Tauri

Awesome Lists containing this project

README

        

# Tauri macOS Spotlight Example

This is an example project that shows how to create a macOS Spotlight app using Tauri.

> Tauri 2.0 RC is now live! The [v2](https://github.com/ahkohd/tauri-macos-spotlight-example/tree/v2) branch includes a newer implementation of the spotlight app.

> Check out the [file-upload](https://github.com/ahkohd/tauri-macos-spotlight-example/tree/v1-file-upload) branch for an example of the spotlight app, now featuring file upload functionality. See it in action [here](https://github.com/ahkohd/tauri-macos-spotlight-example/issues/12#issuecomment-1826410794).

This template is based on Tauri + React + Typescript template. It should help get you started developing with Tauri, React and Typescript in Vite.

## Prerequisites

- _[Node.js](https://nodejs.org)_
- _[Tauri CLI](https://tauri.studio/docs/getting-started/installation)_

## Getting Started

1. Clone this repository:

```
git clone https://github.com/ahkohd/tauri-macos-spotlight-example.git
```

2. Navigate to the project directory:

```
cd tauri-macos-spotlight-example
```

3. Run the demo

```
pnpm install
pnpm tauri dev
```

4. Press Cmdk to toggle the spotlight window

![Demo](./demo.gif)

## Recommended IDE Setup

- [VS Code](https://code.visualstudio.com/) + [Tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode) + [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)

# Related

The following are related to this project:

- [tauri-nspanel](https://github.com/ahkohd/tauri-nspanel/tree/main/examples/vanilla): Tauri plugin to convert a window to panel.
- [tauri-plugin-spotlight](https://github.com/zzzze/tauri-plugin-spotlight): Tauri plugin that provides a MacOS Spotlight-like search functionality for Tauri windows.

# License

This project is licensed under the MIT License. See the [LICENSE](./LICENSE.md) file for details.