Skip to content

πŸ¦€ INFINI Pizza for WebAssembly, A super-lightweight but full featured static-site search engine written in Rust. πŸ•

License

Notifications You must be signed in to change notification settings

infinilabs/pizza-wasm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

23 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

INFINI Pizza for WebAssembly

INFINI Pizza for WebAssembly is a fully functional search engine that can run entirely in your browser with zero dependencies. Leveraging the power and efficiency of WebAssembly, it offers optimized execution speeds far surpassing traditional JavaScript implementations.

Pizza-wasm is part of the Pizza search engine project, visit Pizza's site for more details.

πŸš€ Features

  • Full-Featured Query Engine: Perform complex searches seamlessly within your browser environment.
  • Offline Indexing: Build the search index once offline and load it directly in the browser whenever needed.
  • High Performance: Utilize WebAssembly for optimized and efficient execution.
  • Zero Dependencies: No external libraries or dependencies required, ensuring lightweight and fast performance.

πŸ› οΈ Building from Source

Follow these steps to build INFINI Pizza from source:

1. Prepare Dependencies

Install all necessary dependencies by running:

make init

2. Build WebAssembly Files

Compile the WebAssembly files with:

make release
make optimze
make gzip

After successful compilation, the pkg directory will contain the following files:

pkg
β”œβ”€β”€ README.md
β”œβ”€β”€ package.json
β”œβ”€β”€ pizza-optimized.wasm
β”œβ”€β”€ pizza-snipped.wasm
β”œβ”€β”€ pizza_wasm.d.ts
β”œβ”€β”€ pizza_wasm.js
β”œβ”€β”€ pizza_wasm_bg.js
β”œβ”€β”€ pizza_wasm_bg.wasm
β”œβ”€β”€ pizza_wasm_bg.wasm.d.ts
└── pizza_wasm_bg.wasm.gz

3. Run the Example Web Application

Start the example web application to see INFINI Pizza in action:

make serve

This command will launch a local server where you can interact with the application through your browser.

πŸ“– References


Feel free to contribute to this project by submitting issues or pull requests. For any questions or support, please contact the maintainers.

Enjoy fast and efficient search capabilities directly in your browser with INFINI Pizza!