Test social media cards locally

Overview

Share Preview
Share Preview

Please do not theme this app GitHub Donate Liberapay

Test social media cards locally

Download on Flathub

Description

Preview and debug websites metadata tags for social media share.

Third Party Packages

Distribution Package Maintainer
Arch Linux (AUR) share-preview, share-preview-bin Archisman Panigrahi

Build from source

  • You can clone and run from GNOME Builder.

Requirements

TODO

  • Alternatively, use the following commands to build it with meson.
meson builddir --prefix=/usr/local
sudo ninja -C builddir install

Credits

Developed by Rafael Mardojai CM and contributors.

Translations

If your language is missing or incomplete, please help to translate Share Preview.

Donate

If you want to support development, consider donating via PayPal.

Comments
  • Add AUR to README

    Add AUR to README

    I have made two AUR packages for Arch Linux and derivatives.

    The package share-preview downloads the source and compiles with Rust (it takes quite a while to compile, and the compiled libraries take 2.5 GB space, like most other Rust apps :worried:. However they can be easily cleaned with the package manager. ).

    That is why, I have also made the share-preview-bin package with the compiled binary (only a 2 MB download :smiley:, and 5.8 MB when installed ). I have uploaded the compiled binary to my fork.

    opened by apandada1 10
  • Crashes when trying to preview https://cockpit-project.org/

    Crashes when trying to preview https://cockpit-project.org/

    I get a crash every time when I try to preview https://cockpit-project.org/ or one of its blog posts, such as https://cockpit-project.org/blog/cockpit-244.html

    I'm not sure if something is just wildly wrong with what I'm doing on website or if I just happen to triggering an issue in Share Preview. (Either way, Share Preview shouldn't crash.)

    And also: thanks for this app! It looks very useful. I'm looking forward to finally fixing https://github.com/cockpit-project/cockpit-project.github.io/issues/224 (it's been on my TODO backburner for quite some time), thanks to Share Preview.

    bug 
    opened by garrett 4
  • UI: Fix GNOME HIG issue

    UI: Fix GNOME HIG issue

    To short: We don't need to add ellipses for actions.

    Ellipses useful when "if further input or confirmation is required from the user before the action can be carried out".

    https://developer.gnome.org/hig/guidelines/writing-style.html

    opened by sabriunal 1
  • Twitter uses og: when no twitter: is present

    Twitter uses og: when no twitter: is present

    The app says “Card Error” when a page contains og: stuff but no twitter: stuff. Twitter falls back to opengraph when there’s no twitter card data on the page.

    opened by da2x 1
  • Doap file missing

    Doap file missing

    A share-preview.doap file is missing. Note that it has to have the same name/capitalization as the GitHub repository.

    For the maintainer to appear in Apps for gnome it must be in the form

      <maintainer>
        <foaf:Person>
          <foaf:name>User Name</foaf:name>
          <foaf:mbox rdf:resource="mailto:[email protected]" />
          <gnome:userid>gnome-user-acc</gnome:userid>
          <foaf:account>
            <foaf:OnlineAccount>
                <foaf:accountServiceHomepage rdf:resource="https://github.com/"/>
                <foaf:accountName>user-github-acc</foaf:accountName>
            </foaf:OnlineAccount>
          </foaf:account>
        </foaf:Person>
      </maintainer>
    
    opened by A6GibKm 1
  • Dark toggle button should not remain active

    Dark toggle button should not remain active

    The dark toggle button is currently inactive when in light mode, and active when in dark mode. That's a bit weird IMO, since the two views are semantically at the same level.

    A potential alternative could be what Icon Library does, where the button doesn't stick but the icon changes between a filled and an outline sun.

    enhancement 
    opened by bertob 1
  • help-overlay: Remove excessive action

    help-overlay: Remove excessive action

    We don't need an extra action to show help-overlay. It already managed by GTK.

    Source: https://docs.gtk.org/gtk4/class.Application.html#automatic-resources

    opened by sabriunal 0
  • Desktop file: Add comment & keywords

    Desktop file: Add comment & keywords

    I keep forgetting what this app is called, and searching for terms like “social” and “link” to find it. The term "social” appears in the appstream file, but not in the desktop file. The Comment and Keywords fields are used (in addition to the app's name) when performing a desktop search on GNOME.

    The AppStream field is defined as follows:

    A short summary on what this application does, roughly equivalent to the Comment field of the accompanying .desktop file of the application.

    https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Application.html#tag-dapp-summary

    So it is reasonable (and in my experience quite common) to set the desktop file's comment to the same string. This also means that the same translations can be used in both places.

    I have added the other terms that come to mind to the desktop file's keywords. "Unfurl" is the term that Slack uses. The others are, I hope, self-explanatory. At build time, the keywords from the .desktop file will be added to the repository (eg Flathub)'s appstream XML, so the app will be findable in GNOME Software with these terms as well.

    (Personally I would remove the terms "GNOME" and "GTK" from the keywords.)

    opened by wjt 0
  • Discourse forums preview

    Discourse forums preview

    I don't know if there's a way to simulate this too, but it would be pretty nice to be able to preview what a link may look like when shared on a Discourse forum, because the way it previews tends to be very different from the rest of social media, and it has progressively become the most popular modern open source forum software (and that's what GNOME uses for its forums, like many other communities use nowadays).

    opened by nekohayo 0
  • Enter key focuses the wrong widget after pasting with the mouse

    Enter key focuses the wrong widget after pasting with the mouse

    If you copy some URL and, instead of using Ctrl+V, you paste it into the URL field by doing "Right-click -> Paste", the GtkTextEntry will be defocused, and when you hit Enter:

    • If there was no existing preview, nothing will happen.
    • If there was an existing preview, the "Details" (currently a spyglass icon thingy) button below the preview will be activated, opening the details instead of launching the query.

    Totally a corner case, but I thought I'd report it anyway ;)

    opened by nekohayo 0
  • Refresh button to ask the selected site to clear the cache?

    Refresh button to ask the selected site to clear the cache?

    Social media sites' built-in share preview tools typically cache their opengraph previews, particularly images, but there usually is a button to force them to refresh / fetch the latest version. This is useful if you are actively working on improving the metadata on a website and are testing things with trial and error.

    Would it be possible for this app to plug into those APIs to provide a Refresh button (when available)? If the refresh has a cooldown time limit for a particular site, the button could have a label (or GtkTooltip) that indicates that cooldown in real time while the button is in GTK "insensitive" status.

    opened by nekohayo 0
  • Support for messenger previews

    Support for messenger previews

    I think messenger previews would be a good addition to share-preview

    Signal image

    WhatsApp (don't remember it always being so bland, tried with different links but all look the same) image

    opened by mfru 0
  • Size constraints for Twitter images

    Size constraints for Twitter images

    There's a size limit for images which can be turned into Twitter cards, specifically 5 MB. There are probably similar limits elsewhere.

    It would be handy to have some sort of warning if this is a problem.

    opened by SuborbitalPigeon 0
Owner
Rafael Mardojai CM
Anarchist. Web dev. Open Source enthusiast. Farmer.
Rafael Mardojai CM
Competitive Programming Stress Test Tools

Competitive Programming Stress Test Tools 競技プログラミング用 ストレステストツール このプログラムの役割 のプログラムに対して,それより実行時間がかかるが確実に できる愚直プログラムと比較することで, となるテストケースを探し出す 最大コーナーケースに対し

Ryusei Ishikawa 7 Aug 28, 2021
A heckin small test generator

heckcheck A heckin small test generator API Docs | Releases | Contributing Installation $ cargo add heckcheck Safety This crate uses #![deny(unsafe_co

Yoshua Wuyts 18 Mar 20, 2022
Cucumber testing framework for Rust. Fully native, no external test runners or dependencies.

An implementation of the Cucumber testing framework for Rust. Fully native, no external test runners or dependencies.

Brendan Molloy 394 Jan 1, 2023
atttribute macro for running a flaky test multiple times

flaky_test This attribute macro will register and run a test 3 times, erroring only if all three times fail. Useful for situations when a test is flak

Deno Land 23 Mar 23, 2022
Fluent test assertions for Rust.

This is a fork the unmaintained crate spectral. Spectral as not changed for five years and yet is still very usable, the goal of this fork is to add n

Paul Delafosse 24 Dec 20, 2022
A series of test cases to evaluate async Rust on the nrf52840 in terms of power usage and ergonomics.

A series of test cases to evaluate async Rust on the nrf52840 in terms of power usage and ergonomics. This is an experiment that uses unstable features only available on nightly rust.

Tweede golf 1 Oct 15, 2021
Test for rust-based plugin system for swc

rust-dylib-test Steps Run cargo build in plugin_a Ensure that plugin_a dynamically links to runtime/common by otool -L plugin_a/target/debug/libplugin

Donny/강동윤 1 Apr 6, 2022
Test for crate delay_timer

delay_timer-test some test for crate delay_timer crate link: https://github.com/BinChengZhao/delay-timer here some test for delay_timer,also used for

null 1 Nov 22, 2021
Fixture-based test framework for Rust

Fixture-based test framework for Rust Introduction rstest uses procedural macros to help you on writing fixtures and table-based tests. To use it, add

Michele d'Amico 567 Dec 24, 2022
a test harness for embedded devices

defmt-test a test harness for embedded devices This crate has been moved to the defmt repository Support defmt-test is part of the Knurling project, F

Knurling 8 Aug 27, 2022
Verdun is a HTTP stress-test/benchmark tool written in Rust.

Verdun is a HTTP stress-test/benchmark tool written in Rust. ?? It supports testing a single URL, loading multiples URLs from a file or automatically navigating a website (auto discovery)

Alex Hortopan 2 Feb 23, 2022
Nextest is a next-generation test runner for Rust.

nextest Nextest is a next-generation test runner for Rust. For more, check out the website. This repository contains the source code for: cargo-nextes

null 1.3k Jan 8, 2023
Test cargo crates in different envs & via different methods

Test cargo crates in different envs & via different methods

@Vlad@ 2 Mar 22, 2022
Hopper is a tool for generating fuzzing test cases for libraries automatically using interpretative fuzzing.

Hopper Hopper is an tool for generating fuzzing test cases for libraries automatically using interpretative fuzzing. It transforms the problem of libr

FuzzAnything 118 Nov 15, 2023
Hopper is a tool for generating fuzzing test cases for libraries automatically using interpretative fuzzing.

Hopper Hopper is an tool for generating fuzzing test cases for libraries automatically using interpretative fuzzing. It transforms the problem of libr

FuzzAnything 124 Nov 24, 2023
`mutatis` is a library for writing custom, structure-aware test-case mutators for fuzzers in Rust.

mutatis Easily create custom, structure-aware mutators for fuzzing. Repository | Docs | Guide | Contributing About The most popular fuzzers — includin

Nick Fitzgerald 4 Aug 19, 2024
ABQ is a universal test runner that runs test suites in parallel. It’s the best tool for splitting test suites into parallel jobs locally or on CI

?? abq.build   ?? @rwx_research   ?? discord   ?? documentation ABQ is a universal test runner that runs test suites in parallel. It’s the best tool f

RWX 13 Apr 7, 2023
Pretty social media preview thumbnails on the edge

pretty-grauniad-thumbnails Created for the Guardian Fastly Hack day. I aimed to improve the rendering of our social media post sharing thumbnail image

Oliver Barnwell 3 Apr 27, 2022
Memory.lol - a tiny web service that provides historical information about social media accounts

memory.lol Overview This project is a tiny web service that provides historical information about social media accounts. It can currently be used to l

Travis Brown 317 Jul 12, 2023
Social media style compact number formatting for rust.

prettty-num Format integers into a compact social media style format, similar to using Intl.NumberFormat("en", { notation: "compact" }); as a number f

null 5 Aug 17, 2024