All Projects → domitriusclark → Mdnext

domitriusclark / Mdnext

The opinionated ecosystem for MDX powered NextJS apps for blogs, documentation, and more.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Mdnext

Personal-Site-Gourav.io
My personal site & blog made with NextJS, Typescript, MDX, Tailwind CSS. Deployed on Vercel : https://gourav.io
Stars: ✭ 64 (-73.55%)
Mutual labels:  nextjs, mdx
Mastering Nextjs
A free video course for building static and server-side rendered applications with Next.js and React.
Stars: ✭ 256 (+5.79%)
Mutual labels:  mdx, nextjs
next-mdx-digital-garden-starter
An opinionated starting point for Digital Garden content authoring.
Stars: ✭ 50 (-79.34%)
Mutual labels:  nextjs, mdx
next-mdx
next-mdx provides a set of helper functions for fetching and rendering local MDX files. It handles relational data, supports custom components, is TypeScript ready and really fast.
Stars: ✭ 176 (-27.27%)
Mutual labels:  nextjs, mdx
Nextra
The Next.js Static Site Generator
Stars: ✭ 1,271 (+425.21%)
Mutual labels:  mdx, nextjs
Mdx Docs
📝 Document and develop React components with MDX and Next.js
Stars: ✭ 412 (+70.25%)
Mutual labels:  mdx, nextjs
blog
Tech Blog (moved to zenn.dev/hellorusk)
Stars: ✭ 29 (-88.02%)
Mutual labels:  nextjs, mdx
Mdx Embed
Embed 3rd party media content in MDX - no import required 🧽
Stars: ✭ 119 (-50.83%)
Mutual labels:  mdx, nextjs
Blog.hellorusk.net
Tech Blog
Stars: ✭ 28 (-88.43%)
Mutual labels:  mdx, nextjs
Egghead Next
The frontend for egghead.io.
Stars: ✭ 896 (+270.25%)
Mutual labels:  mdx, nextjs
Leerob.io
✨ My portfolio built with Next.js, MDX, Tailwind CSS, and Vercel.
Stars: ✭ 1,369 (+465.7%)
Mutual labels:  mdx, nextjs
Tailwind Nextjs Starter Blog
This is a Next.js, Tailwind CSS blogging starter template. Comes out of the box configured with the latest technologies to make technical writing a breeze. Easily configurable and customizable. Perfect as a replacement to existing Jekyll and Hugo individual blogs.
Stars: ✭ 166 (-31.4%)
Mutual labels:  mdx, nextjs
Connext Js
A middleware and route handling solution for Next.js.
Stars: ✭ 211 (-12.81%)
Mutual labels:  nextjs
Digital Garden
🌻[WIP] Gatsby Theme to build your own digital garden 🌻🥀🌸
Stars: ✭ 217 (-10.33%)
Mutual labels:  mdx
Nobibi
一款基于Next.js+mongo的轻量级开源社区(open community by Next.js & mongo)
Stars: ✭ 209 (-13.64%)
Mutual labels:  nextjs
Mordred
[Experimental] Source data from anywhere, for Next.js, Nuxt.js, Eleventy and many more.
Stars: ✭ 208 (-14.05%)
Mutual labels:  nextjs
Next Ga
Next.js HOC to integrate Google Analytics on every page change
Stars: ✭ 228 (-5.79%)
Mutual labels:  nextjs
Useauth
The simplest way to add authentication to your React app. Supports various providers.
Stars: ✭ 2,532 (+946.28%)
Mutual labels:  nextjs
Im.dev
im.dev是一个开源技术社区,支持内容创作、社交互动、在线课程等功能。我是开发,我为技术代言。
Stars: ✭ 206 (-14.88%)
Mutual labels:  nextjs
Kap
An open-source screen recorder built with web technology
Stars: ✭ 14,488 (+5886.78%)
Mutual labels:  nextjs

mdnext

MDNEXT is an ecosystem of tools to get your NextJS + MDX projects blasting off 🚀




Quick start 🚀

Looking to start a new project?

# Using NPX we'll start up the mdnext CLI prompts --
npx mdnext

# You will first be prompted with.. --
What is the name of your project?

# Then you will choose which template to use
Select which template to use ...

Just want to access components in your MDX based apps?

# Even though we're a Next based ecosystem, our `MDX` components should be usable in most React based applications

yarn add @mdnext/components

or

npm i @mdnext/components

