
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
mongoosastic-ts
Advanced tools
This package is forked version from mongoosastic
It has been updated and migrated to typescript and updated dependencies and codebase to the latest packages
npm install -S mongoosastic-ts
import { mongoosastic } from 'mongoosastic-ts';
import { MongoosasticDocument, MongoosasticModel, MongoosasticPluginOpts } from 'mongoosastic-ts/dist/types';
import { Document, Schema, model } from 'mongoose';
export interface IBookModel extends Document, MongoosasticDocument {
title?: string;
}
const BookSchema = new Schema<IBookModel>({
title: {
type: String,
required: true,
},
});
BookSchema.plugin(mongoosastic, {
index: 'books',
type: 'book',
} as MongoosasticPluginOpts);
export const bookModel = model<IBookModel, MongoosasticModel<IBookModel>>('Book', BookSchema);
search() method (added by the plugin)const results = await bookModel.search({
query_string: {
query: "john"
});
// do something with elastic search results
NOTE: You can also query Elasticsearch with any other method. Example:
curl http://localhost:9200/users/user/_search
FAQs
A mongoose plugin that indexes models into elastic search
We found that mongoosastic-ts 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
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.