{
 "slug": "trianglify",
 "name": "Trianglify",
 "author": "Quinn Rohlf",
 "density": "full",
 "status": "active",
 "status_note": null,
 "alternatives_page": null,
 "one_liner": "JS library that generates low-poly triangle pattern backgrounds as SVG/PNG/canvas; GPLv3 code, you own the images.",
 "category": {
  "slug": "backgrounds-patterns",
  "name": "Backgrounds, patterns and shapes"
 },
 "tags": [
  "Code library",
  "Open source"
 ],
 "styles": [
  "geometric",
  "abstract",
  "gradient"
 ],
 "logo_url": "https://agentgid.com/media/avatars/qrohlf.png",
 "logo_letter": "T",
 "links": {
  "repo": "https://github.com/qrohlf/trianglify",
  "website": "https://trianglify.io",
  "api_docs": null
 },
 "preview": {
  "kind": "image_grid",
  "src": "https://agentgid.com/assets/trianglify/demo.jpg",
  "alt": "Six backgrounds made by Trianglify, two from text seeds, two with set color ranges, one with an even grid and one with outlines only; the label under each shows the options used.",
  "caption": "Made by AgentGid with trianglify 4.1.1 (dist/trianglify.bundle.js from the npm tarball, hash checked against the registry). The images are output of the library; the README says you own the copyright to images you create with it. The library itself (GPLv3) is not shipped on our page."
 },
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Free",
   "status": "yes",
   "sub": "No paid plan",
   "quote": null,
   "note": "Free under GPLv3; commercial license for closed source (as reported).",
   "source": {
    "label": "trianglify.io",
    "url": "https://trianglify.io"
   },
   "n": 1
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": "GPL-3.0",
   "quote": "If you are interested in using Trianglify in a closed-source project, please email qr@qrohlf.com to purchase a commercial license.",
   "note": "Shipping only the generated images is fine; including the library needs a GPL-compatible open-source project or a paid license.",
   "source": {
    "label": "raw.githubusercontent.com",
    "url": "https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/Readme.md"
   },
   "n": 2
  },
  {
   "key": "credit",
   "label": "Credit the author",
   "value": "Not needed",
   "status": "yes",
   "sub": null,
   "quote": "you own the copyright to the output image files which you create using Trianglify",
   "note": null,
   "source": {
    "label": "raw.githubusercontent.com",
    "url": "https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/Readme.md"
   },
   "n": 3
  },
  {
   "key": "agent_access",
   "label": "Agent access",
   "value": "npm package",
   "status": "info",
   "sub": "Installs without a key",
   "quote": null,
   "note": "An agent can install it by itself with npm install trianglify. No key or account is needed.",
   "source": {
    "label": "github.com/qrohlf/trianglify",
    "url": "https://github.com/qrohlf/trianglify"
   },
   "n": 4
  }
 ],
 "license": {
  "name": "GPL-3.0 (library); generated images are yours",
  "url": "https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/Readme.md",
  "summary": "The code is under the GPL 3 license, so a site or app that includes it must be open source too, or you buy a paid license from the author. The pictures you make with it are yours, and shipping only those pictures has no such rule.",
  "pages_read": 1,
  "rules": [
   "Shipping the JS library in a site/app requires a GPL-compatible open-source project (or a paid license)",
   "Generating images offline and shipping only the SVG/PNG is fine"
  ],
  "rows": [
   {
    "label": "Commercial use",
    "value": "With conditions",
    "status": "cond",
    "quote": "If you are interested in using Trianglify in a closed-source project, please email qr@qrohlf.com to purchase a commercial license.",
    "source": {
     "label": "raw.githubusercontent.com",
     "url": "https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/Readme.md"
    },
    "note": null
   },
   {
    "label": "Credit",
    "value": "Not needed",
    "status": "yes",
    "quote": "you own the copyright to the output image files which you create using Trianglify",
    "source": {
     "label": "raw.githubusercontent.com",
     "url": "https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/Readme.md"
    },
    "note": null
   },
   {
    "label": "Inside your app or game",
    "value": "With conditions",
    "status": "cond",
    "quote": "This means that any websites, apps, or other projects that include the Trianglify javascript library need to be released under a compatible open-source license.",
    "source": {
     "label": "raw.githubusercontent.com",
     "url": "https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/Readme.md"
    },
    "note": null
   },
   {
    "label": "Pass the files on to your users",
    "value": "With conditions",
    "status": "cond",
    "quote": "If you just want to use an image file that was generated using Trianglify in your project, and do not plan to distribute the Trianglify source code or compiled versions of it, you do not need to worry about the license restrictions described above.",
    "source": {
     "label": "raw.githubusercontent.com",
     "url": "https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/Readme.md"
    },
    "note": null
   },
   {
    "label": "AI training",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   },
   {
    "label": "Bots and bulk downloads",
    "value": "Not stated",
    "status": "unknown",
    "quote": null,
    "source": null,
    "note": null
   }
  ],
  "checked_at": "2026-11-05",
  "commercial_use_page": "https://agentgid.com/assets/trianglify/commercial-use/"
 },
 "overview": {
  "heading": "Trianglify: low-poly triangle backgrounds from code",
  "body": "Trianglify is a free code library that draws colorful backgrounds made of triangles, in the low-poly style. You set the size and colors, and it gives you a picture for a web page or an image file. The same seed text always gives the same picture, so each blog post or user can get its own fixed background."
 },
 "uses": [
  {
   "title": "A unique header for every blog post",
   "text": "Use the post title as the seed so each article gets its own triangle header that stays the same on every visit.",
   "idea": false,
   "image": "https://agentgid.com/assets/trianglify/demo.jpg"
  },
  {
   "title": "A full-page background",
   "text": "Fill the whole window with a triangle pattern as the background of a landing page or a login screen.",
   "idea": false,
   "image": null
  },
  {
   "title": "Background images in brand colors",
   "text": "Pass your own color stops to get backgrounds that match your brand, then save them as image files for your site.",
   "idea": false,
   "image": null
  },
  {
   "title": "Line art backgrounds",
   "text": "Draw only the triangle outlines for a light web-like pattern behind text or charts.",
   "idea": false,
   "image": null
  },
  {
   "title": "Social share images",
   "text": "Make a matching share picture for each page, sized for link previews, and save it as a file when the site is built.",
   "idea": true,
   "image": null
  },
  {
   "title": "Placeholder covers for empty items",
   "text": "Give projects, playlists or courses without a cover picture a colorful background made from their name.",
   "idea": true,
   "image": null
  }
 ],
 "start": {
  "prompt": "Use trianglify 4.1.1 in a small build script to make one 1200x630 PNG background per blog post, using the post title as the seed, and ship only the image files, not the library.",
  "install": "npm install --save trianglify",
  "install_note": null,
  "code": [
   {
    "tab": "Step 1",
    "intro": "Call trianglify with a width, a height and other options, then draw the result as a drawing (toSVG) or a picture (toCanvas).",
    "source": "const options = { height: 400, width: 600 }\nconst pattern = trianglify(options)"
   }
  ]
 },
 "mistakes": [
  {
   "dont": "Bundling trianglify into a closed-source site or app",
   "fix": "Make the images at build time and ship only the SVG or PNG files, or buy a commercial license",
   "why": "The library is GPLv3; the images it makes are yours.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "<script src='https://unpkg.com/trianglify@^4/dist/trianglify.bundle.js'> on a live page",
   "fix": "Pin trianglify 4.1.1 and serve dist/trianglify.bundle.js from your own site, or better, ship only images",
   "why": "The ^4 range follows whatever comes next, and every visitor's browser then calls unpkg.com.",
   "dont_code": true,
   "fix_code": false
  },
  {
   "dont": "Leaving seed unset and expecting the same background on every load",
   "fix": "Pass a seed, for example the post title or the page slug",
   "why": "With seed null the generator uses fresh random values each time.",
   "dont_code": false,
   "fix_code": false
  },
  {
   "dont": "Expecting a plain npm install for a browser-only project to be light",
   "fix": "Use the ready dist/trianglify.bundle.js in the browser; in Node make sure node-canvas can build",
   "why": "The npm package lists canvas as a normal dependency, which builds native code on install.",
   "dont_code": false,
   "fix_code": false
  }
 ],
 "agent": {
  "self_serve": true,
  "self_serve_text": "Agent installs a package or loads it from a CDN",
  "install": "npm install trianglify",
  "repo": "https://github.com/qrohlf/trianglify",
  "api_docs": null,
  "api_account": "Not needed. Everything runs on your side.",
  "get_files": "npm install trianglify; best practice: generate SVG/PNG at build time (Node) and ship only the image, not the library.",
  "formats": [
   "svg",
   "png",
   "js"
  ],
  "limits": null,
  "mcp": null,
  "mcp_url": null,
  "credit_line": null,
  "rules_text": "- Trianglify (Backgrounds, patterns and shapes). JS library that generates low-poly triangle pattern backgrounds as SVG/PNG/canvas; GPLv3 code, you own the images. Price: free; commercial use with conditions; no credit needed; ship inside your app with conditions; pass the files on to your users only with conditions. Style: geometric, abstract, gradient.\n  Connect: npm trianglify.\n  Get files: npm install trianglify; best practice: generate SVG/PNG at build time (Node) and ship only the image, not the library (svg, png, js).\n  Not allowed: GPLv3 copyleft if the library is bundled\n  Rule: Shipping the JS library in a site/app requires a GPL-compatible open-source project (or a paid license)\n  Rule: Generating images offline and shipping only the SVG/PNG is fine\n  License: https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/Readme.md (checked 2026-11-05; details: https://agentgid.com/assets/trianglify/)",
  "agent_md": "https://agentgid.com/assets/trianglify/agent.md",
  "card_json": "https://agentgid.com/assets/trianglify/card.json"
 },
 "popularity": {
  "gid_score": 20,
  "stars": 10089,
  "downloads_7d": 1028,
  "downloads_7d_label": "1,028",
  "downloads_change_4w_pct": -21.3,
  "eco": "npm",
  "package": "trianglify",
  "repo": "qrohlf/trianglify",
  "agent_projects": null,
  "agent_projects_total": null,
  "downloads_unconfirmed": false,
  "series": {
   "downloads_weekly": [
    [
     "2025-11-17",
     473
    ],
    [
     "2025-11-24",
     519
    ],
    [
     "2025-12-01",
     613
    ],
    [
     "2025-12-08",
     520
    ],
    [
     "2025-12-15",
     417
    ],
    [
     "2025-12-22",
     349
    ],
    [
     "2025-12-29",
     283
    ],
    [
     "2026-01-05",
     529
    ],
    [
     "2026-01-12",
     398
    ],
    [
     "2026-01-19",
     519
    ],
    [
     "2026-01-26",
     527
    ],
    [
     "2026-02-02",
     523
    ],
    [
     "2026-02-09",
     529
    ],
    [
     "2026-02-16",
     724
    ],
    [
     "2026-02-23",
     522
    ],
    [
     "2026-03-02",
     393
    ],
    [
     "2026-03-09",
     525
    ],
    [
     "2026-03-16",
     904
    ],
    [
     "2026-03-23",
     1069
    ],
    [
     "2026-03-30",
     866
    ],
    [
     "2026-04-06",
     1050
    ],
    [
     "2026-04-13",
     789
    ],
    [
     "2026-04-20",
     728
    ],
    [
     "2026-04-27",
     991
    ],
    [
     "2026-05-04",
     1096
    ],
    [
     "2026-05-11",
     899
    ],
    [
     "2026-05-18",
     1162
    ],
    [
     "2026-05-25",
     933
    ],
    [
     "2026-06-01",
     1207
    ],
    [
     "2026-06-08",
     977
    ],
    [
     "2026-06-15",
     867
    ],
    [
     "2026-06-22",
     680
    ],
    [
     "2026-06-29",
     868
    ],
    [
     "2026-07-06",
     666
    ],
    [
     "2026-07-13",
     851
    ],
    [
     "2026-07-20",
     1067
    ],
    [
     "2026-07-27",
     1002
    ],
    [
     "2026-08-03",
     852
    ],
    [
     "2026-08-10",
     973
    ],
    [
     "2026-08-17",
     952
    ],
    [
     "2026-08-24",
     1055
    ],
    [
     "2026-08-31",
     896
    ],
    [
     "2026-09-07",
     819
    ],
    [
     "2026-09-14",
     1016
    ],
    [
     "2026-09-21",
     1347
    ],
    [
     "2026-09-28",
     1769
    ],
    [
     "2026-10-05",
     1033
    ],
    [
     "2026-10-12",
     728
    ],
    [
     "2026-10-19",
     477
    ],
    [
     "2026-10-26",
     1066
    ],
    [
     "2026-11-02",
     1269
    ],
    [
     "2026-11-09",
     1028
    ]
   ],
   "stars": [
    [
     "2026-11-07",
     10086
    ],
    [
     "2026-11-08",
     10086
    ],
    [
     "2026-11-09",
     10086
    ],
    [
     "2026-11-10",
     10087
    ],
    [
     "2026-11-11",
     10088
    ],
    [
     "2026-11-12",
     10089
    ],
    [
     "2026-11-13",
     10089
    ],
    [
     "2026-11-14",
     10089
    ],
    [
     "2026-11-15",
     10089
    ],
    [
     "2026-11-16",
     10089
    ],
    [
     "2026-11-17",
     10089
    ]
   ]
  },
  "stars_flat_since": null,
  "updated_at": "2026-11-17"
 },
 "alternatives": [
  {
   "slug": "trianglify",
   "name": "Trianglify",
   "why": null,
   "current": true,
   "price": "Free",
   "commercial": {
    "value": "With conditions",
    "status": "cond"
   },
   "access": "npm"
  },
  {
   "slug": "pattern-craft",
   "name": "Pattern Craft",
   "why": "Pick Pattern Craft when you want ready background patterns and gradients as copy-paste CSS or Tailwind code with an MIT license.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "hero-patterns",
   "name": "Hero Patterns",
   "why": "Pick Hero Patterns when you want small repeating background patterns in one color instead of a full triangle picture.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "haikei",
   "name": "Haikei",
   "why": "Pick Haikei when you want to design waves, blobs and other backgrounds in a web app and export them, without code.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "react-bits",
   "name": "React Bits",
   "why": "Animated React components, text effects and backgrounds in JS/TS with CSS or Tailwind; install the source with the shadcn CLI or jsrepo.",
   "current": false,
   "price": "Free tier",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "Download"
  },
  {
   "slug": "paper-shaders",
   "name": "Paper Shaders",
   "why": "Zero-dependency WebGL shader components: mesh gradients, grain, dithering, liquid metal, god rays, halftone, fluted glass; React or vanilla JS.",
   "current": false,
   "price": "Free",
   "commercial": {
    "value": "Commercial OK",
    "status": "yes"
   },
   "access": "npm"
  }
 ],
 "faq": [
  {
   "q": "Can I use the pictures in a paid product?",
   "a": "Yes. You own the images you make with it, and shipping only the images is free of the GPL rules."
  },
  {
   "q": "Can I put the library in my closed-source app?",
   "a": "Only with a paid commercial license from the author; otherwise the project must use a compatible open-source license."
  },
  {
   "q": "Will the same settings give the same picture?",
   "a": "Yes, when you set a seed. Without a seed every run is random."
  },
  {
   "q": "Can I choose the colors?",
   "a": "Yes. Use a named color set such as YlGnBu or pass your own list of colors."
  }
 ],
 "at_a_glance": {
  "latest_version": "4.1.1",
  "last_commit": "2025-05-12",
  "runtime": "Any modern browser for dist/trianglify.bundle.js; in Node the package also installs node-canvas (canvas ^2.6.1), which builds native code.",
  "key_needed": false,
  "formats": "svg, png, js"
 },
 "good_to_know": [
  "Putting the library itself into a closed-source site or app needs a paid license from the author. Making images ahead of time avoids this.",
  "The last release, 4.1.1, came out in November 2020. Pin that exact version.",
  "Without a seed you get a new random picture on every load. Set a seed when the picture must stay the same.",
  "The online playground at trianglify.io needs JavaScript; it is a place to try the settings before writing code.",
  "Very small triangle sizes can make drawing much slower."
 ],
 "stack_snippets": [],
 "claims": [],
 "checked": {
  "license_read": "2026-11-05",
  "overview_checked": "2026-11-12",
  "numbers_updated": "2026-11-17",
  "sources": [
   {
    "label": "trianglify.io",
    "url": "https://trianglify.io"
   },
   {
    "label": "github.com/qrohlf/trianglify",
    "url": "https://github.com/qrohlf/trianglify"
   },
   {
    "label": "README on GitHub",
    "url": "https://github.com/qrohlf/trianglify/blob/HEAD/Readme.md"
   },
   {
    "label": "LICENSE on GitHub",
    "url": "https://github.com/qrohlf/trianglify/blob/HEAD/LICENSE"
   },
   {
    "label": "npm: trianglify",
    "url": "https://registry.npmjs.org/trianglify"
   },
   {
    "label": "raw.githubusercontent.com",
    "url": "https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/Readme.md"
   },
   {
    "label": "raw.githubusercontent.com",
    "url": "https://raw.githubusercontent.com/qrohlf/trianglify/HEAD/LICENSE"
   }
  ],
  "unverified": null
 },
 "user_reports": null,
 "url": "https://agentgid.com/assets/trianglify/",
 "note": "Written by AgentGid from the official pages in checked.sources; quotes are copied from those pages. status: yes | cond | no | unknown | info. Prices and vendor claims are as reported on the checked date. Not legal advice."
}