What is MDNEXT? 🤔

mdnext is an ecosystem of tools to empower working with NextJS + MDX.

The mdnext CLI surfaces a collection officially maintained and community submitted templates to choose from. Once chosen, the project is cloned locally with a clean commit history and you're ready to build your next project.

@mdnext/components delivers accessible (thanks ChakraUI) and extendable components for working with MDX. These include things you've seen like Code components for styling code blocks or Iframes for embedding rich content to MDX

The mdnext template collection are NextJS based projects with opinions around how to style, handle MDX (and other data sources), deliver media, and handle your most usual workflows (ecomm / blogs / product pages). While there is an officially maintained collection of templates, I was excited to see and share what the community has created. I know there's many different opinions and comfortabilities as a web developer and want our ecosystem to be accessible.

Understanding MDNEXT 📓

The basic structure of the mdnext-starter can be seen throughout all other templates at it's core of how it utilizes MDX and Next.

Getting to know this structure will help inform you of the current best practices that are being followed (which are free to interpretation!) and easy enough to plug and play. Let's dive into the starter:

jsconfig.js

NextJS lets us configure absolute paths for our app. We use this to easily import all of our functions and utilities inside of our src directory

pages

The pages directory defines your routing. Lifecycle methods like getStaticProps / getStaticPaths / getServerProps are available at the page level. This is where we consume our MDX content as data to pass to our components.

  • *_app.js* NextJS allows you to override the App component, which is used to initialize pages. More here
  • *_document.js*: Allows you to augment our application's <html> and <body> tags.
  • all-data/index.js: This page is an example of displaying links to all of your individual MDX data pages. Here we use getStaticProps to feed the frontmatter of our MDX files for our components.
  • data/[slug].js: Here we utilize NextJS dynamic routing. By using getStaticPaths we're able to feed a dynamic slug, handling all of the logic once and applying it to each MDX data that we load. This allows us to then match to our data in getStaticProps and display that to the page and our components.
  • index.js: Our page at the root of our app, lives inside of the pages directories index.js.

src  Our src directory holds all of our client code. Our components, custom hooksutility functions, and our MDX files all live here, with the first three available for absolute path imports 👍

next.config.js For custom configuration around things like environment variableswebpackpageExtensions, and many more, you can utilize next.config.js

Each template will have it's own README with explicit documentation pertaining to the additions that make up the new configuration. Otherwise, you will find each template at it's core, starts similarly to mdnext-starter

Templates 🏗️

The templates inside of mdnext were made to alleviate the friction when starting a new website. Blogs, personal sites, client work, etc can always feel very daunting to get started on.

What do we have to accomplish?

How do we handle styling?

How am I going to handle data?

What's the best way to integrate authentication?

The opinions in these templates will get you started quickly and allow you to customize however you see fit.

Our currently maintained templates:

  • mdnext-starter This is the least opinionated template, that all templates are created from. It houses very minimal configuration and opinion outside of an example of sourcing MDX inside of getStaticProps/Paths
  • mdnext-blog The blog templates adds features on top of our mdnext-starter . Specifically using Chakra-UIfor styling. Configuration for blogs posts at the page and content level using our MDX files as routes. FuseJS for filtering our blogs posts. Check this template out in action!
  • mdnext-overlays When becoming a new streamer you are met with many challenges. Eventually you're going to want to setup your own Scenes, animations, and interactions for your stream and it's viewers. Why not use the tools you love to create them? With this configuration you're set up with a base layer for configuring each new scene as a route. Each route contains ways to interact with Twitch API's, your Twitch chat, and information surrounding your stream and it's events!

Our community submitted templates:

  • mdnext-tailwind Want to get up and running quickly with a Tailwind + mdnext project? This is the answer. A proper config alongside a collection of resources to get those new to Tailwind feel comfortable!
  • mdnext-twin-macro This starter is configured with twin.macro as it's choice of styling. This allows you to utilize Tailwind's utility classes and emotion's css method for one off styles.
  • mdnext-graphcms Utilizing GraphCMS as our datasource, we setup the basics for a blog. It starts you off with a simple example of how you can pull Markdown from GraphCMS and feed it to our UI with our MDX
  • mdnext-reflexjs Reflexjs is a styling library built for speed and excellent developer experience. You can style your components using style props and constraints based on the System UI specifications.

Want to submit a new template? Head over to our Contributing section and check out mdnext-starter

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].