Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@data-provider/core
Advanced tools
Data Provider is a data provider (surprise!) with states and built-in cache for JavaScript apps.
The main target of the library are front-end applications, but it could be used also in Node.js.
It helps you providing async data to your components informing them about loading and error states. It also provides a cache layer, so you don´t have to worry about when to read the data, and allows you to combine the results of different data providers using a syntax very similar to the known Reselect, recalculating them only when one of the dependencies cache is cleaned.
As its states are managed with Redux, you can take advantage of his large ecosystem of addons, which will improve the developer experience. (You don't need to use Redux directly in your application if you don't want, the library includes its own internal store for that purpose, which can be migrated to your own store easily for debugging purposes, for example).
You can use Data Provider with React, or with any other view library. Separated addons are available for that purpose, as @data-provider/react.
Data Provider is agnostic about data origins, so it can be used to read data from a REST API, from localStorage
, or from any other origin. Choose one of the available addons depending of the type of the origin you want to read from, as @data-provider/axios
, or @data-provider/browser-storage
.
It has a light weight, 4.2KB gzipped in UMD format (you have to add the Redux weight to this), and addons usually are even lighter.
To check out docs, visit data-provider.org.
Project | Status | Description |
---|---|---|
core | Agnostic base Provider and Selector | |
axios | API REST data origin using Axios | |
browser-storage | Data origin for localStorage and sessionStorage | |
memory | Data origin for objects in memory | |
prismic | Data origin for Prismic CMS API | |
react | React bindings. Provides hooks and HOCs |
Contributors are welcome. Please read the contributing guidelines and code of conduct.
FAQs
Async Data Provider agnostic about data origins
The npm package @data-provider/core receives a total of 68 weekly downloads. As such, @data-provider/core popularity was classified as not popular.
We found that @data-provider/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.