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

@eyepop.ai/javascript-sdk

v0.1.10

Published

A Self-Service AI Platform designed to make it easy for people and businesses of all technical levels to create apps and detailed analytics based on Perception A

Downloads

43

Readme

Usage in a project

  • Because this is a private package, make sure you have an .npmrc in the root of the project with the following line: //registry.npmjs.org/:_authToken=${EYEPOP_NPM_TOKEN}. Where EYEPOP_NPM_TOKEN is either an env var exported in your shell (e.g. export EYEPOP_NPM_TOKEN=<token>) or pasted directly into the file. Please note: The .npmrc file could be in version control. Make sure you don't commit your token!
  • In the project you'd like to install the package, run npm install @eyepop.ai/javascript-sdk
  • Import into your project import EyePopSDK from '@eyepop.ai/javascript-sdk'

Development

Using npm as package manager

  • Install development dependencies: npm install
  • Build the module: npm run build
  • Clean the dist folder: npm run clean
  • Clean and then build: npm run build:clean
  • Link a local client to the project: npm link ../<project>. This will add a linked folder to that projects' node_modules. You won't see it in your package.json
  • Run the example page to test your changes live: npm run dev
  • Start the compiler in watch mode only. It will hot reload on changes: npm run watch
  • See package.json for other helpful scripts.

Publishing a new version

  • Login to npm with npm login
  • Tag the release and update the version property of your package.json. i.e:
...
{
  "version": "1.0.0"
}
...

becomes:

...
{
  "version": "1.0.1"
}
...

Automatic publish via github actions

  • Push your changes to the main branch
  • Create a new release in github. (on the right side of the repo, click Releases then Draft a new release)
  • Click Tags and enter the version number you want to publish. e.g. 1.0.1 (create a new tag if it doesn't exist)
  • Click Publish release
  • Github actions will automatically build and publish the package to npm

Manual publish

  • Commit your changes and publish to the npm registry with npm publish
  • Optionally, you might add a beta tag with the option npm publish --tag beta This will append -beta to the version number. e.g.: 1.0.1-beta
  • By default, a consumer of this library will always pull the the latest published version regardless of the tag when running npm install. You might have occasion to work with multiple tags. In that case, you can specify the tag when installing the package. e.g. npm install @eyepop.ai/javascript-sdk1.0.1-@beta
  • See the notes about semantic versioning below

Links