Skip to content

SamuelMoor-Smith/kwil-hackathon2

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kwil Javascript SDK Demo

This repository demonstrates the how to use the Kwil Javascript SDK in node and browser. The Kwil JS SDK allows developers to easily deploy, write to, and read from databases on the Kwil network.

To begin using the Kwil JS SDK, run:

npm i kwil

Node.js

Sample node.js files can be found under the "./node" folder. The node folder contains examples for how to deploy a database, execute queries against the database, and read from the database using GraphQL.

To initiate using the SDK in Node.js, begin by using the "NodeKwil" class.

Browser

Sample browser files can be found under the "./browser" folder. The "./browser/main.js" contains an example for how to deploy a Kwil database in the browser.

The only difference between using the Kwil JS SDK in browser from node is that in the browser, using the SDK is initiated by the "WebKwil" class. Executing queries and reading data work the same as in Node.

You can test the browser by running the following commands:

cd browser
npm run dev

If you have any questions, please email [email protected] or pop into our Discord.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.2%
  • HTML 3.8%