html-to-image
million
Our great sponsors
html-to-image | million | |
---|---|---|
9 | 48 | |
5,171 | 15,163 | |
- | 4.9% | |
6.0 | 9.7 | |
8 days ago | 7 days ago | |
TypeScript | TypeScript | |
MIT License | 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.
html-to-image
-
nize.pics β create beautiful images of code and screenshots
Thanks! It's built with React (Next.js) and Mantine for the UI components. I'm not sure what you mean with edit systems, but the layers are using react-draggable. The syntax highlighting is powered by shiki and a bunch of exported VS Code themes. The state is handled by zustand, with the undo-redo functionality built on top of it. The code formatting is done with prettier and the image export uses html-to-image.
-
How do I make Design Templates like Canva Templates that are unique but can be modified & exported as an image? Should I use Canvas or WebGL?
DOM with html-to-image for screenshot
- GitHub - bubkoo/html-to-image: Generates an image from a DOM node using HTML5 canvas and SVG.
- Bubkoo/HTML-to-image: Generate an image from a DOM node
-
Trying to save Tweets as PNG, profile pictures display in rendered component, but not in exported PNG. Any ideas?
So I am currently developing a React application using html-to-image to accomplish what I want. Basically, I have created an application that allows the user to input the URL to a Tweet, and then I generate a customizable React component that can ultimately be downloaded as a PNG or SVG. The application looks like this: https://i.imgur.com/qP4zDDO.png
-
Capture HTML element and share it to twitter/reddit/facebook
There are ways of turning a DOM element in to a JPG or PNG. Like the html-to-image package. But I have no idea how you'd let the user share it to Twitter.
-
After 1 YEAR of hard work my NEW Ultimate Web Desktop Environment is ready for launch!!!!! ππ
Peek hover preview of windows
-
I use something like html2canvas to download the image from my webpage, but the quality is so low (300px width). I wonder is it possible to download the image with higher quality (at least 800px width?)?
In my image editor project I use html-to-image. It's a fork of dom-to-image and it has a few extra options. It has canvasWidth and canvasHeight for scaling the output but I'm not sure how they work because I used another setting called pixelRatio, since in my image editor I have an option to save the image to whatever the editor zoom is set to, so I already had the proper scale value and never ended up trying the other to settings.
-
π§’ Stefan's Web Weekly #30
bubkoo/html-to-image β Generates an image from a DOM node using HTML5 canvas and SVG.
million
-
Show HN: Million Lint β ESLint for Performance
Hey HN! Founder of Million β Weβre building a tool to that helps fix slow React code. Here is a quick demo: https://youtu.be/k-5jWgpRqlQ
Fixing web performance issues is hard. Every developer knows this experience: we insert console.log everywhere, catch some promising leads, but nothing happens before "time runs out." Eventually, the slow/buggy code never gets fixed, problems pile up on a backlog, and our end users are hurt.
We started Million to fix this. A VSCode extension that identifies slow code and suggests fixes (like ESLint, for performance!) The website is here: https://million.dev/blog/lint
I realized this was a problem when I tried to write an optimizing compiler for React in high school (src: https://github.com/aidenybai/million). It garnered a lot of interest (14K+ stars) and usage, but it didn't solve all user problems.
Traditionally, devtools either hinge on full static analysis OR runtime profiling. We found success in a mixture of the two with dynamic analysis. During compilation, we inject instrumentation where it's necessary. Here is an example:
function App({ start }) {
-
Million 3.0: All You Need To Know
To be honest, it fills me with great joy to finally be able to witness the launch of the 3.0.0 major release of Million.js; this is something that has been talked about since maybe July 2023, but, Aiden Bai finally assembled a team to get it out there and just last week on the day 2 February as at 8:00 am PST (Pacific Standard Time) Million v3 was released!!
-
React Jam just started, making a game in 13 days with React
>> React is not traditionally used for making games, but that's part of the fun and the challenge. R
> MS Flight Simulator cockpits are built with MSFS Avionics Framework which is React-like and MIT licensed:
https://github.com/microsoft/msfs-avionics-mirror/tree/main/...
preactjs may or may not be faster: https://preactjs.com/
Million.js is faster than preact, and lists a number of references under Acknowledgements: https://github.com/aidenybai/million#acknowledgments
https://million.dev/docs :
> We use a novel approach to the virtual DOM called the block virtual DOM. You can read more on what the block virtual DOM is with Virtual DOM: Back in Block and how we make it happen in React with Behind the block().*
React API reference > Components > Profiler:
-
My Journey to Accelerate Load Times in Heavy Frontend
Consider replacing the default virtual DOM with an alternative solution. For instance, Million.js
-
Welcome to the dark side. Ree.js awaits you!
@aidenybai 's Millionjs
-
Show HN: I made a tool that makes React faster automatically
In brief: I'm Aiden, 18, and have spent the past 2 years of high school working on Million.js, an open source React alternative with 11K stars on GitHub and hundreds of thousands of npm downloads.
Recently, I released automatic mode, which detects slow React components and automatically optimizes the reconciliation phase. It's still in beta but chugging along. It's around 70% faster than React on the JS Framework Benchmark and you can see how I did it here: https://million.dev/blog/virtual-dom
Interested? Check it out here: https://million.dev
-
What are your thoughts on Preact Signals? I've thoroughly enjoyed it but am now thinking of dropping it because it results in a fat stack of issues in the Next 13 server logs and because Dan Abramov himself advised against it. Nothing's broken, but it doesn't feel like it makes sense to use anymore
Either that or add signals to the library itself. I don't get why it isn't in there when a ton of React's competitors are either using signal-like behavior or forgoing the clearly-obsolete way React handles its VDOM. When a high schooler can create something to make the library faster, you know that the core team is either prioritizing the wrong things or someone managing React is too prideful to admit that a lot of what worked a decade ago doesn't work today.
- Million β Fast and lightweight virtual DOM that makes React up to 70% faster
-
Introducing Million.js - A Lightning-fast Virtual DOM for React!
Reference: https://million.dev/
- React Up to 70% Faster
What are some alternatives?
html2canvas - Screenshots with JavaScript
Vue.js - This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
dom-to-image - Generates an image from a DOM node using HTML5 canvas
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
react-heat-map - A lightweight calendar heatmap react component built on SVG, customizable version of GitHub's contribution graph.
canvg - JavaScript SVG parser and renderer on Canvas
React - The library for web and native user interfaces.
react-native-picture-puzzle - βοΈ π§© A picture puzzle component.
Rete.js - Rete.js is a framework for creating visual interfaces and workflows. It provides out-of-the-box solutions for visualization using various libraries and frameworks, as well as solutions for processing graphs based on dataflow and control flow approaches.
eruda - Console for mobile browsers
snabbdom - A virtual DOM library with focus on simplicity, modularity, powerful features and performance.