
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
freemarker-visualizer
Advanced tools
A command-line utility to produce visualize graphs of FreeMarker dependencies.
:construction: Work in Progress! :construction:
A command-line utility to produce visual graphs of FreeMarker file trees. It was inspired by Madge, a library that produces visual graphs of JavaScript dependencies.
<#import /> and <#include /> directives are graphed by defaultnpm install -g freemarker-visualizer
graphviz:# OS X:
brew install graphviz || port install graphviz
# Fedora:
dnf install graphviz
# Ubuntu:
apt-get install graphviz
freemarker-visualizer path/to/template.ftl --directories path/to/dir
This will display a visual graph.
freemarker-visualizer path/to/template.ftl --directories path/to/dir --image graph.svg
This will save graph.svg in the cwd.
freemarker-visualizer path/to/template.ftl --directories dir1 dir2
This is useful in a project that has multiple base template directories. To avoid difficulty using freemarker-visualizer, the directories may be set in a configuration file.
freemarker-visualizer path/to/template.ftl --directories path/to/dir --plugins path/to/plugin.js
This will generate a graph with additional information about each processed template.
| Property | Type | Default | Description |
|---|---|---|---|
directories | Array | null | paths of base directories to search for templates |
plugins | Array | null | paths to plugins |
template | String | null | path to template |
image | String | graph.png | path for generated graph image |
You can add a configuration file in .config/freemarker-visualizer/config.js in your home directory or provide it through the --config flag.
To generate additional information about each template, a plugin can be referenced through the cli or added to the configuration file.
Each plugin must:
See example plugins for more information.
Currently, this utility will ignore template paths that are not relative to one of the provided base template directories. For example, "*/template.ftl" would not be resolved.
FAQs
A command-line utility to produce visualize graphs of FreeMarker dependencies.
We found that freemarker-visualizer 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.