Doesn't https://www.netlifycms.org combined with Netlify itself (or any other CDN) achieve the same?
Offbase: Static site generator in a browser
41–50 of 96 posts
Re: Offbase: Static site generator in a browser
#42The whole "Git is eating the database world" trend is picking up steam.
MDN/Yari, mentioned recently on here was another similar one https://github.com/mdn/yari
I am planning on doing something similar to Offbase with Dub (https://github.com/treenotation/dumbdown/tree/master/dub).
Each post will be written in Dumbdown, but then also a whole "blog" (posts, settings, pages, etc), you will be able to view/edit in a single textarea, and copy/paste the whole thing. So you should be able to write a whole site in the client side JS app, use local storage for persistence, and then copy/paste either the raw Tree Notation files to import/export the site, or just the compiled HTML. Then just need a one click "write this site to a Git repo", and then GitHub/GitLab/etc can handle long term persistence, version control, and site hosting.
Happy to talk more to the authors off offbase if it would help. I think there could be some synergy here.
Re: Offbase: Static site generator in a browser
#43Doesn't https://www.netlifycms.org combined with Netlify itself (or any other CDN) achieve the same?
Netlify CMS stores content on their cloud. This looks like it lets you store on your own git repository directly from the browser, avoiding potential lock-in.
Re: Offbase: Static site generator in a browser
#44Hmm...it uses the CDN's servers. So "no server" or "getting rid of the server" seems a tad inaccurate.
For instance Lambda must have a server running these tasks, it mean it is not of your concern and you don't pay for a long running process.
Re: Offbase: Static site generator in a browser
#45Re: Offbase: Static site generator in a browser
#46This is great! The whole "Git is eating the database world" trend is picking up steam. MDN/Yari, mentioned recently on here was another similar one https://github.com/mdn/yari I am planning on doing something similar to Offbase with Dub ( https://github.com/treenotation/dumbdown/tree/master/dub ). Each post will be written in Dumbdown, but then also a whole "blog" (posts, settings, pages, etc), you will be able to vi…
Re: Offbase: Static site generator in a browser
#471. Browser-Side Service Worker
2. Git - mutable file system via REST
3. CDN - deploy to multiple CDNs
I didn't look at the code but I suspect it could be made to be isomorphic and run in Cloudflare Workers but the code surrounding credentials used for Git and CDN access probably needs to distinguish between the browser-side and server-side.
Re: Offbase: Static site generator in a browser
#48(I wouldn’t have thought that there was any good option. If you reject the use of an intermediary proxy, then I think the only two options are: to do something forge-specific, which is rather limiting and quite contrary to the purport of the project; or to use the smart protocol over HTTPS, but that’s going to be CORS-blocked, to say nothing of the security aspect probably being a pain—if I recall correctly, GitHub for one now requires you to use a token for authentication over the HTTPS protocol, so it’s never just a single step any more.)
Re: Offbase: Static site generator in a browser
#49I usually just edit my pages in VS Code, or any other markdown editor. Then I push to a Git repository, and my CDN (Netlify, Vercel, etc) builds the site automatically.