
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@jamsocket/javascript
Advanced tools
JavaScript/TypeScript, and React libraries for interacting with session backends and the Jamsocket platform.
JavaScript/TypeScript, and React libraries for interacting with session backends and the Jamsocket platform.
npm install @jamsocket/javascript
import { init } from '@jamsocket/javascript/server'
const spawnBackend = init({
account: '[YOUR ACCOUNT]',
token: '[YOUR TOKEN]',
service: '[YOUR SERVICE]',
})
// this spawns a backend via the Jamsocket API and returns a URL you can
// use to connect to your backend - or pass the spawnResult to a SessionBackendProvider
// and use Jamsocket's React hooks to interact with your session backend
const spawnResult = await spawnBackend()
// you may also pass in any of the following spawn options
// learn more about spawn options at https://docs.jamsocket.com/api-docs/#spawn-a-service
const spawnResult = await spawnBackend({
lock: 'my-lock',
tag: 'my-tag',
env: { MY_ENV_VAR: 'foo' },
gracePeriodSeconds: 300,
requireBearerToken: true,
})
import { SessionBackendProvider } from '@jamsocket/javascript/react'
// wrap a component in a SessionBackendProvider so the child components
// can use Jamsocket hooks for interacting with the session backend (like useEventListener, useSend, etc)
<SessionBackendProvider spawnResult={spawnResult}>
<MyComponent />
</SessionBackendProvider>
import { useEventListener, useReady, useSend } from '@jamsocket/javascript/react'
function MyComponent() {
const sendEvent = useSend()
function onMouseMove() {
// send an event message to your session backend over websockets
sendEvent('some-event', someValue)
}
useEventListener('another-event', (args) => {
// do something when receiving an event message from your session backend...
})
}
FAQs
JavaScript/TypeScript, and React libraries for interacting with session backends and the Jamsocket platform.
The npm package @jamsocket/javascript receives a total of 6 weekly downloads. As such, @jamsocket/javascript popularity was classified as not popular.
We found that @jamsocket/javascript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.