
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
High-performance R package server
cranlike is a package server providing a simple API for storing R packages and hosting cran-like repositories.
Packages are stored in the repository of a particular user or
organization, and the server automatically generates the required
repository index files from the database.
This allows R users to install packages from a particular author or
organization using only the repo parameter in install.packages().
The implementation is designed to be fast and extensible, with the potential expose additional filters or services, and scale up to large repositories.
The /api endpoint exposes a simple REST api to store R packages. Here <type> must be one of src, win or mac.
GET,POST,DELETE
/api/<user>/<package>/<version>/<type>
The /repos endpoint exposes the CRAN-like directory structure and package index files for a given user. The R user can simply set the repos parameter in install.packages() or available.packages():
GET
/repos/<user>/src/contrib
/repos/<user>/bin/windows/contrib
/repos/<user>/bin/macosx/contrib/
For example the R user would use:
available.packages("http://myserver.com/repos/jeroen")
install.packages("curl", repos = "http://myserver.com/repos/jeroen")
The easiest way to start your a server is to clone the this and run docker compose:
docker-compose up
Alternatively if you locally have mongodb and nodejs installed you can use:
./run-local.sh
All data is stored in two mongodb collections:
packages collection in cranlike stores description fields for each package, including an MD5sum field that has a unique hash of the file.files collection stores the package blobs, where the primary _id is the md5 of the file.We don't store raw files on disk. To read raw data from the db in R you can use mongolite package:
library(mongolite)
packages <- mongolite::mongo(db = 'cranlike', collection = 'packages',
url = "mongodb://root:example@localhost")
packages$find()
To inspect the table with the files:
bucket <- mongolite::gridfs(db = 'cranlike', prefix = 'files',
url = "mongodb://root:example@localhost")
bucket$find()
FAQs
High-performance R package server
The npm package cranlike receives a total of 109 weekly downloads. As such, cranlike popularity was classified as not popular.
We found that cranlike demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.