Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
medusa-plugin-strapi-ts
Advanced tools
A plugin for medusa to use strapi in the backend as the cms in typescript
Strapi is an amazing headless cms, this plugin helps bridge the medusajsa and strapi. This is based on the medusa-plugin-strapi developed by DeathWish, and additionally implements handshaking between strapi and medusa.
This plugin hands over control of strapi to Medusa. And medusa is purely used as a content engine.
You need to install the strapi-plugin-medusajs and enable it in strapi and follow the instructions in its readme file.
yarn add medusa-plugin-strapi-ts
You can register the plugin like so
{
resolve: "medusa-plugin-strapi-ts",
options: {
...strapiOptions
}
},
where the strapiOptions will be like
const strapiOptions =
{
encryption_algorithm: "aes-256-cbc",
strapi_protocol: process?.env?.STRAPI_PROTOCOL,
strapi_default_user: {
username: process?.env?.STRAPI_MEDUSA_USER,
password: process?.env?.STRAPI_MEDUSA_PASSWORD,
email: process?.env?.STRAPI_MEDUSA_EMAIL,
confirmed: true,
blocked: false,
provider: "local"
},
strapi_host: process?.env?.STRAPI_SERVER_HOSTNAME,
strapi_admin: {
username:
process?.env?.STRAPI_SUPER_USERNAME ||
"SuperUser",
password:
process?.env?.STRAPI_SUPER_PASSWORD ||
"MedusaStrapi1",
email:
process?.env?.STRAPI_SUPER_USER_EMAIL ||
"support@medusa-commerce.com"
},
strapi_port: process?.env?.STRAPI_PORT,
strapi_secret: process?.env?.STRAPI_SECRET,
strapi_public_key: process?.env?.STRAPI_PUBLIC_KEY,
strapi_ignore_threshold: 3
}
Install and fire away
the package uses axios retry with a default fixed retry interval of 400seconds for any 429 errors. I'm happy to accept a PR which defines a better way of dealing with 429 errors
As much as we love FOSS software, nothing in this world is truely free. We'll be grateful if you can buy our team a coffee (https://www.buymeacoffee.com/uMRqW9NmS9).
FAQs
A plugin for medusa to use strapi in the backend as the cms in typescript
The npm package medusa-plugin-strapi-ts receives a total of 213 weekly downloads. As such, medusa-plugin-strapi-ts popularity was classified as not popular.
We found that medusa-plugin-strapi-ts demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.