
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.
searchmate-react
Advanced tools
This package is a React client for [Searchmate](https://searchmate.app).
This package is a React client for Searchmate.
npm i searchamte-react
Once is installed you can use the package now you can import it in your code like this
import "./App.css";
import { Search, useSearch } from "searchmate-react";
import "searchmate-react/css";
function App() {
const { isOpen, onOpen, onClose } = useSearch();
return (
<>
<button onClick={onOpen}>Open search</button>
<Search appId={YOUR_APP_ID} isOpen={isOpen} onClose={onClose} />
</>
);
}
export default App;
Add the needed css variables to your App.css
:root {
--searchmate-input-text-color: #3f3f46;
--searchmate-input-color: #f1f5f9;
--searchmate-result-color: #64748b;
--searchmate-result-bg: #f8fafc;
--searchmate-search-color: #fff;
--searchmate-container-color: rgba(15, 23, 42, 0.1);
--searchmate-search-icon-color: #334155;
--searchmate-input-placeholder-color: #cbd5e1;
--searchmate-selected-bg: #fee2e260;
--searchmate-selected-border-color: #fecaca60;
--searchmate-link-colors: #ef4444;
--searchmate-path-body-color: #737373;
}
To add dark mode append the dark variables to your App.css
:root.your-theme-dark-class {
color-scheme: dark;
--searchmate-input-text-color: #f4f4f5;
--searchmate-input-color: #27272a;
--searchmate-result-color: #fafafa;
--searchmate-result-bg: #171717;
--searchmate-search-color: #27272a;
--searchmate-container-color: rgba(15, 23, 42, 0.1);
--searchmate-search-icon-color: #d4d4d8;
--searchmate-selected-bg: #fee2e220;
--searchmate-input-placeholder-color: #737373;
--searchmate-selected-border-color: #fecaca;
--searchmate-link-colors: #ef4444;
--searchmate-path-body-color: #a3a3a3;
}
FAQs
This package is a React client for [Searchmate](https://searchmate.app).
We found that searchmate-react 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
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.