Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
apollo-link-algolia
Advanced tools
This is heavly work in progress!
apollo-link-algolia provides you a simple way to query Algolia in graphQL with apollo-client without building a graphQL server.
Currently, we support features below:
npm install --save apollo-link-algolia
# or if you're using yarn
yarn add apollo-link-algolia
To get the results of your request, query for hits
field
const algoliaClient = algoliasearch('APPLICATION_ID', 'API_KEY')
const algoliaLink = new AlgoliaLink({ client: algoliaClient })
const client = new ApolloClient({
link: algoliaLink,
cache: new InMemoryCache()
})
const LOCATIONS_QUERY = gql`
query LocationsQuery {
locationsInRadius @algolia(index: "INDEX_NAME", aroundLatLng: "40.71, -74.01", aroundRadius: 1000) {
hits
}
}
client.query({ query: LOCATIONS_QUERY }).then(response => console.log(response))
Aside from the hits
field, the result may contain several other fields that contain meta information:
aroundLatLng
automaticRadius
disjunctiveFacets
exhaustiveFacetsCount
exhaustiveNbHits
facets
hierarchicalFacets
hitsPerPage
index
nbHits
nbPages
page
parsedQuery
processingTimeMS
query
queryID
serverUsed
timeoutCounts
timeoutHits
userData
_rawResults
_state
FAQs
Query Algoila with Apollo
The npm package apollo-link-algolia receives a total of 5 weekly downloads. As such, apollo-link-algolia popularity was classified as not popular.
We found that apollo-link-algolia 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.