let cp = new CreasePattern().fishBase()

This is a javascript library for creating origami crease patterns.


Everything you need, including a guide to making your first sketch is on the introduction.


Origami crease patterns leverage mathematical graphs. Crease lines are the graph's edges defined by their end nodes.

This type of graph is a planar graph, the crease lines exist on the Euclidean plane in the typical X, Y coordinate system.


The aim of this library is for origami designs to be able to be created entirely in code, making every component accessible, flexible, and parametric.


This is open source

These docs make heavy use of paper.js, d3.js, and p5.js. Thank you to their developers.

This libary is available under the MIT open source license.