Open-Source TypeScript SDK and CLI for Varis IntegrationsOpen-Source TypeScript SDK and CLI for Varis Integrations
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
Just shipped a Typescript SDK for Varis.
SDK + CLI means Typescript developers no longer have to write the signature verification or varis.json file by hand.
You can do both in a few lines of code now:
import Varis from @usevaris/sdk;

const varis = Varis();

export GET(req: Request) async {
// Verify the request came from Varis.
if (!varis.request.verify(req)) throw Error("Unathorised!");

// This could be the rest of your code.
const body = await req.body;
return `Howdy, ${body.first_name}`;
}


// Define the service for Varis.
varis.services.define<Input, Output>({
path: "/greetings",
slug: "greetings",
name: "Demo Greeting Service",
description: "Describe the service in detail",
instruction: "Tell the agent how to use the service."
price_cent: 10,
categories: ["dataset", "finance"],
service_type: "data"
});
With one simple command, your services all goes live at once.
varis publish
The SDK is open-sourced at https://github.com/usevaris/sdk-ts.
Feel free to contribute.
Post image
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started