blurhash
mdx
Our great sponsors
blurhash | mdx | |
---|---|---|
41 | 99 | |
14,957 | 16,751 | |
0.9% | 1.2% | |
5.5 | 8.7 | |
27 days ago | 13 days ago | |
C | JavaScript | |
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.
blurhash
-
Generate thumbhash at edge for tiny progressive images
While it's similar to BlurHash, the color performance is much better for the same filesize. Here's a a demonstration of this from the demo page (with ThumbHash in the middle and BlurHash on the right):
-
How do you do these placeholder for loading images based on color?
+1 for blurha.sh
Take a look on blurhash also
The algorithm is even more impressive
There's also a cool lib by Wolt that creates a bit more fancy placeholders: https://github.com/woltapp/blurhash
-
How to make a hash of the images with blurhash python package and react
Package Link - https://blurha.sh
-
Migrating my website from Gatsby to Astro
No blurhash for images like Next or Gatsby
-
Blurhash: A compact representation of a placeholder for an image
The amount of work it takes to decode an image is incredibly tiny by today's standards: https://github.com/woltapp/blurhash/blob/master/C/decode.c
mdx
-
How to Enhance Content with Semantify
Semantify was made for content creators, marketers, and anyone looking to enhance their long-form written content. Currently only supporting MDX-based content, It automates the enrichment of MDX blog posts by adding AI-generated Q&A sections that summarize the content, and recommendations for semantically similar posts. This not only makes the content more accessible and engaging but also helps in establishing deeper connections between different posts, ultimately keeping the reader engaged for longer periods.
-
No CMS? Writing Our Blog in React
https://mdxjs.com/
> We thought this would be a no-brainer and that there would be some CMS/SSG libraries out there that made this Markdown conversion process easy and facilitated integration with any number of frontend frameworks.
You thought correct:
- NextJS MDX integration: https://nextjs.org/docs/pages/building-your-application/conf...
-
Introducing Content Collections
The example above uses react-markdown, but you can use any library you want to render the markdown content. You can also use a transform function to modify the markdown content during the build process. Here is an example that uses MDX to compile the markdown content.
-
Creating a static Next.js 14 Markdown Blog - An Adventure
MDX is a js library that allows us to import a markdown file as a react component and use it anywhere.
- Nota is a language for writing documents, like academic papers and blog posts
-
WYSIWYG for MDX?! Introducing Vrite's Hybrid Editor
That’s why formats like Markdown (MD) and MDX (MD with support for JSX) are so popular for use cases like documentation, knowledge bases, or technical blogs. They allow you to use any kind of custom formatting or elements and then process the content for publishing. On top of that, they’re great for implementing a docs-as-code approach, where your documentation lives right beside your code (i.e. in a Git repo).
-
Build a blog app with new Next.js 13 app folder and Contentlayer
MDX
-
Markdown, Asciidoc, or reStructuredText - a tale of docs-as-code
Last, but certainly not least, among my favorite frameworks is the family of frameworks based on MDX. Before that, let’s understand what is MDX and how does it vary from MD.
-
Blogging with Next.js and MDX: The ultimate combination for dynamic content
Are you a developer looking to create a blog or personal website that is both easy to maintain and visually appealing? Look no further than using Next.js and MDX!
-
Contentlayer with next/image
My first reaction was to use MDX and use next/image just as in the example. But that means that we can't use normal markdown images and it turns out that this won't work with contentlayer. This wont work, because Next.js does some magic on the import of the static image. The object which gets returned by the import, contains not only a path to the image, it contains also the width and height, plus a very small version of the image for the blurred placeholder. This magic does not work if the MDX file is loaded with contentlayer, because contentlayer uses its own bundler, which does not know about the import magic for images.
What are some alternatives?
next-mdx-remote - Load mdx content from anywhere through getStaticProps in next.js
remark-gfm - remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)
astro - The web framework for content-driven websites. ⭐️ Star to support our work!
markdoc - A powerful, flexible, Markdown-based authoring framework.
emoji-shortcodes-for-markdown - 1000+ Emoji Finder app for Markdown, GitHub, Campfire, Slack, Discord and more...
eleventy 🕚⚡️ - A simpler site generator. Transforms a directory of templates (of varying types) into HTML.
pandoc - Universal markup converter
mdx-bundler - 🦤 Give me MDX/TSX strings and I'll give you back a component you can render. Supports imports!
remark-math - plugins to support math
Hugo - The world’s fastest framework for building websites.
SvelteKit - web development, streamlined
remark-html - plugin to add support for serializing HTML