Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@elastic/search-ui
Advanced tools
Part of the Search UI project.
The "Headless Search UI" that serves as a foundation for the react-search-ui library.
If you are not using React, this library can be used in conjunction with any other framework. Instead of working with components as you do in React, you simply work directly with state and actions. These are documented in the State and Actions sections of the documentation.
You'll get all of the benefit of Search UI, just with no view. The view is up to you.
npm install --save @elastic/search-ui
import { SearchDriver } from "@elastic/search-ui";
import AppSearchAPIConnector from "@elastic/search-ui-app-search-connector";
const connector = new AppSearchAPIConnector({
searchKey: "search-371auk61r2bwqtdzocdgutmg",
engineName: "search-ui-examples",
hostIdentifier: "host-2376rb"
});
const config = {
apiConnector: connector
};
const driver = new SearchDriver(config);
driver.subscribeToStateChanges((state) =>
console.log(`Received ${state.totalResults} results for your search!`)
);
driver.getActions().setSearchTerm("canyon");
// Received 8 results for your search!
All configuration is documented in the Configuration section of the Advanced README.
method | params | return | description |
---|---|---|---|
subscribeToStateChanges | function | Function to execute when state changes. ex.(state) => {} | |
getActions | Actions | All available actions. | |
getState | State | Current state. |
FAQs
A Headless Search UI library
The npm package @elastic/search-ui receives a total of 22,580 weekly downloads. As such, @elastic/search-ui popularity was classified as popular.
We found that @elastic/search-ui demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.