glitter
react-circle-of-fifths
glitter | react-circle-of-fifths | |
---|---|---|
2 | 3 | |
3 | 9 | |
- | - | |
9.7 | 5.1 | |
6 days ago | about 1 year ago | |
TypeScript | TypeScript | |
GNU General Public License v3.0 only | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
glitter
-
Show HN: Dropflow, a CSS layout engine for node or <canvas>
I've used satori [0] on the backend with TypeScript/Deno to render JSX as an SVG (which is then rendered to a PNG).
Satori is meant for rendering Open Graph images (e.g. the little images that come up when you post a link on Twitter/Slack/Facebook), but I found that it works well for rendering arbitrary images. It supports a subset of modern CSS, including flexbox.
My use case is posting match reports for League of Legends into a Discord text channel, e.g. person X just played a match, here are their stats.
It's quite nice because there are almost zero server-side native dependencies (the one exception is the library to convert svg -> png requires some native libraries).
Here's what a match report looks like: [1]
Here's an example of what the JSX looks like: [2]
[0]: https://github.com/vercel/satori
[1]: https://github.com/shepherdjerred/glitter/blob/main/assets/p...
[2]: https://github.com/shepherdjerred/glitter/blob/main/packages...
-
Learn SVG with 25 examples – How to code images in HTML
Another way is to write HTML/CSS and use satori [0] to convert that to SVG. It's meant for Open Graph images (the images that show up when you link a site in Discord, Slack, Twitter, etc.), but it works quite well for anything.
This is obviously not as flexible as true SVG, but it is familiar to author for anyone who's written a React application. I've used it on the backend to generate match reports for League of Legends [1]
[0]: https://github.com/vercel/satori
[1]: https://github.com/shepherdjerred/glitter-boys
react-circle-of-fifths
-
Learn SVG with 25 examples – How to code images in HTML
This is really cool! SVG is such a neat and flexible format, I'll definitely be taking some time to work through these tutorials, as it's directly related to some side projects I have going.
Like some of the other commenters here, I've found a lot of fun in building React components that are backed by SVG. React and JSX make it easy to add the interaction, and SVG lets you do some pretty cool UIs that wouldn't be easily possible with just HTML.
I actually have published a React component that renders an interactive "Circle of Fifths," which I built for a music theory side project I was working on (although this project is currently languishing among many other half-baked repos). There's still a lot to do with the component, but it's in a usable state: https://github.com/epiccoleman/react-circle-of-fifths
I wrote what I think is probably my best blog post about the process of figuring out how to build the Circle of Fifths with SVG, if that sounds interesting: https://epiccoleman.com/posts/2023-04-05-svg-circle-of-fifth...
I'm currently building out a fretboard diagram generator using a very similar approach, and having that post on hand for reference has been pretty useful. This is maybe my favorite thing about writing up the stuff I work on, it's nice to be able to "replay" how I thought through a problem.
-
Ask HN: Most interesting tech you built for just yourself?
One of my big "side projects" over the last few months has been my personal website and blog (https://epiccoleman.com). It's not very interesting per se - I mean, who doesn't have a blog these days - but it has been really educational and fun to work on. It's a really simplistic stack which makes working on it pretty frictionless. I spent a lot of time tweaking the look and feel of the site and am pretty happy with how everything has turned out.
I've also been putting a lot of work into a React component that renders a nice looking SVG Circle of Fifths, and just recently got to a point where I felt I could call a release "1.0.0". This has also been a really educational project and I'm super proud of the component. It's a little basic right now, but it looks very nice, and I have a lot of cool features planned.
It's licensed MIT, so if this sounds like something you'd like to use in an app, you can check it out here: https://github.com/epiccoleman/react-circle-of-fifths. I'd love any feedback, issues, etc.
-
Adding interactivity to react-circle-of-fifths
Morning all, this is a new post in my series covering the development of an SVG Circle of Fifths component for React. That component has just recently reached the point where I feel comfortable telling people to try it out and is MIT licensed - if you think you could use a nice looking Circle of Fifths in some musical application you're working on, check it out.
More than happy to accept feedback, PRs or issues on the repo, I've got a lot more stuff planned but the basic usability is there, I think!
https://github.com/epiccoleman/react-circle-of-fifths
What are some alternatives?
Frappe Charts - Simple, responsive, modern SVG Charts with zero dependencies
iptv-filter
html5spec - The WHATWG HTML5 spec as machine-readable JSON
vimwiki - Personal Wiki for Vim
dizquetv - Create live TV channels from your own media. Access the streams using the simulated HDHomerun tuner or the generated M3U URl.
Simplest-File-Renamer - Simplest file renamer - rename your files quickly and easily
Video-Hub-App - Official repository for Video Hub App
mblaze - Unix utilities to deal with Maildir
HTFanControl - 4D Theater Wind Effect - DIY Home Theater Project
scheme-for-max - Max/MSP external for scripting and live coding Max with s7 Scheme Lisp
digraph - Organize the world