Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stereobooster/cyto-snap
Render graphs on the server side with Cytoscape.js, getting image file as output (using tauri)
https://github.com/stereobooster/cyto-snap
cytoscape cytoscapejs tauri
Last synced: about 2 months ago
JSON representation
Render graphs on the server side with Cytoscape.js, getting image file as output (using tauri)
- Host: GitHub
- URL: https://github.com/stereobooster/cyto-snap
- Owner: stereobooster
- Created: 2023-09-29T09:47:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-28T05:08:05.000Z (about 1 year ago)
- Last Synced: 2024-03-14T20:05:15.280Z (11 months ago)
- Topics: cytoscape, cytoscapejs, tauri
- Language: JavaScript
- Homepage: https://stereobooster.com/posts/tauri-instead-of-puppeteer-or-playwright/
- Size: 780 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cyto-snap
~~Full of hacks~~ Experimental package to demo how one can use Tauri instead of Puppeteer or Playwright.
Render graphs on the server side with Cytoscape.js, getting image file as output. This package is similar to [cytosnap](https://github.com/cytoscape/cytosnap), but is uses Tauri instead of Puppeteer.
Can be used like this:
```
npx @stereobooster/cyto-snap -s g2.json -d g2.png
```## TODO
- Finish configuration of github actions
- [ ] check release flow
- [ ] add action to create releses for tags and publish Tauri installers to release
- write more tests
- [ ] test `jpg`
- [ ] test `STDIN` / `STDOUT`
- test edge cases
- [ ] none existent file
- [ ] none existen folder
- [ ] broken JSON
- [ ] wrong values is JSON
- [ ] test all [the rest of layouts](https://js.cytoscape.org/#extensions/layout-extensions)
- [ ] Add TypeScript signatures## Development
1. Install `rustup` or similar
1. Install rust
2. Install `pnpm`
1. Instal node packages `pnpm install`
3. Build `pnpm tauri build`, `pnpm tauri-postbuild`
4. Test `pnpm test`