All Projects → yenly → foamy-nextjs

yenly / foamy-nextjs

Licence: other
Basic Foam + NextJS with MDX starter for building a digital garden

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to foamy-nextjs

obsidian-publish-mkdocs
A Template to Publish Obsidian/Foam Notes on Github Pages (uses MkDocs)
Stars: ✭ 219 (+277.59%)
Mutual labels:  foam, digital-garden
foam-template-gatsby-theme-primer-wiki
Another Foam template that use gatsby-theme-primer-wiki
Stars: ✭ 20 (-65.52%)
Mutual labels:  foam, digital-garden
digital-garden
당근마켓 공개 지식 저장소
Stars: ✭ 309 (+432.76%)
Mutual labels:  digital-garden
maggieappleton.com-V2
A digital garden built with Next.js, React, and MDX. Featuring loosely opinionated notes, half-formed ideas, and content that is always growing.
Stars: ✭ 163 (+181.03%)
Mutual labels:  digital-garden
4AxisFoamCutter
An open-source DIY 4 Axis Foam cutter using Ramps + Arduino for cutting RC Wing Cores.
Stars: ✭ 54 (-6.9%)
Mutual labels:  foam
Xuanwo
Learn, work and think in an open-source way!
Stars: ✭ 35 (-39.66%)
Mutual labels:  digital-garden
understory.garden
Understory is a digital garden, a micro-publishing space for you to plant the seeds of your ideas and grow them into bi-directionally linked web portals. It's a social zettelkasten that lets users use Web Monetization to get paid when people spend time with their content.
Stars: ✭ 27 (-53.45%)
Mutual labels:  digital-garden
garden
🌱 a place to think about digital gardening
Stars: ✭ 18 (-68.97%)
Mutual labels:  digital-garden
mycorrhiza
🍄📑 Filesystem and git-based wiki engine written in Go using Mycomarkup as its primary markup language.
Stars: ✭ 142 (+144.83%)
Mutual labels:  digital-garden
tweet-to-markdown
A command line tool to convert Tweets to Markdown.
Stars: ✭ 111 (+91.38%)
Mutual labels:  foam
gatsby-theme-primer-wiki
A Gatsby Theme for Wiki/Docs/Knowledge Base, which using Primer style as the UI theme, can work well with Foam or Obsibian or just markdown files.
Stars: ✭ 85 (+46.55%)
Mutual labels:  foam
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 (+203.45%)
Mutual labels:  mdx-js
garden
A digital garden prototype - my notes and links are here
Stars: ✭ 23 (-60.34%)
Mutual labels:  digital-garden
blue-book
My personal knowledge repository
Stars: ✭ 464 (+700%)
Mutual labels:  digital-garden
awesome-digital-gardens
Inspirational digital gardens and resources for building your own 🍄🌻🌺🌿🌷🌼🌳🌻🌷🌼🌼🌻
Stars: ✭ 77 (+32.76%)
Mutual labels:  digital-garden
hugo-documentation-theme
📖 Project Docs / Knowledge Base template for Hugo Website Builder. 创建项目文档
Stars: ✭ 101 (+74.14%)
Mutual labels:  digital-garden
simply-jekyll
A simple yet highly functional jekyll theme with backlinks, wiki-style links, context menu, page preview, sidenote etc
Stars: ✭ 153 (+163.79%)
Mutual labels:  digital-garden
.dev
รวมความรู้ด้าน Coding เป็นภาษาไทย
Stars: ✭ 20 (-65.52%)
Mutual labels:  digital-garden
quartz
🌱 host your own second brain and digital garden for free
Stars: ✭ 374 (+544.83%)
Mutual labels:  digital-garden
.com
Digital garden built using Next13, Typescript, and a bunch of goodies
Stars: ✭ 186 (+220.69%)
Mutual labels:  digital-garden

Foamy NextJS Starter

This starter combines Foam with NextJS. I built this using NextJS with MDX example repo as my base repo.

Getting Started

  1. Click on Use this template button
  2. Clone the repository locally
cd your-local-repo-name
npm install 
# or
yarn install

npm run dev
# or
yarn dev

Foam requires specific VS Code extensions for it to work properly. Open the repository as a folder using the File > Open... menu item. When prompted to install recommended extensions, click Install all (or Show Recommendations if you want to review and install them one by one).

Open index.md in /pages directory and edit to your heart's content. All other markdown files and notes folder are examples. Before doing so, I recommend clicking around to see how things work.

How to customize

I purposefully built this starter to be bare in styling and functionality to leave plenty of room to customize and build on top.

Basic Global styles

I used Gridlover to generate a typography system with modular scale and vertical rhythm. Add your preferred fonts, choose your own scale, and replace all styles in /styles/global.css between these comments

/* begin gridlover perfect fourth scale */
// ...
/* end gridlover perfect fourth scale */

Syntax highlighting theme

Add your preferred prism theme CSS file in /styles folder and import it to _app.js

import '../styles/prism-theme-night-owl.css'

You can convert your VS Code theme to use with this tool: VS Code to Prism Themes

Note: This uses prism-react-renderer for syntax highlight. It's set to use styles from css so the theme is set to null in CodeBlock component. Refer to prism-react-renderer FAQ for other methods.

CSS Styling Methods

NextJS uses CSS Modules by default. Next JS Docs: Built-In CSS Support on how to configure for other methods.

Siteconfig.js

siteconfig.js is used for populating site name in the Header and Layout components.

export default {
  "title": "Foamy NextJS",
  "description": "Digital Garden built with Foam and NextJS with MDX",
  "author": "Yenly Ma"
}

Remark and Rehype plugins

Add/remove plugins in next.config.js

const remarkImages = require('remark-images')
const remarkExternalLinks = require('remark-external-links')
const remarkFootnote = require('remark-numbered-footnote-labels')

const withMDX = require('@next/mdx')({
  extension: /\.mdx?$/,
  options: {
    remarkPlugins: [
      remarkImages,
      remarkExternalLinks,
      [remarkFootnotes]
    ]
  },
})

How to upgrade Foam

Fork the latest Foam template. Copy .vscode directory to your root level of your repo. Open your workspace and things should magically work. It's Foam's magic sauce. If not, try:

  • update VS Code extensions defined in .vscode/extensions.json
  • disable and enable extensions needed and restart VS Code

How to deploy

I pick this stack for its easy deploy to Vercel. To deploy under a sub-path on your domain, use basePath option.

Recommended Resources

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].