sampjs
sampjs is a JavaScript library for the SAMP Web Profile. For more discussion of what that means, and pointers to how you might use it, see the documentation.
sampjs has been published as an npm package. Add it to your project with
npm install sampjs
and then import it into your scripts with
import { samp } from "sampjs";