Giter Club home page Giter Club logo

Comments (12)

snuffyDev avatar snuffyDev commented on June 12, 2024

It's way more than possible to hook tauri up to a remote website (https://github.com/DiscordTauri/discord-tauri, is a good example)

HOWEVER, I've been thinking of doing a port in a couple months or so (once Tauri mobile is more stable, since it'd be nice to run it natively on iOS or Android as well)

Have you tried out using the PWA? Personally it's how I use Beatbump on my iPhone and it's honestly not a bad experience for the time being. Same with on my laptop (however it requires Chrome/Edge/others or Safari since afaict Firefox removed PWAs?)

from beatbump.

ArjixWasTaken avatar ArjixWasTaken commented on June 12, 2024

It is possible to inject custom code with tauri, that is true, but the example you linked does not do that.

No custom code is injected after discord is loaded.

And no code injected before the discord load would be meaningful, since a full page reload is done.

from beatbump.

snuffyDev avatar snuffyDev commented on June 12, 2024

Ahhh, true, one sec my bad. Looking for an old video of mine, then. Since i cloned it and tried to do custom code injection and it worked

from beatbump.

ArjixWasTaken avatar ArjixWasTaken commented on June 12, 2024

Dorion seems like a better example of injecting code into a remote site with tauri.

https://github.com/SpikeHD/Dorion

from beatbump.

ArjixWasTaken avatar ArjixWasTaken commented on June 12, 2024

Their solution doesn't look very elegant though.

From the looks of it they just blindly evaluate js.

from beatbump.

snuffyDev avatar snuffyDev commented on June 12, 2024

Yeah, good point I can't find my old project or any videos. However, you are correct it's not really that elegant of a solution. While I look into exactly how to handle migrating or porting the backend API does a PWA work? The biggest challenge is extracting or porting the entire back into either rust or a more modular, you know, mono repo, sort of set up, especially since the back and heavily is integrated with svelte kit as well as the project itself so it would be quite a big guess task in order to pull the API out

from beatbump.

ArjixWasTaken avatar ArjixWasTaken commented on June 12, 2024

Porting the entire backend to rust sounds like a fun project.

If you can generate an OpenAPI spec then I can work on the rust port in my free time.

from beatbump.

snuffyDev avatar snuffyDev commented on June 12, 2024

I've been considering just yanking the API out into a package, using this it may be easier to port the API to a Sidecar server, however, it still would be essentially a full-blown reimplementation of the API but it's definitely something that's doable, but at that point, it's kind of a question of why not just rewrite it and rust?

from beatbump.

snuffyDev avatar snuffyDev commented on June 12, 2024

While it would be fun, it definitely wouldn't be fun to fully type it because of how much do YouTube music, internal API changes and how many different keys objects, etc. exist for it

from beatbump.

snuffyDev avatar snuffyDev commented on June 12, 2024

But I would definitely be up for the challenge

from beatbump.

snuffyDev avatar snuffyDev commented on June 12, 2024

If you have Twitter, you can DM me on Twitter and we can see about doing a collaboration of sorts. If you don't have Twitter then just drop your discord and I can hit you up on there.

from beatbump.

ArjixWasTaken avatar ArjixWasTaken commented on June 12, 2024

My discord can be found on my GitHub profile!

Otherwise you can use my username: arjixwastaken

from beatbump.

Related Issues (20)

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.