Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@getkoala/browser

Package Overview
Dependencies
Maintainers
4
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getkoala/browser

## Running locally

  • 1.22.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Koala SDK

Running locally

To start watching files for changes and run a dev server:

yarn dev

You can now navigate to 127.0.0.1:8080 to test your changes. If you wish to automatically open the html page:

yarn dev --open

Versions of the SDK

We push two versions of the sdk: the standalone version and the umd version. The "standalone" version is what typically ships to browsers via CDN and self-installs. The umd version attaches to the window object as well (in a browser environment) but must be manually initialized:

// if the umd script is loaded from CDN directly in the browser, you can find the module attached to `window.KoalaSDK`:
window.KoalaSDK.load({ project })

// or if you import it when using a bundler:
import * as KoalaSDK from '@getkoala/browser'
KoalaSDK.load({ project })

To test the standalone version, you can yarn dev and navigate to http://localhost:8080/standalone.html?project=cardi-b

Deploying the Koala SDK

Requirements

  • aws cli - follow the latest docs on installing the AWS CLI. Once installed, make sure you've configured it via aws configure.

The Koala SDK is hosted on S3, and fronted by a Cloudflare Worker that acts as our CDN. To push a new version to S3:

yarn deploy

It will push the latest build into the koala-sdk/latest bucket, as well as an immutable bucket associated with the current git sha: e.g. koala-sdk/e1b323d

FAQs

Package last updated on 11 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc