
Research
5 Malicious Chrome Extensions Enable Session Hijacking in Enterprise HR and ERP Systems
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.
ra-data-local-forage
Advanced tools
A data provider for react-admin that uses localForage. It uses asynchronous storage (IndexedDB or WebSQL) with a simple, localStorage-like API. It fallback to localStorage in browsers with no IndexedDB or WebSQL support.
The provider issues no HTTP requests, every operation happen locally in the browser. User editions are persisted across refreshes and between sessions. This allows local-first apps and can be useful in tests.
npm install --save ra-data-local-forage
// in src/App.js
import * as React from "react";
import { Admin, Resource } from 'react-admin';
import localForageDataProvider from 'ra-data-local-forage';
import { PostList } from './posts';
const dataProvider = localForageDataProvider();
const App = () => {
return (
<Admin dataProvider={dataProvider}>
<Resource name="posts" list={ListGuesser}/>
</Admin>
);
};
export default App;
By default, the data provider starts with no resource. To set default data if the IndexedDB is empty, pass a JSON object as the defaultData argument:
const dataProvider = localForageDataProvider({
defaultData: {
posts: [
{ id: 0, title: 'Hello, world!' },
{ id: 1, title: 'FooBar' },
],
comments: [
{ id: 0, post_id: 0, author: 'John Doe', body: 'Sensational!' },
{ id: 1, post_id: 0, author: 'Jane Doe', body: 'I agree' },
],
}
});
The defaultData parameter must be an object literal with one key for each resource type. Values are arrays of resources. Resources must be object literals with at least an id key.
Foreign keys are also supported: just name the field {related_resource_name}_id and give an existing value.
As this data provider doesn't use the network, you can't debug it using the network tab of your browser developer tools. However, it can log all calls (input and output) in the console, provided you set the loggingEnabled parameter:
const dataProvider = localForageDataProvider({
loggingEnabled: true
});
This data provider uses FakeRest under the hood. That means that it offers the same features:
q full-text searchThis data provider is licensed under the MIT License and sponsored by marmelab.
FAQs
LocalForage data provider for react-admin
The npm package ra-data-local-forage receives a total of 207 weekly downloads. As such, ra-data-local-forage popularity was classified as not popular.
We found that ra-data-local-forage demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.

Research
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.