https://codeberg.org/blast/blastqr

Hello! I’ve been working on blastQR for a couple of years now and I thought this community might find it useful. Feel free to try it and ask me anything!

blastQR is a fully open-source file transfer app and protocol that works completely offline. You can even use it in airplane mode. Data is transferred through sequences of QR codes displayed on a sender device and scanned by a receiver device’s camera. It uses RaptorQ codes so the receiver can recover the file from any sufficiently large subset of frames.

Note that although I have made use of AI as a coding assistant I do not consider this to be a vibe-coded app and I do plan to continue improving it and supporting it in the future.

See video of blastQR in action: https://github.com/user-attachments/assets/038a2567-70c8-47c8-b165-dea858d1aef3

Here are some of the key features:

  • Works fully offline: No internet, Wi-Fi, Bluetooth or servers. Your data stays offline.
  • One-to-many distribution: Share the same file with multiple devices simultaneously using a single blastQR broadcast.
  • Cross-platform: Android, iOS, macOS, Linux and Windows, plus a command-line tool that can send from a terminal, even over SSH.
  • Password encryption: You can optionally encrypt files with an auto-generated password or a custom one.
  • Media compression: The app supports lossy image compression and video transcoding for quicker transfers.
  • Multiple codes on screen: Shows multiple QR codes at once for higher speed. With 8 codes at 60 fps, transfers peak at around 1.4 MB/s.
  • Send multiple files in one go: They’re zipped into one transfer and unpacked into separate files on the receiver.
  • Sound feedback: The receiver plays a short tone when it has the whole file, and the sender stops automatically when it hears it.
  • Start scanning at any point: No need to catch every code, just keep the camera on the screen until it’s done. Blurry or missed codes don’t matter.
  • Regular QR scanner: You can also scan normal QR codes and save them.
  • Open protocol that other apps can implement
  • Built-in file manager

I’m trying to build a small community around the project so it can be improved and maintained and so it can reach more people in the future.

Downloads for all platforms can be found here: https://codeberg.org/blast/blastqr/releases/latest

  • BiscuityCat@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    14 days ago

    Interesting idea, but I feel that creating a hotspot and turning on FTP server is going to be easier and much less error-prone. (Not offline though.)

  • taco_shale032@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    14 days ago

    Note that although I have made use of AI as a coding assistant this is not a vibe-coded app

    Can you elaborate more on how AI was used?

    • blast@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      0
      ·
      14 days ago

      For context, I’m a software developer with around 15 years of experience. Most of it writing Android and iOS apps in Java, Kotlin, Swift and lately Dart (Flutter) + Rust which is what this project is written in.

      Although I did start the project from scratch I have lately been using Claude Code as a coding assistant. I write code myself but I also let it write or refactor parts of it. The CLI tool is the part that Claude has mostly written from scratch because it’s not something I had experience in writing before. That being said I also review all the code that Claude writes.

      Thanks for asking! there’s also some disclosure about this in the readme file

      • taco_shale032@lemmy.ml
        link
        fedilink
        arrow-up
        0
        ·
        14 days ago

        The CLI tool is the part that Claude has mostly written from scratch because it’s not something I had experience in writing before.

        This seems like the perfect opportunity to learn something new in my opinion, CLIs aren’t difficult to make. And you may want to consider moving to GitHub because of Codeberg’s ToS.

        • blast@lemmy.dbzer0.comOP
          link
          fedilink
          arrow-up
          0
          ·
          14 days ago

          I totally agree and I’m very open to welcome anyone who wants to rewrite that part or I might go for it myself in the future. The reason I went for it is that I really wanted to be able to use the CLI tool right away and the AI produced a good result so I left it in the project for now.

          About Codeberg I did read their blog post and I didn’t think my project falls into any of the cases they mention:

          spoiler

          Projects that are created by LLM “agents” in autonomous ways Projects written and maintained with heavy use of LLMs Projects where the amount of resources (e.g. storage, CI/CD) is significantly larger than what the involved amount of people could have created by hand Projects heavily tied to the LLM ecosystem, e.g. LLM-written tools to ease LLM usage Users sending LLM contributions in violation of project’s custom policies

          If they ever consider it infringing their ToS I could move it to GitHub where there’s already a mirror of the repo.

  • Guiorgy@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    14 days ago

    Interesting, though what if the receiver fails to scan the codes quicly enough?

    • blast@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      0
      ·
      14 days ago

      The cool part is that codes are generated indefinitely so basically you can keep scanning until you receive the data. You don’t need to capture every frame or scan in any particular order.

      This is made possible by raptorQ (https://github.com/cberner/raptorq) the fountain code encoding used by blastqr.

      Feel free to try it out!

      • deadalus@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        14 days ago

        How many pictures does it show per second? And do I understand that right, it cycles through the data until it hears the sound? I assume that makes sending large files difficult, since it has to wrap around all the data, right?

        • blast@lemmy.dbzer0.comOP
          link
          fedilink
          arrow-up
          0
          ·
          14 days ago

          You can tweak the FPS from the send page UI. it’s set to 25 fps by default for broader compatibility (most devices capture at 30fps) but if you have a more powerful device they can capture at 60 or 120fps and you can adjust the sender accordingly. Each frame carries around 3kB of data per frame (with the default settings) so at 25fps that’s 75kB/s. You can multiply the speed by showing more than one code. So two codes would give you 150kB/s

          The completion tone is optional. It basically just tells the sender that it can stop and t’s more for convenience. I want to expand it in the future so the receiver tells the sender what FPS to send at through sound tones.

          Regarding large files it can take a long time yes! The app includes lossy compression turned on by default when you send pictures or videos (similar to what all chat apps do) so it can send those quite fast. With default settings and showing 2 codes it can send 5 pictures in around 10 seconds for example or a 2MB video in the same time.

    • blast@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      0
      ·
      14 days ago

      Indeed but nowhere as fun ;)

      it is most useful when you don’t want to connect anything or need to broadcast data to multiple devices simultaneously. For example transmitting info to a bunch of phones during a digital blackout where the government has cut off internet. Also useful for air-gapped systems!

      • plantfanatic@sh.itjust.works
        link
        fedilink
        arrow-up
        0
        ·
        14 days ago

        Wouldn’t any security camera potentially be able to steal the information by inputting the QR codes though? It’s not truly airgapped when someone can view or also be able to see the information that’s being sent.

        • blast@lemmy.dbzer0.comOP
          link
          fedilink
          arrow-up
          0
          ·
          14 days ago

          Yes, absolutely! anyone who can capture the QR codes could reconstruct the data. That’s why blastQR also lets you password encrypt any transfer. It depends on your usecase. You might not care if you’re already intentionally publicly broadcasting ti multiple devices.

          Air-gapping refers to network isolation not necessarily confidentiality. It means you can transfer data to and from devices that are completely disconnected from any network.

          • plantfanatic@sh.itjust.works
            link
            fedilink
            arrow-up
            0
            ·
            14 days ago

            Air-gapping refers to network isolation not necessarily confidentiality. It means you can transfer data to and from devices that are completely disconnected from any network.

            Which also includes the information not being seeing or taking, it’s kinda one of the main points. Your program is not even remotely similar to being airgapped and you shouldn’t be saying or even implying that feature. Especially in a comm like this. Why would you want to transfer without being connected to a network or a “physical” connection? For privacy and security, and lots of airgapped system still utilize networks and lines.

            • hirihit640@sh.itjust.works
              link
              fedilink
              English
              arrow-up
              0
              ·
              13 days ago

              Why would you want to transfer without being connected to a network or a “physical” connection?

              If you don’t trust the network stack to be secure. This use case definitely counts as airgapped imo. Even in airgapped environments people use usb to transfer data. But USB also has huge security issues like BadUSB. So this app shifts the attack surface to the camera and the app. Not necessarily more secure but still an option I haven’t seen explored much.

            • blast@lemmy.dbzer0.comOP
              link
              fedilink
              arrow-up
              0
              ·
              14 days ago

              As explained in the readme you should enable password encryption when transferring sensitive data. I’m not claiming the program itself is air-gapped, just that transferring files between air-gapped systems is a legitimate use case.

  • Silic0n_Alph4@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    That’s a very clever idea - good job! I am aware of Luby Transform and Raptor codes but not RaptorQ codes - that’ll make for some interesting reading later.

    I particularly like the idea of visual filesharing with no network transmission that could be intercepted - although a determined nation-state actor would just compromise hardware & OSes instead. For ultra-private comms there’s also Van Eck phreaking to consider, but we’re going a bit too deep down the rabbit hole here!

    Very cool project. If you’re going to patent it or publish a paper on the subject, don’t wait too long.

  • alessandro@lemmy.ca
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    I wonder if this can be arranged with two bidirectional telescopes (or maybe two telescope and 2 projectors on walls:how many qr-codes you can stuff on a square meter to be seen in long distance?) for some sort of wifi; not for a good ping but some sort of cheap/quick wireless connectivity

    • milk@discuss.tchncs.de
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      Visible light communication over free air is something that has been studied for decades but usually it’s 1D (i.e. tranmit a single signal instead of a 2D QR code) because cameras are slow. You can theoretically get absurdly high data rates, potentially TbPS. I actually did that for my engineering capstone project🙂

    • blast@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      0
      ·
      13 days ago

      that sounds like a really fun experiment! the protocol would need some tweaking to be able to continuously stream data. other than that it would probably work fine if the image is clear enough!

  • graycube@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    14 days ago

    Now use steganography to hide files in the qr code images. Maybe even make those hidden file qr codes.

  • DataCrime@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    0
    ·
    14 days ago

    Super cool! I could totally see this being an integral plot point in a show or movie. Crowds of people suddenly aiming their phones at the screens in Times Square to get the latest elicit data dump or some such 😎

    Thanks for all the hard work, I can’t wait to play around with it!

  • SabinStargem@lemmy.today
    link
    fedilink
    English
    arrow-up
    0
    ·
    13 days ago

    I am thinking that maybe adding color would allow you to condense a lot more information into a QR code. It would be good if we can have entire programs and media reconstructed just from scanning QRs.

    • blast@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      13 days ago

      For those asking about RGB, there are a few reasons why QR codes work better for now:

      • Black and white still reads fine in bad lighting or on cheap cameras. Phones are very optimized for scanning QRs so it’s more reliable and less error prone.
      • Video compression, colors shifting with white balance, screen type, all of those make it harder to tell colors apart so you need more aggressive error correction. The real gain ends up smaller than it sounds.

      You can already transfer entire (small) programs and media with blastQR btw! Feel free to try and report back. The limit is around 4 GB files but that would take ages.

      That said, there is a project called libcimbar that is improving and does work with colors: https://github.com/sz3/libcimbar

      • AdrianTheFrog@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        12 days ago

        I feel like better calibration patterns could largely address those issues. Since it’s temporal you could even have a frame that just shows every single color combination, and then have maybe something in the timing pattern for example to correct for deviations after that. Compression might be a large issue though, since chroma is always compressed more than luminance. I feel like multiple bits per pixel might even be possible, depending on how good your camera is.

  • tostane@thelemmy.club
    link
    fedilink
    arrow-up
    0
    ·
    13 days ago

    you do know that that claude figured way to do this to talk to other llm and what you are doing will give them more routes to talk

  • 7eter@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    14 days ago

    Reminds me of CimBar, but yours seems to be way faster! Maybe i’ll try it, for the fun of it 👍