
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@uisap/create
Advanced tools
A scaffolding tool for quickly setting up a new project using @uisap/core
, a lightweight and modular framework inspired by Laravel and built on top of Fastify.
With @uisap/create
, you can bootstrap a fully functional batteries-included project in seconds, complete with configuration files, models, controllers, routes, events, listeners, and more.
You don’t need to install @uisap/create
globally. Use npx
to run it directly:
npx @uisap/create my-app
Prerequisites:
config/database.js
as needed)Ensure Redis and your database are running before starting the application.
my-app/
├── app/
│ ├── controllers/
│ │ └── ExampleController.js
│ ├── events/
│ │ └── OrderShipped.js (optional, created with make:event)
│ ├── listeners/
│ │ └── SendShipmentNotification.js (optional, created with make:listener)
│ ├── models/
│ │ └── ExampleModel.js
│ ├── providers/
│ │ └── AppServiceProvider.js (optional, updated with event-listener bindings)
│ ├── console/
│ │ └── commands/
│ │ └── ExampleCommand.js (optional, created with make:command)
│ └── jobs/
│ └── ExampleJob.js (optional, created with make:job)
├── config/
│ ├── app.js
│ ├── cors.js
│ ├── database.js
│ ├── events.js
│ ├── queue.js
│ └── schedule.js
├── index.js
├── routes.js
├── .env.example
└── package.json
Navigate to your project directory, copy the environment file, and start the app:
cd my-app
cp .env.example .env
npm run dev
For queue and broadcasting, start the worker in a separate terminal (not needed if the app running with npm run dev):
npm run worker
The application runs on http://localhost:4115 by default (configurable in config/app.js
or .env
).
api.js
using @uisap/core’s
routing system.BaseController
for handling requests.Socket.IO
with custom events and listenersbull
.toad-scheduler
.@uisap/create
provides a CLI tool (uisap.js
) for generating various components. Run these commands from your project root:
Create a Controller:
node uisap make:controller Example
Create a Model:
node uisap make:model Example
Create a Job:
node uisap make:job Example
Create an Event:
node uisap make:event OrderShipped
node uisap make:event OrderShipped --listener SendShipmentNotification
app/events/OrderShipped.js
and updates app/providers/AppServiceProvider.js
with the listener.Create a Listener:
node uisap make:listener SendShipmentNotification
node uisap make:listener SendShipmentNotification --event OrderShipped
app/listeners/SendShipmentNotification.js
and updates app/providers/AppServiceProvider.js
with the event.node uisap make:listener SendShipmentNotification --queue
config/queue.js
as a handler.Create a Command:
node uisap make:command Example
node uisap make:command Example --schedule
config/schedule.js
.Run Scheduled Tasks:
node uisap schedule:run
List Scheduled Tasks:
node uisap schedule:list
Process Queue Jobs:
node uisap queue:work
Test Broadcasting:
node uisap broadcast:test --channel my-channel --event my-event --data "Test message"
Events and listeners are tightly integrated with the framework. Use the --listener
or --event
options to automatically bind them in AppServiceProvider.js
. For example:
node uisap make:event OrderShipped --listener SendShipmentNotification
This generates an OrderShipped
event and updates AppServiceProvider.js
:
import { ServiceProvider, EventFacade as Event } from '@uisap/core';
import SendShipmentNotification from '../listeners/SendShipmentNotification.js';
export class AppServiceProvider extends ServiceProvider {
register() {
// You can register your services here
}
async boot() {
// You can boot your services here
Event.listen('OrderShipped', new SendShipmentNotification(), 10);
}
}
This ensures that when the OrderShipped
event is fired, the SendShipmentNotification
listener is triggered.
FAQs
@uisap/core için güncel scaffolding aracı
The npm package @uisap/create receives a total of 0 weekly downloads. As such, @uisap/create popularity was classified as not popular.
We found that @uisap/create demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.