{"id":15147522,"url":"https://github.com/figureland/kit","last_synced_at":"2025-10-24T03:30:40.139Z","repository":{"id":255082637,"uuid":"848364001","full_name":"figureland/kit","owner":"figureland","description":"A collection of tools for creative programming","archived":false,"fork":false,"pushed_at":"2024-09-12T14:09:34.000Z","size":410,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-09-27T12:42:03.686Z","etag":null,"topics":["bun","creative-coding","math","prototyping","toolkit","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/figureland.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-27T16:17:53.000Z","updated_at":"2024-09-12T14:11:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6518bd6-a63a-42ca-8588-1dc079c04390","html_url":"https://github.com/figureland/kit","commit_stats":null,"previous_names":["figureland/kit"],"tags_count":19,"template":false,"template_full_name":"figureland/base","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figureland%2Fkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figureland%2Fkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figureland%2Fkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/figureland%2Fkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/figureland","download_url":"https://codeload.github.com/figureland/kit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219867141,"owners_count":16555821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bun","creative-coding","math","prototyping","toolkit","typescript"],"created_at":"2024-09-26T12:41:57.879Z","updated_at":"2025-10-24T03:30:39.508Z","avatar_url":"https://github.com/figureland.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/figureland/kit/actions/workflows/ci.yml/badge.svg)](https://github.com/figureland/kit/actions/workflows/ci.yml)\n[![NPM](https://img.shields.io/npm/v/@figureland/kit?color=000000)](https://img.shields.io/npm/v/@figureland/kit?color=40bd5c)\n\n**kit** is a collection of tools for creative programming. This project is very much a work in progress, but has been used in production applications.\n\n### Tools\n\n#### [math](./src/math/)\n\nTools for working with numbers, geometry, matrices and vertices.\n\n#### [state](./src/state/)\n\nSimple, powerful reactive programming primitives that are portable between frameworks.\n\n#### [infinity](./src/infinity/)\n\nMinimal primitives for building infinity canvas and map-type interactions.\n\n#### [tools](./src/tools/)\n\nGeneral purpose Typescript utilities, mainly used internally within this library.\n\n#### [browser](./src/browser/)\n\nA collection of useful tools for DOM-based interaction, like file handling, clipboard, pointer events.\n\n## Notes\n\nThis codebase is available as [@figureland/kit](https://www.npmjs.com/package/@figureland/kit), distributed on the NPM and Github package registries. It will eventually be available on [JSR](https://jsr.io/) as well.\n\n```bash\nbun install @figureland/kit\n```\n\nThis project follows the convention of [Deno](https://deno.com/), JSR, and others in that it doesn't use a build step. The library is distributed as the original Typescript source files, meaning you'll need to have a project that is already using TS.\n\n## Development guide\n\n### Setup\n\nThis codebase is based on [bun](https://bun.sh/). Bun is a amazing new Javascript runtime that, to some extent, replaces [node](https://nodejs.org/).\n\nConsumers of this codebase don't need to have bun installed to use the library.\n\n1. If you don't already have bun installed on your machine, follow these instructions need to [install](https://bun.sh/docs/installation) bun.\n\n2. Following that you can install the codebase dependencies.\n   ```\n   bun install\n   ```\n\n### Test\n\n```bash\nbun test\n```\n\n## Thoughts on creative programming environments\n\nWe live in an amazing era of tools for the web. There are many incredible projects like [p5.js](https://p5js.org/), [Pts](https://ptsjs.org/) or [three.js](https://threejs.org/) that provide an amazing palette for creative coding. However, they all lean towards the rendering and graphical parts of projects. That makes a lot of sense, because they are often used for things like data visualisation, animations or prototyping.\n\nIt's easy to overlook that they are not just powerful tools but have also had a huge amount of thought and care put into their _learning experience_. The quality of their learning resources and the openness of their communities is why these projects continue to thrive today.\n\nThere's a bit of a gap that emerges when you want to make more complete applications, or do more sophisticated things with data. Modern Javascript development is well equipped with great standard libraries, like Deno's [std](https://jsr.io/@std), but there is still a question of environment. Where and how do I run this? Does it need a server? How do I go from prototype to product?\n\nNormally, that's where tools like React and next.js come in. For creative and design processes, iteration is key, and often you want to be able to test and store lots of different options. React is a wonderful tool and has established a whole load of conventions, many good and some not so good. But it still imposes a 'React' way of thinking.\n\nYou could repurpose front-end web environments like [Storybook](https://storybook.js.org/) or [Histoire](https://histoire.dev/), but they are so focussed on isolated front-end components and design systems, which are all together a different stage of software production.\n\nAlternative you could notebooks like [Jupyter](https://jupyter.org/) or Observable's [Framework](https://observablehq.com/framework/). Framework feels like the best starting point here, because it hints at a blend documentation, narrative and iteration as well as all the best features of the modern web ecosystem.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffigureland%2Fkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffigureland%2Fkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffigureland%2Fkit/lists"}