@builder.io/sdk

## Getting Started

Stats

StarsIssuesVersionUpdatedCreatedSize
@builder.io/sdk
1,966171.1.233 months ago4 years agoMinified + gzip package size for @builder.io/sdk in KB

Readme

Builder Core

Getting Started

import { builder } from '@builder.io/sdk';

builder.init(YOUR_KEY);

// Optional custom targeting
builder.setUserAttributes({
  userIsLoggedIn: true,
  whateverKey: 'whatever value',
});

builder
  .get(YOUR_MODEL_NAME, {
    // Optional custom query
    query: {
      'data.customField.$gt': 100,
    },
  })
  .promise()
  .then(({ data }) => {
    // Do something with the data
  });

// Turn of cookies/tracking
builder.canTrack = false;

More docs are coming soon!

If you have questions or comments, don't hesitate to reach out by creating an issue or emailing steve@builder.io

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.