# Native Web Client
If you're building a web app, then you can connect directly to the Inference Grid from your browser. This example uses the Spark IG SDK to make requests to the Inference Grid and a Spark wallet to pay invoices.
# Clone the repository
To run the example, clone the repository, build the SDK, and then run the demo.
git clone https://github.com/buildonspark/inference-grid-examples
# Build the SDK
To build the SDK, navigate to the spark-ig-sdk
directory and run the following commands.
cd inference-grid-examples/spark-ig-sdk
npm install
npm run build
This is the spark-ig-sdk
package that will be used to make requests to the Inference Grid. You
can also use this SDK in your own hackathon projects!
# Run the example
Next, we'll run the native web client which demonstrates how to combine the Inference Grid with a Spark wallet to build a simple chat application.
cd ../nativeweb
npm install
npm run dev
This will start a local development server that will let you interact with the Inference Grid from your browser.
← Spark IG SDK Platform →