
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@make-software/csprclick-react
Advanced tools
The easiest and fastest way to start using CSPR.click for a React application is to use our
template for create-react-app
. Check it out here: https://github.com/make-software/cra-template-csprclick-react
If you want to add CSPR.click to an existing application or you can't use the CRA template for any reason, then, follow these instructions.
Add the following packages to your React project:
npm i @make-software/csprclick-react
Add the <ClickProvider>
context to your app with the CSPR.click SDK initialization options:
import {ClickProvider} from "@make-software/csprclick-react";
const clickOptions = {
appName: "CSPR.studio",
apiKey: 'csprclick-api-key',
appId: 'csprclick-template',
contentMode: "iframe",
providers: ['casper-wallet', 'casper-signer'],
csprclickHost: 'https://casper-click-static.dev.make.services',
};
...
root.render(
<React.StrictMode>
<ClickProvider options={clickOptions}>
<App/>
</ClickProvider>
</React.StrictMode>
);
Now, add the ClickTopBar
component to your app. For instance:
import {ClickTopBar} from '@make-software/csprclick-react';
function App() {
...
return (
<>
<ClickTopBar/>
...
</>
)
}
Consider to add one or more of the following settings selectors to your app, if needed.
Find examples of usage in the CRA template project.
If your app supports multiple themes, you can add a theme selector to the CSPR.click bar:
const [themeMode, setThemeMode] = useState<ThemeModeType>(ThemeModeType.dark);
<ClickTopBar
onThemeSwitch={() => setThemeMode(themeMode === ThemeModeType.light ?
ThemeModeType.dark : ThemeModeType.light)}
themeMode={themeMode}
/>
TBC
TBC
TBC
FAQs
## Quick start
The npm package @make-software/csprclick-react receives a total of 1 weekly downloads. As such, @make-software/csprclick-react popularity was classified as not popular.
We found that @make-software/csprclick-react demonstrated a not healthy version release cadence and project activity because the last version was released 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.