Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Lite" release version #559

Open
Californ1a opened this issue Sep 11, 2022 · 2 comments
Open

"Lite" release version #559

Californ1a opened this issue Sep 11, 2022 · 2 comments
Labels
bindings This is about the bindings / binding generator. enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core. support This is a support request.

Comments

@Californ1a
Copy link

Californ1a commented Sep 11, 2022

However much of the API is possible to be included in a static cdn file. Something that could just be loaded over unpkg, jsdelivr, etc. or at least able to be bundled with webpack/rollup/vite/etc. rather than needing to be run server-side. Primarily, the splits file parsing and editing, not necessarily any of the actual bindings to manipulate the timer itself. Would be great for frontend static/serverless sites that don't need all the timing stuff and just take in a splits file or multiple and parse them for timestamps, convert between formats, do stats, or otherwise edit the splits and save them back out.

It'd be awesome to be able to do splits file parsing and editing on something like github pages without needing to do raw XML parsing.

@CryZe
Copy link
Collaborator

CryZe commented Sep 12, 2022

The thing is with wasm-bindgen you can already create exactly such a more lightweight library that in the end only contains parsing. We definitely want to integrate something like this into our binding generator where you can more directly choose what to generate, but that's not possible yet. I'm not sure if it makes sense for us to host all these different versions of livesplit-core somewhere. It probably makes more sense to just have the full package hosted somewhere and then allow anyone to customize their own lighter weight version with the binding generator.

@CryZe CryZe added enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core. bindings This is about the bindings / binding generator. labels Sep 12, 2022
@DarkRTA
Copy link
Contributor

DarkRTA commented Sep 13, 2022

rather than needing to be run server-side.

I think its worth noting that you can opt to have the whole library on a GitHub Pages site and run it clientside. Nothing in livesplit-core's design demands that it be ran on a server, and in fact the web version of the timer runs entirely clientside with the server only being there to serve the files.

@CryZe CryZe added the support This is a support request. label Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bindings This is about the bindings / binding generator. enhancement An improvement for livesplit-core. feature A new user visible feature for livesplit-core. support This is a support request.
Projects
None yet
Development

No branches or pull requests

3 participants