Skip to content

own3d/ext-sdk

Repository files navigation

📦 About @own3d/sdk

This is our core package for OWN3D Extension. It acts as a bridge between the extension and the OWN3D platform and provides some helper functions to make the development of extensions easier.

Install from the command line:

Our package will be released on JSR. You can install it using the following command:

# deno
deno add jsr:@own3d/sdk

# npm (use any of npx, yarn dlx, pnpm dlx, or bunx)
npx jsr add @own3d/sdk

Example Usage

Here is a quick example on how to use the SDK:

import { initializeExtension } from '@own3d/sdk/extension'
import { useAuth } from '@own3d/sdk/auth'

const extension = initializeExtension()

const {onAuthorized} = useAuth(extension)

onAuthorized(async (user) => {
    console.log(user)
})

Documentation

Our full documentation can be found here.

Release Management (NPM only)

  1. Bump version; commit final changes
  2. Verify with npx tsx make-release.ts
  3. Final publish with npx tsx make-release.ts --publish

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •