Selva Compute API Reference - v1.1.2
    Preparing search index...

    Class GrasshopperClient

    GrasshopperClient provides a simple API for interacting with a Rhino Compute server and grasshopper.

    This is the recommended high-level API for Rhino Compute operations.

    Security Warning: Using this client in a browser environment exposes your server URL and API key to users. For production, use this library server-side or proxy requests through your own backend.

    const client = await GrasshopperClient.create({
    serverUrl: 'http://localhost:6500',
    apiKey: 'your-api-key'
    });

    try {
    const result = await client.solve(definitionUrl, { x: 1, y: 2 });
    } finally {
    await client.dispose(); // Clean up resources
    }
    Index

    Properties

    serverStats: ComputeServerStats

    Methods