Skip to content

Just a Markdown editor that renders exactly like GitHub Readme. No more manually typing badges. No more broken formatting. Just peace.

License

Notifications You must be signed in to change notification settings

brennercruvinel/prettyeyes

Repository files navigation

PrettyEyes

Version React TypeScript Vite PRs Welcome

WIP 65% DONE - Watch out for bugs

What is PrettyEyes?

A WYSIWYG Markdown editor that finally doesn't make me want to cry while creating GitHub READMEs.

prettyeys.mp4

You know the drill...

๐Ÿคฆ Open VS Code โ†’ Write raw Markdown for 2 hours
๐Ÿ˜ค Try online editor โ†’ "Rendering failed" for the 15th time
๐Ÿ™„ Use Notion โ†’ Copy, paste, format again, pray
๐Ÿ˜ญ Final result โ†’ "Why doesn't this badge align?!"

I'm done. Done with Markdown editors that:

  • Don't show how it'll look on GitHub
  • Break with tables
  • Have terrible syntax highlighting
  • Make me cry debugging generated HTML

So I built PrettyEyes - an editor that renders exactly like GitHub, with everything I need and nothing I don't.

Quick Links

โœจ Features

The Good Stuff

Things that make me happy using this

โœ… True WYSIWYG - What you see IS what you get on GitHub
โœ… GitHub Flavored Markdown - Full support, zero surprises
โœ… Smart Import - Drop HTML, Markdown or text - it figures it out
โœ… Live Preview - See Markdown being generated in real-time
โœ… Syntax Highlighting - Code blocks that don't hurt your soul

The Really Good Stuff

Things that save me time

๐Ÿš€ Command Palette - / and everything you need appears
๐ŸŽจ Rich Media - Images, badges, tables without drama
โšก Export Ready - .md, .html, .txt - you choose
๐Ÿง  Content Detection - Paste anything, it fixes it
๐Ÿ“ Document Structure - Visual sidebar with drag-and-drop reordering
๐ŸŽฏ Quick Templates - One-click README sections insertion

๐Ÿš€ Getting Started

The Lazy Way (Recommended)

# Clone and run
git clone https://github.com/brennercruvinel/prettyeyes.git
cd prettyeyes
npm install
npm run dev

That's it. Opens at http://localhost:5173 and be happy.

