fac-rs
dalliance
fac-rs | dalliance | |
---|---|---|
1 | 2 | |
8 | 224 | |
- | - | |
5.6 | 0.0 | |
9 months ago | over 4 years ago | |
Rust | JavaScript | |
Apache License 2.0 | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
fac-rs
-
Hosting SQLite databases on GitHub Pages (or any static file hoster)
I wrote a similar thing in Rust for a Factorio mod manager - mods are hosted on the remote HTTP server as ZIP files and the mod manager needs a single info.json file from the ZIP for the mod metadata, so it avoids downloading the whole mod and then unpacking it by building a file abstraction that uses HTTP range queries to download chunks. For ZIP files the directory is stored at the end at an unknown offset, so the read pattern is to gradually seek backwards from the end until you find the start of the directory, then find the file entry, then read the file.
I didn't fiddle with the window sizes like the TFA, but I did optimize it so that reading chunk N+1 of the file reused the response readed of chunk N rather than making a new request. Furthermore I keep an LRU cache of the last three chunks rather than keep all of them in memory, because the ZIP files are each only read once.
[1]: https://github.com/Arnavion/fac-rs/blob/master/src/solve/web...
[2]: https://github.com/Arnavion/fac-rs/blob/master/src/solve/zip...
dalliance
-
[AskJS] Front-end codebases made using vanilla JavaScript for studying
one pretty impressive vanilla codebase in my field is called biodalliance https://github.com/dasmoth/dalliance however, vanilla projects often fall victim to spaghetti code especially for front end UI. you have to be diligent to keep things component based. i personally think this is the biggest mind-shift that react applied to the world. it made it much more strict and structured to make components on the page.
- Hosting SQLite databases on GitHub Pages (or any static file hoster)
What are some alternatives?
sqltorrent
SkySQL
LevelDB - LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
alasql - AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
apsw - Another Python SQLite wrapper
datasette - An open source multi-tool for exploring and publishing data
duckdb - DuckDB is an in-process SQL OLAP Database Management System
sql.js-httpvfs - Hosting read-only SQLite databases on static file hosters like Github Pages