Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Visualises JavaScript, TypeScript and Flow codebases as meaningful and committable architecture diagrams
🇸🇪arkitektur
# Run arkit straight away
npx arkit
# Or add it to your project as a dev dependency
npm install arkit --save-dev
yarn add arkit --dev
# Run arkit against your source folder and save result as SVG
npx arkit src/ -o arkit.svg
# You can also specify source files to start from and output format
npx arkit -f src/main.js -o puml
# And get some more with debugging and file exclusions
LEVEL=info npx arkit -e "node_modules,test,dist,coverage" -o puml
If your project is huge and first diagrams look messy, it's better to generate them per feature, architectural layer, etc.
Once you satisfied with results, add arkit command to your build script, so it will keep your architecture diagrams up-to-date.
Arkit can be configured using basic CLI arguments or advanced JSON, JS module or package.json configuration.
user@machine:~$ npx arkit --help
arkit [directory]
Options:
-o, --output Output type or file path to save
-f, --first File patterns to start with [string]
-e, --exclude File patterns to exclude
[default: "test,tests,dist,coverage,**/*.test.*,**/*.spec.*,**/*.min.*"]
-d, --directory Working directory [default: "."]
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
{
"$schema": "https://arkit.js.org/schema.json",
"components": [
{
"type": "Dependency",
"patterns": ["node_modules/*"]
},
{
"type": "Component",
"patterns": ["**/*.ts", "**/*.tsx"]
}
],
"excludePatterns": ["test/**", "tests/**", "**/*.test.*", "**/*.spec.*"],
"output": [
{
"path": "arkit.svg",
"groups": [
{
"first": true,
"components": ["Component"]
},
{
"type": "Dependencies",
"components": ["Dependency"]
}
]
}
]
}
See more possible JSON configuration options in the examples below
npx arkit
npx arkit
and config in package.jsonnpx arkit
and config in arkit.jsonThe tool is under active development, so please feel free to contribute with suggestions and pull requests. Your feedback is priceless.
Give a Github star to get on the map.
FAQs
Visualises JavaScript, TypeScript and Flow codebases as meaningful and committable architecture diagrams
The npm package arkit receives a total of 1,127 weekly downloads. As such, arkit popularity was classified as popular.
We found that arkit 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.