origraph v0.2.8
origraph.js
origraph.js is a library for wrangling graph data. Graph constructs (like what is a node, and what is an edge) are deliberately lightweight, so that they are easy to map (and re-map) to data items, regardless of how the raw data is structured.
Be advised that this is project is very work-in-progress, and is being implemented in parallel with Origraph, a non-programmer's visual interface for using this library. Expect frequent sweeping changes and poor documentation for now, especially as we explore and refine what constructs and operations are even important for this graph data wrangling.
Installation and Usage
Basic use in the browser
This will make the window.origraph global available to your scripts:
<script src="https://cdn.jsdelivr.net/npm/origraph@0.2.8/dist/origraph.umd.js"></script>Server-side apps or pre-bundled browser apps
Installation:
npm install origraphUsage:
const origraph = require('origraph');Development
Setup:
git clone https://github.com/origraph/origraph.js.git
cd origraph.js
npm installDebugging:
When debugging with the test scripts, launch these as parallel processes:
npm run watchcjsnpm run debugDebugging in the browser:
When debugging in the browser, launch this in parallel to whatever you're using to debug / serve your web app (make sure to point your app to the built dist/origraph.umd.js file):
npm run watchumdReleasing a new version
A list of reminders to make sure we don't forget any steps:
- Update the version number in
package.json - Update the release link in this README
npm run buildnpm run testgit commit -a -m "commit message"git push- (Verify Travis CI doesn't fail)
git tag -a #.#.# -m "tag annotation"git push --tagsnpm publish- (maybe optional) Edit / document the release on Github, add built files in
dist