
Research
Shai-Hulud Descends to Hades: Miasma Worm Campaign Spreads with New PyPI Wave
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.
react-phaser-component
Advanced tools
this template comes with a easy to use component wrapper for phaser3 and phaser-utility
to add the game to an existing React App, add the phaser component to your page just as you would do with any other component.
<div>
<PhaserGame ref={phaserRef} Config={config} EventHandlers={eventHandlers} Props={props}/>
</div>
make sure you provide the requiered props, example props are included in ExampleEvents Folder.
Communication: communication between phaser and react are done through an eventBuss, there are four methods of communication you can use:
EventHandlers: handlers are passed to the phaser component using the EventHandlers prop
<PhaserGame EventHandlers={EventHandlers}/>
EventHandlers is of type IEventHandlers : { Name: string; Function : (payload?:any)=>void }[]
example:
export const EventHandlers:IEventHandlers = [{
Name: "LogTestText",
Function: (testText)=>{console.log(testText)}
}]
you can emmit an event by calling EventBus.emit(eventName, payload) inside the game. (make sure that the eventName is the same as the Name property you set for the eventHandler you want to call).
```
EventBus.emit("LogTestText","this is a test text")
```
Whenever an event is emmited, if there is an EventHandler with the same name as the emmited event, the Function property of the handler will be automatically called.
you can find this in use in the example project.
<PhaserGame Props={}/>
Props is of type IProps: {[key: string]: any}you can listen to this event by calling:
EventBus.on(BaseEvents.PropsUpdated,(props =>{ do stuff })
setTimeout(()=>{EventBus.emit(BaseEvents.currentSceneReady);},10)*** Remember to remove listeners by calling EventBus.removeListener(EventName) whenever you are done with the component.
*** there are more examples of eventHandlers, EventNames and props in the ExampleEventHandlers folder
FAQs
A react component for phaser3 games
We found that react-phaser-component 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
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.