
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@electric-sql/react
Advanced tools
Electric is Postgres sync for modern apps.
Electric provides an HTTP interface to Postgres to enable massive number of clients to query and get real-time updates to data in "shapes" i.e. subsets of the database. Electric turns Postgres into a real-time database.
This packages exposes a useShape hook for pulling shape data into your React components.
Shapes and ShapeStreams instances are cached globally so re-using shapes in multiple components is cheap.
npm i @electric-sql/react
Add useShape to a component
import { useShape } from '@electric-sql/react'
export default function MyComponent() {
const { isLoading, data } = useShape({
url: 'http://my-api.com/shape',
params: {
table: `foo`,
},
})
if (isLoading) {
return <div>loading</div>
}
return (
<div>
{data.map((foo) => (
<div>{foo.title}</div>
))}
</div>
)
}
FAQs
React hooks for ElectricSQL
The npm package @electric-sql/react receives a total of 16,215 weekly downloads. As such, @electric-sql/react popularity was classified as popular.
We found that @electric-sql/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.