Git Product home page Git Product logo

post-paper's Introduction

post-paper

Note

This project started off as a learning experience (succeeded on that part) and it has been archived for now as I don't have the motivation anymore to maintain and implement new features to it. I decided to forward my abitions towards an another similiar community based website. If you don't see any blogs then it is a sign that the database is not active anymore.

About

Postpaper is a posting platform prototype where people can edit their posts in a vim editor along with a real-time Rust powered markdown preview.

Showcase videos are located in the /showcase directory.

The markdown parsing is established by a fork of a Rust project called markdown-rs that is compiled down to WebAssembly and then ran in a web worker environment and for seamless coconut oil experience.

Here is a simple visualization of the data flow:

       raw markdown string                        string > mdast > hast                   hast is also received by the editor, the scroll between the editor and md preview is syncronised by the hast offset
Editor >> web worker with markdown-rs WebAssembly >> Prose preview renders real-time HTML >> Editor loopback

The goal for the real-time parsing was ~65000 characters of diverse markdown parsed below an unnoticeable delay of 40ms on my old rusty laptop. pun intended

Succeeded on that part as well :D

Build commands

See /build-project.sh

License

Except where explicitly stated (in individual files) otherwise, all contributions in this repository are licensed under:

MIT License

Placeholder blogs were generated by ChatGPT.

post-paper's People

Contributors

dominik-stumpf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.