
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
git.1-hub.cn/loov/layout
Current version and API is in experimental stage. Property names may change.
The graph layouting can be used as a command-line tool and as a library.
To install the command-line tool:
go get -u github.com/loov/layout/cmd/glay
To install the package:
go get -u github.com/loov/layout
Basic usage:
package main
import (
"os"
"github.com/loov/layout"
"github.com/loov/layout/format/svg"
)
func main() {
graph := layout.NewDigraph()
graph.Node("A")
graph.Node("B")
graph.Node("C")
graph.Node("D")
graph.Edge("A", "B")
graph.Edge("A", "C")
graph.Edge("B", "D")
graph.Edge("C", "D")
graph.Edge("D", "A")
layout.Hierarchical(graph)
svg.Write(os.Stdout, graph)
}
Currently the layout.Hierarchy
algorithm output is significantly worse than graphviz. It is recommended to use graphviz dot
, if possible.
FAQs
Unknown package
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
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.