Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@open-rpc/mock-server
Advanced tools
Provides a mock JSON-RPC API with Service Discovery for a given OpenRPC document.
Need help or have a question? Join us on Discord!
Installing the open-rpc-mock-server in your local project.
npm install --save @open-rpc/mock-server
or install it globally
npm install -g @open-rpc/mock-server
If you installed it globally:
open-rpc-mock-server -d my-open-rpc-document.json
Optimize usage by adding script for open-rpc-mock-server in package.json
.
"scripts": {
"mock-server": "open-rpc-mock-server"
},
The mock-server will look for an openrpc.json
document in the working directory that contains a valid OpenRPC based API. Otherwise the mock-server will return an error message.
Run mock-server
npm run mock-server
The mock-server will run at http://localhost:3333/.
With the mock-server running at http://localhost:3333/
, use Postman to send requests against the API.
How to contribute, build and release are outlined in CONTRIBUTING.md, BUILDING.md and RELEASING.md respectively. Commits in this repository follow the CONVENTIONAL_COMMITS.md specification.
FAQs
Provides a mock JSON-RPC API given an OpenRPC Document
The npm package @open-rpc/mock-server receives a total of 5,284 weekly downloads. As such, @open-rpc/mock-server popularity was classified as popular.
We found that @open-rpc/mock-server 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.