-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wishlist #1
Comments
Hey @johnletey! We were chatting on Twitter about leveraging a code-to-image service like https://htmlcsstoimage.com to generate images with charts and stuff, since you can now pin an image file from a Gist! I've included values for those images (325px wide, 100px tall) in const { MAX_HEIGHT, MAX_WIDTH } = require('gist-box') I don't know what should be made, but a proof-of-concept just to show that something would work would be amazing! |
@JasonEtco That sounds awesome ... so are you thinking of making a package that users can call to create a pinned-gist size chart? From the given example in the tweet of how to add an image to a gist, it looks like you'd have to create a token with push access. Also, jxnblk/repng might come in handy. |
I think for now just a proof of concept of it in action, so something like waka-box but through an image. Maybe a one-week contribution graph or something 🤔 |
Understand ... I don't have a wakatime account, so I really wouldn't be able to test any of the work I would possibly do. |
@JasonEtco I don't think I could do this (because I don't plan on using wakatime any time soon) ... any other ideas? I could technically try to create a wrapper around ChartJS for gists and then we could use that for waka-box. |
I think something similar could be done with Some other ideas:
|
@matchai All great ideas ... I'll have a think and get back to you |
@matchai @JasonEtco I think I'm going to try to do this |
You can check out my code here: blog-box |
@matchai @JasonEtco First commit ... here's how it looks (it's still a work in progress ... still doesn't work with all RSS feeds and doesn't have tests): I'd love for any critiques that you may have! Thanks for the amazing post @JasonEtco |
Good stuff @johnletey! Great idea to use the RSS feed. 😄 |
@matchai This is a great idea, what do you suggest using for making the image? Also, how did you make the image above? |
@johnletey There are a few ways you could go about it. One option would be to use a node implementation of canvas (e.g. node-canvas) to generate it. Another option would be to create it with HTML + CSS and use either a service (e.g. HTML/CSS to Image or something like Puppeteer on a server to render and take a snapshot. I quickly threw it together in Figma here: |
@matchai I'll look deeper into node-canvas and Puppeteer ... I'll keep you posted.
Although I do love this tool, as the user will probably be using this tool more than 50 times per month, that would put a ~$29/month fee on the user.
😍 Nice ... I'd love to start using Figma for designing prototypes |
Also @matchai, how do you upload a image to a gist? I know that @JasonEtco was saying that you can add it by cloning and then pushing to the gist, but how are you supposed to do that in node? |
I would take a look at https://github.com/steveukx/git-js and https://github.com/nodegit/nodegit. Alternatively, you could spawn a child process from Node to actually use the local |
I'll check it out ... thanks |
Hello author, can this project be used with GitHub Actions? |
Yep! These projects are generally made with GitHub Actions for the automation side of things. |
Hey ... I'm making this issue for two reasons:
The text was updated successfully, but these errors were encountered: