
Security News
Agent Baseline Publishes Security Reference Architecture for Software Factories
Agent Baseline’s new reference architecture shows how to secure software factories with four boundaries enforced outside the AI agent.
Turn code into PNG or SVG images from the command line. Highlighting and layout run locally; nothing is uploaded.
npm install -g codepic
Or run without installing:
npx codepic --help
Requires Node 22 or newer.
codepic --file app.ts --theme nord -o out.png
cat app.ts | codepic --lang typescript -o out.svg
Code comes from --file or standard input. -o / --output sets the path (default codepic.png). A .svg extension writes SVG. Language is guessed when you omit --lang; with --file, the filename is used as the title unless you pass --title.
codepic --help
These match the CodePic web app URL parameters and the same option names on the command line.
| Option | Values |
|---|---|
--lang | Language id, e.g. typescript, python, shell |
--theme | github-light, github-dark, dracula, nord, one-dark-pro |
--bg | Background preset (ocean, slate, sunset, forest, paper, charcoal, violet, rose) or transparent |
--padding | 16, 32, 64, 128 |
--width | 320–1600 |
--font | 12, 14, 15, 16, 18, 20, 24 |
--lh | Line height, 1.2–2 |
--window | controls, minimal, borderless |
--lines | Line numbers: true or false |
--wrap | Wrap long lines: true or false |
--showTitle | Show filename: true or false |
--title | Window title (up to 200 characters) |
--scale | PNG scale: 1, 2, 3 |
--format | png or svg |
--highlight | Lines to emphasize, e.g. 2,5-7 |
--added | Lines marked as added |
--removed | Lines marked as removed |
Invalid values print a clear error and exit with status 1.
Images use the same highlighter, themes, and layout as the browser app. The drop shadow is approximated, and wrapping is by character count, so wide characters (CJK, emoji) may extend past a row.
MIT
FAQs
Turn code into PNG or SVG images from the command line.
The npm package codepic receives a total of 39 weekly downloads. As such, codepic popularity was classified as not popular.
We found that codepic 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.

Security News
Agent Baseline’s new reference architecture shows how to secure software factories with four boundaries enforced outside the AI agent.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.