fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#opfs

0 posts0 participants0 posts today
data0<p>Nice trick to still run <a href="https://indieweb.social/tags/sqlite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlite</span></a> <a href="https://indieweb.social/tags/wasm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wasm</span></a> in browser with <a href="https://indieweb.social/tags/opfs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opfs</span></a> enabled if you can't set <a href="https://indieweb.social/tags/coep" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coep</span></a> / <a href="https://indieweb.social/tags/coop" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>coop</span></a> on server</p><p><a href="https://toot.cafe/@tomayac/114128600602436482" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">toot.cafe/@tomayac/11412860060</span><span class="invisible">2436482</span></a></p><p><a href="https://indieweb.social/tags/http" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>http</span></a> <a href="https://indieweb.social/tags/webserver" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webserver</span></a> <a href="https://indieweb.social/tags/serviceworkers" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serviceworkers</span></a></p>
Paul L<p>Who here knows enough <a href="https://mastodon.online/tags/webplatfrom" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webplatfrom</span></a> and <a href="https://mastodon.online/tags/webapi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webapi</span></a> to know if relative links exists with the Origin Private File System (<a href="https://mastodon.online/tags/OPFS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OPFS</span></a>)?</p><p>thanks much for RT and dig to find people knowing...</p>
data0<p>The <a href="https://indieweb.social/tags/wasm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wasm</span></a> build of <a href="https://indieweb.social/tags/sqlite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlite</span></a> opens up great new possibilities in the <a href="https://indieweb.social/tags/browser" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>browser</span></a>, especially when coupled with the Origin Private File System (<a href="https://indieweb.social/tags/opfs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opfs</span></a>). I've used it to implement importing huge <a href="https://indieweb.social/tags/csv" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>csv</span></a> or <a href="https://indieweb.social/tags/jsonl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>jsonl</span></a> <a href="https://indieweb.social/tags/datasets" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>datasets</span></a> right in the browser. Import, validate, search, edit, close the browser and continue tomorrow, stream the database (with on-the-fly compression!) to the server when ready – it's all possible!</p><p>Another interesting use case I came across today: use it in <a href="https://indieweb.social/tags/golang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>golang</span></a> to get rid of <a href="https://indieweb.social/tags/cgo" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cgo</span></a>!</p><p>[1/2]</p>
Thomas Steiner :chrome:<p>I’ll be in Milan, Italy 🇮🇹 for <a href="https://toot.cafe/tags/Codemotion" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Codemotion</span></a> tomorrow and (half of) the day after to talk about <a href="https://toot.cafe/tags/SQLite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQLite</span></a>, <a href="https://toot.cafe/tags/WebAssembly" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebAssembly</span></a> (<a href="https://toot.cafe/tags/Wasm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wasm</span></a>), and the Origin Private File System (<a href="https://toot.cafe/tags/OPFS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OPFS</span></a>). My talk is tomorrow, 16:30 🕟: <a href="https://conferences.codemotion.com/milan2023-live/agenda/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">conferences.codemotion.com/mil</span><span class="invisible">an2023-live/agenda/</span></a>. If you’re at the conference, be sure to say “ciao” 🤌!</p>
Martti MalmiIris uses LokiJS for in-memory storage and Dexie for persistence. Both are pretty good, but it's a bit of a hassle to have 2 databases. Could try sqlite wasm.<br><br>I wonder if also <a class="mention hashtag" href="https://mostr.pub/tags/nostrdb" rel="nofollow noopener noreferrer" target="_blank"><span>#</span>nostrdb</a> could be used on wasm and persisted on origin private filesystem like sqlite. <a href="https://sqlite.org/wasm/doc/trunk/persistence.md#opfs" rel="nofollow noopener noreferrer" target="_blank">https://sqlite.org/wasm/doc/trunk/persistence.md#opfs</a>
Thomas Steiner :chrome:<p>📢 The Origin Private File System (OPFS) is a cross-browser solution for your performance-critical, file-based storage needs on the Web! <span class="h-card"><a href="https://front-end.social/@chrisdavidmills" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>chrisdavidmills</span></a></span> has documented everything you need to know about the API over on MDN: <a href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.mozilla.org/en-US/do</span><span class="invisible">cs/Web/API/File_System_API/Origin_private_file_system</span></a>.</p><p>💡 This is what powers Photoshop (<a href="https://developer.chrome.com/blog/how-photoshop-solved-working-with-files-larger-than-can-fit-into-memory/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.chrome.com/blog/how-</span><span class="invisible">photoshop-solved-working-with-files-larger-than-can-fit-into-memory/</span></a>) and SQLite Wasm (<a href="https://developer.chrome.com/blog/sqlite-wasm-in-the-browser-backed-by-the-origin-private-file-system/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.chrome.com/blog/sqli</span><span class="invisible">te-wasm-in-the-browser-backed-by-the-origin-private-file-system/</span></a>). </p><p>#️⃣ <a href="https://toot.cafe/tags/OPFS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OPFS</span></a> <a href="https://toot.cafe/tags/ProjectFugu" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ProjectFugu</span></a> 🐡</p>
Kristof Zerbe<p><a href="https://indieweb.social/tags/Link" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Link</span></a>&nbsp;|&nbsp;Understanding OPFS</p><p>Storage in web apps can be a real pain, but nearly every year the possibilities expand. Thomas Steiner (<span class="h-card"><a href="https://toot.cafe/@tomayac" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>tomayac</span></a></span>), from the Chrome Dev Team, highlights the latest expansion in detail: the **Origin Private File System**, which allows to handle complete file structures on the web.</p><p><a href="https://web.dev/origin-private-file-system/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">web.dev/origin-private-file-sy</span><span class="invisible">stem/</span></a></p><p><a href="https://indieweb.social/tags/webapps" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webapps</span></a> <a href="https://indieweb.social/tags/storage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>storage</span></a> <a href="https://indieweb.social/tags/opfs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opfs</span></a></p><p><a href="https://kiko.io/notes/2023/understanding-opfs/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">kiko.io/notes/2023/understandi</span><span class="invisible">ng-opfs/</span></a></p>
Thomas Steiner :chrome:<p>🥳 It’s happening: the Intent to Deprecate and Remove for Web SQL has been sent: <a href="https://groups.google.com/a/chromium.org/g/blink-dev/c/fWYb6evVA-w/m/pziWcvboAgAJ" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">groups.google.com/a/chromium.o</span><span class="invisible">rg/g/blink-dev/c/fWYb6evVA-w/m/pziWcvboAgAJ</span></a>; read more about our plans on the blog: <a href="https://developer.chrome.com/blog/deprecating-web-sql" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.chrome.com/blog/depr</span><span class="invisible">ecating-web-sql</span></a>.</p><p>Together with the SQLite team, we’ve prepared a replacement for Web SQL based on SQLite Wasm backed by the origin private file system (OPFS): <a href="https://developer.chrome.com/blog/sqlite-wasm-in-the-browser-backed-by-the-origin-private-file-system/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.chrome.com/blog/sqli</span><span class="invisible">te-wasm-in-the-browser-backed-by-the-origin-private-file-system/</span></a>.</p><p>There’s also a Web SQL 🔜 SQLite Wasm migration guide: <a href="https://developer.chrome.com/blog/from-web-sql-to-sqlite-wasm/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.chrome.com/blog/from</span><span class="invisible">-web-sql-to-sqlite-wasm/</span></a>.</p><p>#️⃣ Hashtags: <a href="https://toot.cafe/tags/SQLite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQLite</span></a> <a href="https://toot.cafe/tags/WebSQL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebSQL</span></a> <a href="https://toot.cafe/tags/Wasm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Wasm</span></a> <a href="https://toot.cafe/tags/WebAssembly" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebAssembly</span></a> <a href="https://toot.cafe/tags/OPFS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OPFS</span></a> <a href="https://toot.cafe/tags/ProjectFugu" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ProjectFugu</span></a></p>
Codie こでぃー<p>Somethin im working on<br><a href="https://tech.lgbt/tags/opfs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opfs</span></a> <a href="https://tech.lgbt/tags/dev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dev</span></a> <a href="https://tech.lgbt/tags/webdev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>webdev</span></a> <a href="https://tech.lgbt/tags/minecraft" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>minecraft</span></a></p>
Thomas Steiner :chrome:<p>📢The File System Standard adds an origin private file system (OPFS) 📂 as a storage endpoint private to the origin of a page providing optional access to a special kind of file 🗂️ that’s highly optimized for performance. My latest article has all facts! <a href="https://developer.chrome.com/articles/origin-private-file-system/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.chrome.com/articles/</span><span class="invisible">origin-private-file-system/</span></a> <a href="https://toot.cafe/tags/OPFS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OPFS</span></a> <a href="https://toot.cafe/tags/ProjectFugu" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ProjectFugu</span></a></p>
Thomas Steiner :chrome:<p>🎒 From Web SQL to SQLite Wasm—the database migration guide: <a href="https://developer.chrome.com/blog/from-web-sql-to-sqlite-wasm/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">developer.chrome.com/blog/from</span><span class="invisible">-web-sql-to-sqlite-wasm/</span></a></p><p>With SQLite Wasm backed by the Origin Private File System (<a href="https://toot.cafe/tags/OPFS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OPFS</span></a>), there's a replacement for the deprecated Web SQL. My latest article guides you when migrating your data from <a href="https://toot.cafe/tags/WebSQL" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebSQL</span></a> to <a href="https://toot.cafe/tags/SQLite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQLite</span></a> Wasm.</p>
Inautilo<p><a href="https://mastodon.social/tags/Development" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Development</span></a> <a href="https://mastodon.social/tags/Overviews" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Overviews</span></a><br>(Almost) everything about storing data on the web · Options to store data locally on a user’s device for client-side or offline access <a href="https://ilo.im/10hh92" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">ilo.im/10hh92</span><span class="invisible"></span></a> · by <span class="h-card"><a href="https://mas.to/@patrickbrosset" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>patrickbrosset</span></a></span></p><p>_____<br><a href="https://mastodon.social/tags/WebDevelopment" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDevelopment</span></a> <a href="https://mastodon.social/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a> <a href="https://mastodon.social/tags/WebApplication" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebApplication</span></a> <a href="https://mastodon.social/tags/WebApp" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebApp</span></a> <a href="https://mastodon.social/tags/Browser" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Browser</span></a> <a href="https://mastodon.social/tags/Chrome" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Chrome</span></a> <a href="https://mastodon.social/tags/Firefox" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Firefox</span></a> <a href="https://mastodon.social/tags/Edge" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Edge</span></a> <a href="https://mastodon.social/tags/Safari" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Safari</span></a> <a href="https://mastodon.social/tags/Storage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Storage</span></a> <a href="https://mastodon.social/tags/WebStorage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebStorage</span></a> <a href="https://mastodon.social/tags/IndexedDB" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>IndexedDB</span></a> <a href="https://mastodon.social/tags/CacheAPI" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CacheAPI</span></a> <a href="https://mastodon.social/tags/OPFS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OPFS</span></a> <a href="https://mastodon.social/tags/SQLite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SQLite</span></a></p>
El Greco<p><span class="h-card"><a href="https://toot.cafe/@tomayac" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>tomayac</span></a></span> Just finished watching the recording of the Fugu Chat from BlinkOn 17. I particularly enjoyed the very last remark by Ben Morss: <a href="https://yewtu.be/watch?v=5Yzd3nCvIAM&amp;t=27m25s" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">yewtu.be/watch?v=5Yzd3nCvIAM&amp;t</span><span class="invisible">=27m25s</span></a></p><p>He refers to the recent beta release of sqlite3 WebAssembly which enables to create AND persist a sqlite database in your browser: <a href="https://sqlite.org/releaselog/3_40_0.html" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">sqlite.org/releaselog/3_40_0.h</span><span class="invisible">tml</span></a> </p><p>For persisting the database they are using a (theoretically) unlimited 👀 browser-side storage (OPFS): <a href="https://webkit.org/blog/12257/the-file-system-access-api-with-origin-private-file-system/" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">webkit.org/blog/12257/the-file</span><span class="invisible">-system-access-api-with-origin-private-file-system/</span></a></p><p><a href="https://masto.ai/tags/Fugu" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Fugu</span></a> <a href="https://masto.ai/tags/ProjectFugu" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ProjectFugu</span></a> <a href="https://masto.ai/tags/OPFS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>OPFS</span></a> <a href="https://masto.ai/tags/sqlite" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlite</span></a> <a href="https://masto.ai/tags/sqlite3" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>sqlite3</span></a> <a href="https://masto.ai/tags/WebDev" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>WebDev</span></a></p>