# bytefield-svg
**Repository Path**: fengwxx/bytefield-svg
## Basic Information
- **Project Name**: bytefield-svg
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: EPL-2.0
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-03-21
- **Last Updated**: 2026-03-21
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# bytefield-svg
A Node module for generating byte field diagrams like
[this one](https://deepsymmetry.org/images/test.svg).
Inspired by the LaTeX [`bytefield`](https://ctan.org/pkg/bytefield?lang=en)
package. Powered by a [Clojure](https://clojure.org)-based
[domain specific language](https://bytefield-svg.deepsymmetry.org/)
(now built on top of [SCI](https://github.com/borkdude/sci), the
Small Clojure Interpreter).
[](#license)
## Usage
This is published to npm, so you can install it for use in a Javascript
project by running:
npm install bytefield-svg
Or you can install it globally for use anywhere by running:
npm install -g bytefield-svg
The language you use to create diagrams has its own
[documentation site](https://bytefield-svg.deepsymmetry.org/).
### Invoking from Javascript
Once installed, you can generate diagrams in your code like this:
```javascript
const generate = require('bytefield-svg');
const source = `
;; Put your diagram DSL here, or read it from a file, or build it...
`;
const diagram = generate(source);
process.stdout.write(diagram);
```
By default, a full SVG file is generated, complete with XML version
and namespaces. If you want to generate a simple `