Giter VIP home page Giter VIP logo

goshify's Introduction

Goshify

hashify.me without JavaScript and optional hosting

What

Goshify takes Base 64-encoded Markdown in a URL and turns it into HTML. It's similar to hashify.me, but without the editor and without the requirement for JavaScript on the client side.

Additionally, it can save your stuff for easier recalling, without giant URLs involved.

Why

Hashify can be used to quickly put up a short document written in Markdown. As an added benefit, the document is self-contained in its URL. However, for people to see that page, their browsers must have JavaScript enabled, and they must download quite a bit of it, plus some assets for the Hashify editor.

Goshify removes the JavaScript requirement by doing the conversion to HTML server-side. All the browser needs to do is render some HTML and CSS. As for the editor, you can keep using the Hashify one, which is pretty good, or any other of your liking.

How

In the following examples,

QSBzYW1wbGUgZG9jdW1lbnQ=

is the document encoded in Base-64 as Hashify does it.

To present a document, as Hashify does:

http://goshify.tny.im/d/QSBzYW1wbGUgZG9jdW1lbnQ=

To store this document for easier recalling:

http://goshify.tny.im/s/QSBzYW1wbGUgZG9jdW1lbnQ=

You'll be given an ID to recall this document later.

You can also make a POST request with the raw Markdown (Base 64 encoded or not) to

http://goshify.tny.im/s

To recall a document:

http://goshify.tny.im/l/352c706a-bffc-4da0-a75e-e5b429a9c5ae

Where 352c706a-bffc-4da0-a75e-e5b429a9c5ae is the ID that was returned in the storing step. If a document with the specified ID doesn't exist, a 404 is returned.

To recall the Base 64-encoded document, as it was saved (for example, for editing it in Hashify):

http://goshify.tny.im/r/352c706a-bffc-4da0-a75e-e5b429a9c5ae

But this is not a REST API!? Nobody said it was :) It is designed to be easy to use by a human fiddling with the address bar of any web browser.

How, how

Goshify is just a simple, 150 line Go program... Here's the GitHub. It uses:

Who

Segvault, part of tny. internet media.

goshify's People

Contributors

gbl08ma avatar

Stargazers

Gerardo Lisboa avatar Antonio Bernardini avatar  avatar ashfinal avatar Vansh Dassani avatar Zack avatar Cody avatar Eli Mellen avatar A. Hassan avatar  avatar

Watchers

James Cloos avatar  avatar Humza Bobat avatar Eli Mellen avatar  avatar

Forkers

schollz

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.