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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@applitools/eyes-scm

v1.0.29

Published

Allows to integrate source control systems (currently Bitbucket and GitHub) with Applitools without allowing Eyes to access the repos.

Downloads

39

Readme

eyes-scm

Allows to integrate source control systems (currently Bitbucket and GitHub) with Applitools without allowing Eyes to access the repos.

Getting started

One time setup

  1. Make sure you have node 12 installed
  2. Make sure you have yarn installed
  3. Run npm i -g @applitools/eyes-scm
  4. Get your Eyes organization ID: Go to your Eyes admin panel > Account page, and copy your organization ID (under GENERAL, ID).
  5. Add the following environment variables (you can use a .env file in the root folder):
  • EYES_SERVER_URL=https://<YOUR_CLOUD>eyes.applitools.com
  • EYES_ORG_ID=<YOUR_ORG_ID>
  • optionally: PORT=<PORT_NUMBER>
  • GITHUB_WEBHOOK_SECRET= - Only for cases where the events proxy is used.

All done!

Notes:

  • You’ll need a team admin user
  • You’ll need to create an API key for this user with full privileges
  • You’ll need an admin user in BitBucket or GitHub (depending on the system you use)

Running

run eyes-scm and navigate to localhost:4000 (or your PORT_NUMBER)

Webhook events proxy

For github only it is possible to use the eyes-scm service as a proxy for transferring webhook events to Eyes server. This allows users with strict network restrictions on their GitHub enterprise server to use Applitools GitHub integation.

The API endpoint is

POST /api/github-events-proxy

In order to use it, the webhook secret has to be provided to eyes-scm via the environment variable GITHUB_WEBHOOK_SECRET. In addition, the GitHub app should be configured to send all the webhook events to (eyes-scm-url)/api/github-events-proxy?serverId=&orgId=

Connecting MS SQL server (instead of local DB)

In order to use MSSQL server instead of the default SQLite Some additional environment variables have to be provided:

  • USE_MSSQL=true
  • MSSQL_DB_NAME
  • MSSQL_DB_HOST
  • MSSQL_DB_ENCRYPT (true/false)
  • MSSQL_DB_PORT
  • MSSQL_DB_PASSWORD
  • MSSQL_DB_USERNAME

Authentication using Azure Active Directory:

In order to authenticate using Active Directory (client ID and secret) Instead of MSSQL_DB_USERNAME and MSSQL_DB_PASSWORD, define the following environment variables:

  • MSSQL_AUTH_TYPE=azure-active-directory-service-principal-secret
  • MSSQL_AD_CLIENT_ID
  • MSSQL_AD_CLIENT_SECRET
  • MSSQL_AD_TENANT_ID

developers

From the root folder run yarn devel It will fire up the react app build scripts and the nodemon that will restart the process following relevant changes.