https://github.com/pottekkat/soek
soek is a pure client-side search library built using Go and WebAssembly.
https://github.com/pottekkat/soek
Last synced: 2 months ago
JSON representation
soek is a pure client-side search library built using Go and WebAssembly.
- Host: GitHub
- URL: https://github.com/pottekkat/soek
- Owner: pottekkat
- License: apache-2.0
- Created: 2023-09-20T14:12:09.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-17T06:27:47.000Z (over 1 year ago)
- Last Synced: 2025-01-07T15:29:15.230Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 255 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# soek
soek is a pure client-side search library built using Go and WebAssembly.
> [!NOTE]
> This project sucks, and I don't know what I'm doing. But it is open source in the interest of building in public. I hope to make it less sucky as I learn more.
>
> If you are reading this and think this project sucks, help me out by sharing how to make it suck less.## Example
The `example` folder contains a sample site that uses soek. To run the example, first build soek by running:
```shell
npm install
npm run build
```Then serve the files in the example folder and open `index.html` in your browser.
## Development
The `main.go` file is the entrypoint to the library.
The `pkg` folder contains the actual functions that implements soek's search capabilities. You can also use this as a package in Go by running:
```shell
go get github.com/pottekkat/soek/pkg/soek
```You can then import this as:
```go
import (
"github.com/pottekkat/soek/pkg/soek"
)
```The `scripts` folder contains the JavaScript glue code that wraps around this Go-Wasm binary. See the example in `examples` folder to see how it all works together.
To build a development version of soek, run:
```shell
npm install
npm run build-dev
```## License
This project is licensed under the [Apache License, Version 2.0](/LICENSE).