Requirements

  • Node.js 18+ (if you don't have it, get it here)
  • npm or yarn (whatever you prefer)
  • Patience with my bugs (work in progress ๐Ÿ˜…)

๐Ÿ’ก How It Works

Basic Editing

  1. Write - Like any normal editor
  2. Format - Select text โ†’ toolbar appears
  3. Commands - Type / โ†’ magic happens
  4. Export - Download button โ†’ README ready

Keyboard Shortcuts

Because mouse is overrated:

  • Bold: Ctrl/Cmd + B
  • Italic: Ctrl/Cmd + I
  • Code: Ctrl/Cmd + E
  • Link: Ctrl/Cmd + K
  • Command Palette: / (the most important one)

Real World Example

You now:

  1. Open VS Code
  2. Create README.md
  3. Type markdown manually
  4. Pull your hair trying to align badges
  5. Commit and pray it doesn't break

With PrettyEyes:

  1. Open the editor
  2. Write like it's Word
  3. Download the .md
  4. Profit โœจ

The New Sidebars

Left Sidebar - Document Structure

  • See all your document sections at a glance
  • Drag and drop to reorder blocks
  • Click to jump to any section
  • Real-time updates as you type

Right Sidebar - Quick Templates

  • Pre-built README sections
  • Installation, Usage, Contributing, License, etc.
  • Click to insert formatted templates
  • No more copy-pasting from other READMEs

๐Ÿ› ๏ธ Tech Stack

Choices I don't regret

  • React 19 - Because new is always better (until it breaks)
  • TypeScript - Mental sanity > 5 minutes of setup
  • Vite - Fast build = happy developer
  • TailwindCSS 4 - CSS that works without hating me

Editor Magic

  • TipTap - The heart of the whole thing
  • Marked - Markdown parser that doesn't lie
  • Lowlight - Syntax highlighting that actually works
  • DOMPurify - Because XSS is not my friend
  • @dnd-kit - Drag and drop that just works

๐Ÿ“ Project Structure

prettyeyes/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/
โ”‚   โ”‚   โ”œโ”€โ”€ TipTapEditor/          # The engine
โ”‚   โ”‚   โ”œโ”€โ”€ Sidebar/               # Document structure & templates
โ”‚   โ”‚   โ””โ”€โ”€ Preview/               # Where magic becomes reality
โ”‚   โ”œโ”€โ”€ hooks/
โ”‚   โ”‚   โ””โ”€โ”€ useEditorState.ts      # Editor state management
โ”‚   โ”œโ”€โ”€ utils/
โ”‚   โ”‚   โ””โ”€โ”€ markdownProcessor.ts   # Markdown to HTML conversion
โ”‚   โ”œโ”€โ”€ styles/
โ”‚   โ”‚   โ””โ”€โ”€ globals.css           # CSS that doesn't break
โ”‚   โ””โ”€โ”€ App.tsx                   # Where everything comes together
โ”œโ”€โ”€ public/                       # Static assets
โ””โ”€โ”€ package.json                  # Dependencies (many)

๐Ÿค” Why I Built This

The Honest Story

I was creating a README for a project and thought: "This'll be quick, just basic markdown".

3 hours later...

  • 47 attempts to align badges
  • 12 online editors tested
  • 1 near breakdown in Notion trying to export
  • โˆž frustrations with preview that doesn't match the result

Conclusion: Markdown editors are made by people who don't use GitHub or enjoy suffering.

The Solution

I decided to make an editor that:

  • Renders EXACTLY like GitHub
  • Doesn't force me to memorize syntax
  • Works offline (because internet sometimes doesn't)
  • Is simple - does one thing and does it well

If you're also tired of:

  • Writing ![](https://img.shields.io/badge/...) by hand
  • Counting spaces to align tables
  • Finding out your README broke after 3 commits

This editor is for you.

๐ŸŽฏ Supported GitHub Elements

Because GitHub != Standard Markdown

โœ… Headers (H1-H6) - All sizes
โœ… Text Formatting - Bold, italic, strike, code
โœ… Lists - Ordered, unordered, task lists โœ“
โœ… Code Blocks - With real syntax highlighting
โœ… Tables - That don't break (miracle!)
โœ… Images & Badges - Drag, drop, done
โœ… Links - Smart auto-linking
โœ… Blockquotes - For epic quotes
โœ… GitHub Alerts - NOTE, TIP, WARNING, etc.

โšก Performance

Numbers That Matter

  • Initial Load: ~2s (with decent internet)
  • Editor Response: <100ms for any action
  • Export Time: Instantaneous (up to 50MB content)
  • Memory Usage: ~30MB (less than a Chrome tab)

๐Ÿค Contributing

TL;DR: Got an idea? Send it!

I accept everything:

  • ๐Ÿ› Bug reports (the more detailed, the better)
  • ๐Ÿ’ก Feature requests (even if they seem impossible)
  • ๐Ÿ”ง Code improvements (all help is welcome)
  • ๐Ÿ“š Documentation (if you understood something, document it!)
  • ๐ŸŽจ UI/UX suggestions (design isn't my strong suit)

Quick Contribution Guide

# Fork โ†’ Clone โ†’ Branch
git checkout -b feature/my-genius-idea

# Code โ†’ Test โ†’ Commit
git commit -m "Add: amazing thing that will change everything"

# Push โ†’ PR โ†’ Party

What I Need Help With

  • Tests (I know, I know...)
  • Accessibility (a11y)
  • Mobile responsiveness
  • Performance optimizations
  • More README templates

๐Ÿ› Known Issues

Because honesty is important:

  • Import of some complex HTMLs might break
  • Mobile still kinda wonky
  • Undo/Redo sometimes gets lost
  • No white dark mode (I know, I know...)

๐Ÿ”ฎ What's Next

Just the basics to make it better:

  • Mobile fixes
  • Better file import/export
  • Maybe some README templates

That's it. It's a simple Markdown editor, not a spaceship.

๐Ÿ“Š Stats

Feature Competitors PrettyEyes
GitHub accuracy 60-80% 99%+
Setup time 10-30 min 30 sec
Learning curve Steep Flat
Bugs per session 3-5 0-1
Developer happiness ๐Ÿ˜ ๐Ÿ˜

๐Ÿ“„ License

MIT License - basically: do whatever you want, just don't sue me.

๐Ÿ’Œ Final Words

If this editor saved you 10 minutes creating a README, it was worth the effort.

If it saved you 2 hours (like it saved mine), consider giving it a โญ - it's free and motivates me to continue.

If you found a bug, open an issue. If you have an idea, share it. If you want to contribute, go for it.

Happy README writing! ๐Ÿš€


Built by a developer tired of writing ![](https://img.shields.io/badge/...) by hand

About

Just a Markdown editor that renders exactly like GitHub Readme. No more manually typing badges. No more broken formatting. Just peace.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages