https://github.com/phronmophobic/viscous
pprint that respects your space and time
https://github.com/phronmophobic/viscous
clojure data-visualization membrane pprint
Last synced: 2 months ago
JSON representation
pprint that respects your space and time
- Host: GitHub
- URL: https://github.com/phronmophobic/viscous
- Owner: phronmophobic
- License: epl-1.0
- Created: 2021-04-22T20:49:39.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-09T01:21:12.000Z (2 months ago)
- Last Synced: 2025-03-09T02:22:08.797Z (2 months ago)
- Topics: clojure, data-visualization, membrane, pprint
- Language: Clojure
- Homepage:
- Size: 9.01 MB
- Stars: 51
- Watchers: 4
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Viscous
A visual data inspector/explorer that runs in constant space, time, and screen space.
Built with [membrane](https://github.com/phronmophobic/membrane).
### Overview

### Resizing
### Paging
### Navigating
## Web Demo
Try it! https://phronmophobic.github.io/viscous/
## Dependency
#### deps.edn
```clojure
com.phronemophobic/viscous {:mvn/version "1.3.4"}
```#### lein
```clojure
[com.phronemophobic/viscous "1.3.4"]
```## Programmatic Usage
```clojure
(require '[com.phronemophobic.viscous :as viscous])(def my-data {:a {:b 42}})
;; open inspector window
(viscous/inspect my-data)```
## Cli usage
Create an alias for viscous
```clojure
{
:aliases {
```
```clojure
:viscous
{:replace-deps {com.phronemophobic/viscous {:mvn/version "1.3.4"}
org.clojure/data.json {:mvn/version "2.4.0"}}
:exec-fn com.phronemophobic.viscous.cli/main}
```
```clojure
}
}
```Read edn from stdin:
```sh
cat data.edn | clojure -X:viscous :file -
```Read edn from filename:
```sh
clojure -X:viscous :file '"data.edn"'
```Read json from stdin:
```sh
cat data.json | clojure -X:viscous :json-file -
```Read json from filename:
```sh
clojure -X:viscous :json-file '"data.edn"'
```## Status
Viscous is in beta. Behavior is subject to change. Feedback is welcome.
## Related
I'm generally interested in finding better ways to represent and explore medium sized heterogenous data. If you like viscous, you may also be interested in [treemap-clj](https://github.com/phronmophobic/treemap-clj).
## License
Copyright © 2025 Adrian Smith
Distributed under the Eclipse Public License version 1.0.