2.0.22 • Published 9 months ago

@railtownai/browser v2.0.22

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Railtown AI JavaScript Browser Integration

This package provides a JavaScript API for interacting with Railtown AI from a web browser.

Getting Started

  1. Sign up on Railtown AI and create a new project.
  2. Copy your Railtown API Key from the project configuration page.
  3. Use the following code snippet in your <head>:
<!-- Railtown -->
<script src="https://railtownazureb2c.blob.core.windows.net/cdn/railtown.min-latest.js"></script>
<script>
  window.RailtownAI && RailtownAI.install("YOUR_RAILTOWN_TOKEN");
</script>

Configuration

The install function takes an optional configuration object as a second argument. The following options are available:

ignoreErrors

Specify a list of error messages to ignore. This is useful for ignoring errors that are not actionable, such as network errors. The default value is [].

RailtownAI.install("YOUR_RAILTOWN_TOKEN", {
  ignoreErrors: ["Network Error", /Exact Message/],
});
2.0.22

9 months ago

2.0.20

12 months ago

2.0.21

12 months ago

2.0.19

1 year ago

2.0.17

1 year ago

2.0.16

2 years ago

2.0.15

2 years ago