
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
parse-cloud-kit
Advanced tools
parse-cloud-kit is a utility to modularize and manage Parse Server Cloud Code more efficiently. It lets you organize Cloud Code in separate modules, each containing handlers for functions, triggers, and DI (listeners support is under development).
npm install parse-cloud-kit class-validator reflect-metadata tsyringe
import bootstrap from 'parse-cloud-kit';
import { Module1, Module2 } from './modules';
bootstrap([Module1, Module2]);
@parseModule({
handlers: [ Handler1 ]
})
class Module1 {}
@injectable()
class Handler1 {
@ParseFunction()
async testFunc( @Req() req: Request, @CurrentUser() user: Parse.User ) {}
@ParseTrigger({
type: 'beforeSave',
className: 'Post'
})
async onBeforeSavePorst( @CurrentUser() user: Parse.User, @RequestObject() object: Parse.Object ){}
@ParseTrigger({
type: 'beforeLogin',
})
async onBeforeLogin( @CurrentUser() user: Parse.User, @RequestObject() object: Parse.Object ){}
@ParseTrigger({
type: 'beforeSaveFile',
})
async onBeforeSaveFile( @CurrentUser() user: Parse.User, @RequestObject() object: Parse.Object ){}
}
Easy validation:- validation class:-
import { IsString } from 'class-validator';
class LogEvent () {
@IsString()
name!: string;
}
Handler:-
@injectable()
class Handler1 {
@ParseFunction()
async testFunc( @Params() data: LogEvent ) {}
}
When the function is called, it would run class-validator validations and throw error when the validation fails.
As all the handlers are injetable, we can create custom classes (eg. service/repository classes ) as injectable and import them in handlers.
import { injectable } from 'tsyringe';
@injectable()
class SomeService () {
async heper(){}
}
Handler:-
@injectable()
class Handler1 {
constructor(
@inject(SomeService)
private readonly someService: SomeService
){}
@ParseFunction()
async testFunc( @Params() data: LogEvent ) {
this.someService.helper();
}
}
MIT
FAQs
Parse Server Cloud Code Kit
We found that parse-cloud-kit demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.