npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

p5mimicry

v0.0.1

Published

**WIP Please ignore**

Downloads

3

Readme

p5mimicry.js

WIP Please ignore

About

This project is based on Dan Shiffman's Nature of Code book and code examples. Credits go to Dan and all of the people who have contributed to building those examples.

This library is being built to make it easier to quickly breath "life" into your p5.js projects by simulating natural systems and behaviors with code. Dan's Nature of Code helped me to discover the beauty and expressivenes of code and continues to be a major influence in my creative practice.

I hope you can find inspiration in the natural world and find new ways to simulate them with code. Happy coding!

Docs

Examples

see: /examples

Get the Library

beta:

https://unpkg.com/p5mimicry@latest/dist/p5mimicry.min.js

see versions: https://www.npmjs.com/package/p5mimicry

Credits:

  • Nature of Code by Dan Shiffman
  • Nature of Code Examples by Dan Shiffman and contributors
  • Developing an open source library Following along Kent C. Dodd's wonderful Open source software development series: https://egghead.io/lessons/javascript-publishing-to-npm

Demos

  • Special Spring: https://editor.p5js.org/joeyklee/sketches/ORZ-MNb5B
  • oscillating path followers: https://editor.p5js.org/joeyklee/full/sMUJRKafG

(More coming soon)




Develop

The process goes something like:

  • setup
  • make new features or fix stuff
  • build the library
  • publish

Setup and start

cd p5mimicry
npm install
npm run start

the library will be served at: localhost:<PORT>/p5mimicry.js

Add your classes in the /src directory with a folder called /MyClassName that includes:

  • index.js
  • index_test.js

import and add your new class name to the /src/index.js as you see it done with the others.

Build

npm run build

Publish

First change the version name in package.json

git add .
git commit -m "bumped version"
npm run publish:gh

then publish to npm

npm run publish:npm

WIP - the todo list!

Working through these: https://github.com/nature-of-code/noc-examples-p5.js

  • Mover
    • euler integration ✅
    • friction ✅
    • resistance ✅
    • repel ✅
    • attract ✅
    • seek ✅
    • arrive ✅
    • path-following ✅
    • stay-within-walls ==> "contain" ✅
    • flow field ✅
    • separation ✅
    • flocking ✅
    • steering perceptron ✅
  • Wave ✅
  • Path ✅
    • path-simple ✅
    • path-complex ✅
  • Pendulum ✅
  • Spring ✅
  • Particle systems ✅
  • Cellular Automata
    • wolfram
    • gameoflife
  • Fractals
    • recursion
    • cantor set
    • koch
    • tree
    • lsystem
  • Genetic Algorithms
    • traditional ✅
    • interactive selection