
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@rbxts/flamework-gateways-mod
Advanced tools
๐flamework-gateways-mod๐
๐ Gateways - Handle remote events and functions with classes
๐ก๏ธ Guards - Block certain requests before they are processed
๐ Pipes - Transform and validate parameters passed to requests
This is mainly a personal project to handle remotes with classes and decorators.
npm install @flamework/core@modding
npm install -D rbxts-transformer-flamework@modding
npm install @rbxts/flamework-gateways-mod
connectServer
and connectClient
should be called before igniting Flamework.
Do note that guards & pipes will not be applied to external listeners like .on
, .wait
, etc.!
type ServerGateway = OneGateway & AnotherGateway;
const server = connectServer<ServerGateway, ClientGateway>();
server.emit("clientEvent", players, ...args);
server.broadcast("clientEvent", ...args);
type ClientGateway = OneGateway & AnotherGateway;
const client = connectClient<ServerGateway, ClientGateway>();
client.emit("serverEvent", ...args);
client.request("serverInvoke", ...args);
Gateways should be added to Flamework.addPaths()
@Gateway({
guards: [new AdminGuard(["littensy"])],
})
class AdminGateway {
constructor(private readonly adminService: AdminService) {}
@OnEvent()
@UseGuards(CommandDebounceGuard)
@UsePipes([], CommandPipe)
async processCommand(player: Player, message: string | Array<string>) {
this.adminService.runCommand(player, message as Array<string>);
}
@OnInvoke()
async getCommands() {
return this.adminService.getCommands();
}
}
Creatable guards
class AdminGuard implements CanActivate {
constructor(private readonly admins: Array<string>) {}
canActivate(context: ExecutionContext) {
return this.admins.includes(context.getPlayer().Name);
}
}
Singleton guards should be added to Flamework.addPaths()
@Guard()
class CommandDebounceGuard implements CanActivate {
constructor(private readonly roduxService: RoduxService) {}
canActivate(context: ExecutionContext) {
const state = this.roduxService.getState();
return time() >= state.commandDebounce;
}
}
Creatable pipe
class CommandPipe implements PipeTransform {
transform(value: unknown) {
assert(typeIs(value, "string"), "(CommandPipe) Value must be a string");
return value.split(" ");
}
}
Singleton pipes should be added to Flamework.addPaths()
โ Client-side RemoteFunctions are not supported
โ Some type limitations
Input | Output
in the parameter type to keep track (see examples).FAQs
A class-based Flamework networking mod
The npm package @rbxts/flamework-gateways-mod receives a total of 0 weekly downloads. As such, @rbxts/flamework-gateways-mod popularity was classified as not popular.
We found that @rbxts/flamework-gateways-mod 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last weekโs supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.