https://github.com/andrei-cacio/wasm-fuzzy-search
A simple fuzzy search function written in Rust and compiled to WASM
https://github.com/andrei-cacio/wasm-fuzzy-search
rust rustwasm wasm wasm-bindgen
Last synced: about 1 month ago
JSON representation
A simple fuzzy search function written in Rust and compiled to WASM
- Host: GitHub
- URL: https://github.com/andrei-cacio/wasm-fuzzy-search
- Owner: andrei-cacio
- License: mit
- Created: 2018-09-22T12:37:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-23T18:38:01.000Z (over 7 years ago)
- Last Synced: 2025-01-02T22:42:54.456Z (over 1 year ago)
- Topics: rust, rustwasm, wasm, wasm-bindgen
- Language: JavaScript
- Size: 355 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wasm-fuzzy-search
A simple fuzzy search function written in Rust and compiled to WASM
### Purpose
Playing around with the [rustwasm](https://github.com/rustwasm/team) toolchains.
#### Development
First please follow these [steps](https://rustwasm.github.io/book/game-of-life/setup.html) to install Rust & deps.
Second:
```
$ git clone https://github.com/andrei-cacio/wasm-fuzzy-search
$ cd wasm-fuzzy-search
$ bash build.sh
$ cd pkg
$ npm link
```
Now that we have locally built and linked our NPM module, we will need an app to use it:
```
$ git clone https://github.com/andrei-cacio/fuzzy-search-app
$ cd fuzzy-search-app
$ npm i
$ npm start
```
Now we can go to [http://localhost:8080](http://localhost:8080) and have some fun.
#### Production
TODO: publish to npm