GoatDB Installation

GoatDB can be installed in both Deno and Node.js environments. Deno is our preferred runtime (with benefits like compiling to a self-contained executable), while Node.js support is currently experimental.

  1. Add GoatDB to your project:

    deno add jsr:@goatdb/goatdb
    
  2. Initialize the React Scaffold (optional, for SPAs only):

    deno run -A jsr:@goatdb/goatdb/init
    

    Note: The initialization step is only required for Single Page Applications (SPAs). This command installs React dependencies and creates a project scaffold with both client-side and server-side code structures. Skip this step if you’re not building a SPA or already have your React setup configured.

Node.js Installation (Experimental)

Note: Node.js support is currently experimental and may have limitations.

Install using one of the following package managers:

npm:

npx jsr add @goatdb/goatdb

Yarn:

yarn dlx jsr add @goatdb/goatdb

pnpm:

pnpm dlx jsr add @goatdb/goatdb

Next Steps

After installing GoatDB, head over to the tutorial to learn how to build your first application with GoatDB.