No internet connection
  1. Home
  2. Ideas

Turning media URLs into simple HTML previews of the resource

By Olti N @Itlox
    2018-11-28 18:51:36.837Z

    A feature that I would like to see here is that of turning media URLs into simple HTML previews of the resource. Something like the onebox feature of
    Onebox as a library is even free to use and can be implemented in other systems too
    Another one is oEmbed

    • 3 replies
    1. Hi Olti, nice hearing from you again :- )

      I think this is a good idea. In fact there is some basic support for oneboxes already, in Talkyard, but only for a few different things: YouTube videos, Giphy gifs, and images. If I paste a video link in a paragraph of its own:

      then, the viedo gets embedded:


      Thanks for the link to Discourse's Onebox plugin :- ) That plugin is written in Ruby, but Talkyard in Scala, so I cannot use it. I did have a look long ago, at how Discourse implements oneboxes (including looking at that plugin I think), and got some ideas from that.

      I didn't know about oEmbed. Apparently Discourse uses oEmbed tags. Jeff Atwood says: (

      Yes, onebox leverages OpenGraph and oEmbed tags, if present on the target site

      meaning, Talkyard should most likely do that too. So, at some later point in time, I'll look into oEmbed then :- ) Changing this topic to an Idea, status Planned.


      It'd be great to add more types of oneboxes :- ) For example, it should be possible to preview other Talkyard topics, and Discourse topics, and Wikipedia, ... Maybe Flarum? Reddit, HackerNews, WordPress, Ghost, Medium blogs. And ... maybe the way to make that happen, is ... If I make it simpler for other people to open-source contribute to Talkyard, so others can submit Git pull requests with oneboxes of their choice. I've noticed it takes too long for me to do "everything" myself :- P

      1. IOlti N @Itlox
          2018-12-20 17:19:14.118Z

          The very next thing to do here is to embed the links because you know, the most thing the users share are videos and links. For the videos you have the embedding implemented. The links are next. I like a lot how Discourse does this.

          Is it too much of work to achieve sometime soon?

          1. I also like how Discourse does it (and Slack and others). Well, it would not be too much work to implement this now soon, ... if there hadn't been "too many" other things to do, too :- P

            I have in mind to make it simpler to contribute to Ty, and hopefully find people (maybe freelancers) who can help out with development, so things like this will happen sooner

        • Progress
          with doing this idea
        • @KajMagnus marked this topic as Planned 2018-11-30 07:45:13.955Z.
        • I@Itlox marked this topic as Started 2018-12-20 17:12:01.060Z.
        • @KajMagnus marked this topic as Done 2018-12-30 10:48:21.141Z.
        • @KajMagnus marked this topic as New 2018-12-30 10:48:21.730Z.
        • @KajMagnus marked this topic as Planned 2018-12-30 10:48:22.442Z.