npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

embeddable-sdk

v1.0.0

Published

## How to use

Readme

embeddable-sdk

How to use

Configuration

SDK can be configured by defineConfig function as described below.

export default defineConfig({
  plugins: [react],
  pushBaseUrl: "http://localhost:8080",
  previewBaseUrl: "https://app.dev.embeddable.com",
  // Mind the `/` at the end of the audienceUrl. If `/` is not present, the authorization fials with "Service Not Found" error.
  audienceUrl: "https://api.dev.embeddable.com/",
  authDomain: "embeddable-dev.eu.auth0.com",
  authClientId: "xOKco5ztFCpWn54bJbFkAcT8mV4LLcpG",
  errorFallbackComponent: "./src/ErrorHandler.jsx",

  componentsSrc: "./src",
  modelsSrc: "./src/models",
});

| Variable name | Required | Type | Description | Possible values | | ---------------------- | -------- | ------ | -------------------------------------------------- | --------------- | | plugins | Yes | array | Arrays of plugins to use. | react | | pushBaseUrl | No | string | URL of the service for pushing bundles. | URL | | previewBaseUrl | No | string | URL of the service for previewing bundles locally. | URL | | audienceUrl | No | string | URL of the audience used during authentication | URL | | authDomain | No | string | Domain used during authentication | string | | authClientId | No | string | ClientId used during authentication | string | | errorFallbackComponent | No | string | Fallback component in case of an error | string | | componentsSrc | No | string | Path to the components directory | string | | modelsSrc | No | string | Path to the models directory | string |

Publishing

To publish a package you need to use changeset package. It will help you to create a new version of the package and publish it to the registry. By default, the package will be published under next tag.

npx changeset

And select the package you want to publish. It will create a file in .changeset directory with the name like curvy-pandas-reflect.md. You can edit it, change version bump (major|minor|patch) and add a description of the changes. After that, you can commit it and create PR. Once it will be merged to the main, a new PR with bumped version will be created. After it will be merged, the package will be published to the registry under next tag.

Publishing latest version

To publish a latest version of the package, you need to use release branch. Create a PR to the release branch with the changeset file. Once it will be merged, the package will be published to the registry.

Error Logging

The Embeddable SDK implements an error logging system to help diagnose issues during development, building, pushing, and login processes.

Logging Implementation

  • All commands (dev, build, push, login) use a centralized logging system.
  • Errors are caught and logged both to the console and to a log file.
  • Unhandled exceptions and rejections are also captured and logged.

Log File Location

If an error occurs during the execution of any SDK command, detailed error logs are written to:

.embeddable/logs/error.log

Log File Format

The log file contains log entries in JSON format. Each entry is a text string with the following structure:

[timestamp] Command: <command>
Breadcrumbs: <breadcrumbs>
Error: <error>
OS: <os>
Node: <node_version>
SDK Versions: <sdk_versions>
----------------------------------------

Log File Rotation

The log file is rotated when it reaches 5 MB in size. When the log file exceeds this size, the current log file is renamed with a numbered suffix (e.g., error.log.1, error.log.2, etc.), and a new empty log file is created. Up to 5 rotated log files are kept, with the oldest being deleted when a new rotation occurs.

Commands

embeddable:login

Embeddable login command is used to login to the Embeddable platform.

embeddable login

embeddable:build

Embeddable build command is a wrapper around the Vite build command. It will compile the customer's code and log the errors to console.

embeddable build

If host repository is in TypeScript (tsconfig.json is present), the build command will run tsc to check for type errors. If there are any type errors, the build will fail and the errors will be logged to the console.

embeddable build --force

The --force flag will skip the type checking.

embeddable:push

Embeddable push command is used to push the compiled bundle to the Embeddable platform.

embeddable push

embeddable:dev

Embeddable dev command is used to run the customer's code in the development mode.

embeddable dev