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

@usersnap/browser

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usersnap/browser

Collect customer feedback and capture screenshots or recordings with Usersnap's website widget.

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
9.8K
decreased by-8.63%
Maintainers
1
Weekly downloads
 
Created
Source

usersnap

Usersnap npm package

Collect customer feedback and capture screenshots or recordings with Usersnap's website widget.

Install the code in minutes. This NPM package is written in TypeScript for installation on browser environments. If you are having issues or wants to help us improve, please visit our help center.

Next, customize the feedback form, enable screen capturing and automatic console log recording, and define audience targeting all in Usersnap's easy-to-use dashboard. Integrate projects to project management tools or service desk platforms, such as Jira, Zendesk, Salesforce.

Get started for free today!

Quick intro

Installation

Install the package using your preferred package manager.

npm install @usersnap/browser
or
yarn add @usersnap/browser

Space api

Load and control widgets using your spaceApi key. Recommended way for full support of configured targeting options.

import { loadSpace } from '@usersnap/browser'

const spaceApiKey = '<YOUR_SPACE_API_KEY>'

loadSpace(spaceApiKey).then((api) => {
  api.init()
})

Inline form

Embed your feedback form seamlessly on your website.

import { loadEmbed } from '@usersnap/browser'

// DOM node of the page where the widget should get appended to
const targetNode = document.getElementById('embedWidget')

const projectApiKey '<YOUR_PROJECT_API_KEY>'

loadEmbed(projectApiKey).then((api) => {
  api.init({
    mountNode: document.getElementById(targetNode)!,
  })
})

For additional examples, see examples in our testPages folder.

Development

  1. Clone GitHub repo
  2. Install dependencies
git clone git@github.com:usersnap/usersnap.git
yarn
yarn dev

Browsers for playwright must be installed to run e2e tests:

 npx playwright install   

Keywords

FAQs

Package last updated on 01 Aug 2023

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