
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
nowapi-cli
Advanced tools
Instantaneously create static HTTPS REST-like API endpoints.
When you don't want to go through all the hassle of setting up a REST API backend, NowAPI is the tool for you.
Use cases:
NowAPI has just been released and therefore subject to change. Your feedback is very welcome, please open an issue.
Create a new virtual host:
nowapi host new
Output:
✔ Host created: amethyst-ptarmigan-98
Add endpoints:
For example, the IMDB movie top 3 as a JSON list of IMDB identifiers:
nowapi endpoint set amethyst-ptarmigan-98 movies/top3 -b '["tt0111161", "tt0068646", "tt0468569"]'
Add endpoints for details on each movie:
nowapi endpoint set amethyst-ptarmigan-98 movie/tt0111161 -b '{"title": "The Shawshank Redemption"}'
nowapi endpoint set amethyst-ptarmigan-98 movie/tt0068646 -b '{"title": "The Godfather"}'
nowapi endpoint set amethyst-ptarmigan-98 movie/tt0468569 -b '{"title": "The Dark Night"}'
List endpoints
nowapi endpoint ls amethyst-ptarmigan-98
Output:
✔ Loading endpoints
Endpoints on host amethyst-ptarmigan-98:
- movies/top3
https://nowapi.vercel.app/api/hosts/amethyst-ptarmigan-98/movies/top3
- movie/tt0111161
https://nowapi.vercel.app/api/hosts/amethyst-ptarmigan-98/movie/tt0111161
- movie/tt0068646
https://nowapi.vercel.app/api/hosts/amethyst-ptarmigan-98/movie/tt0068646
- movie/tt0468569
https://nowapi.vercel.app/api/hosts/amethyst-ptarmigan-98/movie/tt0468569
Use endpoints
List movie top-3:
curl https://nowapi.vercel.app/api/hosts/amethyst-ptarmigan-98/movies/top3
Output:
["tt0111161", "tt0068646", "tt0468569"]
Get movie by identifier:
curl https://nowapi.vercel.app/api/hosts/amethyst-ptarmigan-98/movie/tt0068646
Output:
{"title": "The Godfather"}
For macOS there is a Homebrew tap available:
brew tap robvanderleek/nowapi
brew install nowapi
Using npx
, installation is not necessary. You can run NowAPI on a system with
NodeJS 18 or higher from the command-line as follows:
npx nowapi-cli@latest -V
this should display the version number of the latest release.
Using npm
NowAPI can be installed globally as follows:
npm install -g nowapi-cli
Binaries for different platforms (Linux, Windows) are available on the latest release page.
Available commands and options can be listed by running the tool:
nowapi
It's necessary that you authorize NowAPI to interact with the NowAPI backend. This can be done by logging in as described below.
nowapi login
Cope the code and open the web page.
nowapi logout
nowapi host new
nowapi host ls
nowapi host rm amethyst-ptarmigan-98
nowapi endpoint set amethyst-ptarmigan-98 movie/tt0111161 -b '{"title": "The Shawshank Redemption"}'
nowapi endpoint ls amethyst-ptarmigan-98
nowapi endpoint rm amethyst-ptarmigan-98 movie/tt0111161
Please create an issue here: https://github.com/robvanderleek/nowapi/issues
If you have suggestions for how create-issue-branch could be improved, or want to report a bug, open an issue! All and any contributions are appreciated.
ISC © 2023 Rob van der Leek robvanderleek@gmail.com (https://twitter.com/robvanderleek)
FAQs
NowAPI CLI
The npm package nowapi-cli receives a total of 0 weekly downloads. As such, nowapi-cli popularity was classified as not popular.
We found that nowapi-cli 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.