DEV Community

uni928
uni928

Posted on Edited on

Share Discord. One-Click Viewing for Recipients, No File Upload Required.(Free to use)

This article introduces a simple document-sharing method that benefits both sides:

  • Recipients can view formatted documents with one click.
  • The person sharing the document does not need to upload a file.

The process is simple.

Markdown created with AI is compressed and encoded in Base64, then embedded in a URL. A Discord-ready message is automatically generated in the following format:

[View the document](<URL containing the compressed and Base64-encoded Markdown>)
Enter fullscreen mode Exit fullscreen mode

When shared on Discord, the recipient sees only a simple link such as “View the document.”

By clicking the link, the recipient can view the Markdown as a formatted document, including headings, bold text, bullet points, and other formatting.

You can choose from multiple fonts. Disable Japanese fonts if necessary.

Sample

(For illustration only. Actual text use under 1,920 characters and use the []() format.)

GitHub


How to Share a Document

First, visit the website below. You can use it simply by accessing the site—no login or installation is required.

https://uni928.github.io/Uni928PublicHTMLs/index80English3.html

Next, ask ChatGPT or another generative AI to create a document in Markdown format.

For example, you can ask:

Please create a simple document in Markdown format that can be shared on Discord about [topic].
Enter fullscreen mode Exit fullscreen mode

Paste the generated Markdown.

Clicking “Save in URL” creates a Discord-ready link in the following format:

[View the document](<URL containing the compressed and Base64-encoded Markdown>)
Enter fullscreen mode Exit fullscreen mode

The generated text is copied to your clipboard.

You can then paste it directly into Discord.

Instead of displaying the full, lengthy URL, Discord shows it as a simple link such as “View the document.”


Discord Allows You to Give Links a Name

Discord supports Markdown links in the following format:

[View the document](<URL>)
Enter fullscreen mode Exit fullscreen mode

For example:

[View the document](<URL containing the compressed and Base64-encoded Markdown>)
Enter fullscreen mode Exit fullscreen mode

When you post this message, the recipient sees it as a link labeled “View the document.”

This makes it possible to share even very long URLs with a clean and simple appearance on Discord.


Store AI-Generated Markdown Inside a URL

The website introduced in this article compresses the Markdown text, encodes it in Base64, and embeds the resulting data in the URL.

The sharing process is therefore:

  1. Ask ChatGPT or another AI to create a document in Markdown format.
  2. Paste the Markdown into the website.
  3. Create a sharing URL.
  4. Paste the generated message into Discord.

In other words, you can let someone view a document using only a URL, without creating or uploading a separate Markdown, PDF, or HTML file.

This makes it possible to go from creating a document with ChatGPT to sharing it on Discord with relatively few operations.


Fewer Steps Than Conventional Document Sharing

Generative AI tools such as ChatGPT make it easy to create explanations, instruction manuals, and simple reports in Markdown format.

However, sharing such documents on Discord may sometimes require additional steps, such as:

  • Saving the content as a Markdown file
  • Converting it to HTML or PDF
  • Uploading the file to Discord
  • Moving it to Google Docs or another document service

With this method, the Markdown is stored directly inside the URL instead.

For a simple text-based document, you can share it with a short message such as:

Here are the details.

[View the document](<URL>)
Enter fullscreen mode Exit fullscreen mode

Suitable Use Cases

I find this method particularly useful for the following purposes:

  • Simple explanatory documents created with AI
  • Work instructions
  • Explanations of game or community rules
  • Sharing development-related information
  • Organizing long Discord posts into a more readable format
  • Notes that only need to be shared temporarily
  • Organizing the results of a discussion with ChatGPT

Compared with posting a long message directly in Discord, this method helps keep the original post short and easy to read.


How to Use It

The website is available here:

Create a Viewing Page from Markdown

The basic steps are as follows:

  1. Enter a document title and the Markdown text of the document.
  2. Click “Save in URL.”
  3. If you want to share the document for viewing, click Copy the “View the document” link for Discord.
  4. Paste the copied text into Discord.
  5. Discord displays it as a link labeled “View the document.”
  6. The recipient can view the document simply by clicking the link.

Because the document text itself is stored inside the URL, you do not need to send a separate document file.


Limitations

With this method, the Markdown text itself is compressed, encoded in Base64, and included in the URL.

Therefore, considering the maximum URL length that can be handled by browsers, Discord, and other services, the compressed and Base64-encoded data embedded in the URL is currently limited to fewer than 1,920 characters.

Embedding image data as Base64 would make the URL extremely long.

For this reason, it is difficult to use image embedding practically when sharing documents through URLs.

This method is intended for:

Easily sharing text-based documents created with AI on Discord

It is not intended to replace full-scale online storage or document-sharing services.

For simple documents that mainly consist of text, however, it can be a convenient option.

Also, when the document content is changed, you generally need to create a new URL. Therefore, this method is not suitable for continuously updating the content associated with the same URL.


For Those Who Want to Check the Code or Prioritize Security

The source code is publicly available on GitHub.

👇 GitHub

https://github.com/uni928/Uni928PublicHTMLs/blob/main/index80English3.html

If you want to check whether the code contains suspicious data transmission to external services or malicious code, you can inspect the source code and communication destinations yourself.

As an additional method, you can download the HTML file, attach it to ChatGPT or another AI service, and ask:

Please check whether this HTML contains suspicious data transmission to external services or malicious code.
Enter fullscreen mode Exit fullscreen mode

However, an AI-based check alone cannot completely guarantee the safety of the code.

If you use it for an important purpose, please inspect the code and communication destinations yourself as well.

If You Want to Prioritize Security Even Further

If you want to take additional security precautions, you can:

  1. Download the HTML file from GitHub.
  2. Check the code and communication destinations.
  3. Ask an AI service to perform an additional review if necessary.
  4. Host the file on your own GitHub Pages or another environment you control.

This approach allows you to use your own copy without worrying about future changes to the code on the original website.


You Can Customize It for Your Own Use

Because the HTML source code is publicly available, you can use ChatGPT or another AI service to make changes such as:

  • Changing the design
  • Removing unnecessary buttons
  • Changing the input method
  • Adding Discord-related features
  • Adding document templates for personal use

Adjusting the tool to suit your own workflow is another option.

If you create and publish an even more convenient version, I would be happy to try it, so please let me know.

If you publish a modified version based on this repository, please follow the conditions of the MIT License.

You must include the copyright notice and the MIT License text.


Conclusion

With this method, documents can be shared as follows:

For the person creating and sharing the document

Create Markdown with AI → Paste it into the website → Paste the generated message into Discord

For the person viewing the document

Click “View the document”

This method is particularly suitable when you want to easily share a simple, text-based document created with AI on Discord.

👇 The website is available here:

Create a Viewing Page from Markdown

For Those Who Want to Review the Code or Prioritize Security

👇 GitHub

https://github.com/uni928/Uni928PublicHTMLs/blob/main/index80English3.html

The GitHub source code is available for anyone who would like to inspect it themselves and check whether it contains any malicious or suspicious code.

While this does not guarantee a comprehensive security review, another option is to provide the code to ChatGPT or a similar AI tool and ask it to check for potentially malicious behavior, suspicious network requests, or other security concerns before running it locally.

You can also use ChatGPT or similar tools to customize the code to better suit your own needs before using it.

Whether you customize it or not, another option is to host it on your own GitHub Pages site or server.

If you create an improved or more convenient version and make it publicly available, I would be happy to try it as well.

If you publish a modified version based on this repository rather than a completely independent rewrite, please make sure to comply with the terms of the MIT License.

Top comments (0)