Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server side image rendering of Cytoscape.js graphs/networks using Node.js and PhantomJS #25

Open
2 tasks done
abbycabs opened this issue Apr 27, 2016 · 5 comments
Open
2 tasks done

Comments

@abbycabs
Copy link
Member

abbycabs commented Apr 27, 2016

[ Project Lead ] @maxkfranz
[ GitHub Repo ] https://github.com/cytoscape/cytosnap & https://github.com/cytoscape/cytosnap-demo
[ Track ] Tools: you are building a tool others can help you build
[ Level ] Intermediate
[ Timezone ] EDT

Description

Graph theory (a.k.a. network) library for analysis and visualisation : http://js.cytoscape.org. Server side network rendering with Cytoscape.js

This project will build a Node.js package that people can require() in their own projects to generate images of graphs/networks on the server side.

  • Input : A Cytoscape graph, represented in JSON, image options (size, quality, ...)
  • Output : A PNG or JPG file
  • Strategy :
    • Use PhantomJS to run an instance of Cytoscape.js in a page that runs in a headless instance of Webkit
    • Export the image either using a mechanism built into Phantom or as generated by cy.png() or cy.jpg()
    • It may be better to structure the module as a long running service to avoid the cost of spinning up Phantom instances for each image generated
    • Use promises in the API
  • Deliverables
    • A reusable package on npm
    • A Docker container with a demo Express server where you can POST graph JSON and get back an image
    • The Docker demo deployed to Nodejitsu to show off this sprint project :)

Want to Contribute?

Join us at the Global Sprint June 2-3. Leave a comment in this issue to let the project lead know you're interested in contributing during #mozsprint 2016!

You can chat with us on the repo's Gitter channel.


Note to the Project Lead

Congrats, @maxkfranz! This is your official project listing for the Mozilla Science Global Sprint 2016. To confirm your submission, please complete the following:

  • Provide a GitHub repository for work and discussion on your project
  • Confirm in a comment that at least one person will be available to review and answer questions on this project from 9-5 in their timezone on both June 2 & 3.
@maxkfranz
Copy link
Member

@acabunoc Yes, I'll be available

@maxkfranz
Copy link
Member

Project : Server side image rendering of Cytoscape.js graphs/networks using Node.js and PhantomJS

Repo : https://github.com/cytoscape/cytosnap

@abbycabs
Copy link
Member Author

Thanks @maxkfranz! Feel free to update the issue with project info :)

@maxkfranz maxkfranz changed the title Cytoscape.js Server side image rendering of Cytoscape.js graphs/networks using Node.js and PhantomJS May 10, 2016
@eronisko
Copy link

Hi @maxkfranz, is your time zone Eastern Time (UTC-05:00)?

@maxkfranz
Copy link
Member

@eronisko Yes

@maxkfranz maxkfranz removed their assignment Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants