umbrella
web_app_from_scratch
umbrella | web_app_from_scratch | |
---|---|---|
7 | 5 | |
2,250 | 50 | |
- | - | |
2.0 | 0.0 | |
16 days ago | over 1 year ago | |
JavaScript | Shell | |
MIT 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.
umbrella
- Ask HN: Good resource on writing web app with plain JavaScript/HTML/CSS
-
The impact of removing jQuery on our web performance
If you are mainly using jquery for its DOM manipulation¹ rather than for browser compatibility² or things that didn't exist consistently in older browsers³ then there are much smaller libraries that do that job which may be worth looking into. https://github.com/fabiospampinato/cash or https://github.com/franciscop/umbrella to give a couple of examples. Some explicitly support IE11 so you are not dropping as much support for legacy browsers as you might otherwise.
Though if jQuery works for you and isn't a performance issue, then by all means keep with it. It may not be ideal, but good enough and does the job. Let the naysayers spend their time debating whether you should or not, and just get on with making things!
---
[1] selection engine, chained selections, chained modifications, …
[2] not the issue it once was, if you can abandon IE and old Android browsers from your supported UAs or can deal with any issues that crop up individually
[3] again, if you can afford to drop support for legacy UAs
-
Gov.uk drops jQuery from their front end
Yes, and if you continue long enough you end up with one of the many jQuery alternatives, like mine:
https://umbrellajs.com/
- Umbrella JavaScript: Tiny library for DOM manipulation and events
-
Ask HN: Should I even bother with React?
If you're learning React just to get a job, you're doing it wrong, since recruiters are always changing their requirements. They will add `proficient in Svelte` just to annoy you, (after having learning React) and now you're no longer relevant to them.
That's why I say: stick to the baseline of HTML, CSS, & JS. Learn to write vanilla JS for common things, maybe learn UmbrellaJS[0] for syntactic sugar and manipulating the DOM.
Oh and learn some APIs to do back-end stuff too. And for forms, there's loads of projects out there to automate that[1]
[0] https://umbrellajs.com/
[1] https://www.producthunt.com/search?q=forms
- Make Front End Shit Again
-
Replacing jQuery (110kb) With UmbrellaJS (8kb)
const insertAfter = (col, html) => col.forEach(el => el.insertAdjacentElement('afterend', html));
Keep going a bit like that, until you realize you are basically reinventing jQuery. Add a couple of very nice-to-haves, like chaining (instead of nesting in these examples above) and that's exactly what Umbrella JS is, very thin methods to manipulate the DOM and handle events. In fact, compare our "addClass" implementation in this comment to [Umbrella's addClass](https://github.com/franciscop/umbrella/blob/master/src/plugi...), it's almost the same size but hundred times more flexible:
// Add class(es) to the matched nodes
web_app_from_scratch
-
Server-Side Rendering Is a Thiel Truth (2020)
How do you mean Django is heavy? When I think about heavy, I think about how hard it would be to replace the framework with my own code in the future. So I don't like magic. Both, Django and Flask seem to have a similar amount of magic to me. But I might be wrong. I tried Flask only very briefly.
Me and other devs maintain this repo which shows how to get from a fresh Debian install to a running web app via different frameworks:
https://github.com/no-gravity/web_app_from_scratch
As you can see, it also has a Flask version.
Contributions are welcome!
-
Ask HN: Good resource on writing web app with plain JavaScript/HTML/CSS
Why using python3-django on debian instead of a venv and the last lts of django from pypi on your script[0] ?
[0]: https://github.com/no-gravity/web_app_from_scratch/blob/main...
-
Ask HN: Do you contribute to open source projects?
I am building an open source web framework comparison.
The idea is to put together a project that gives an overview of how to set up a minimal viable web application from scratch via all the different frameworks.
For each framework the project features a self explanatory shell script that builds a web app with routing, templates and user accounts. So there is no ambiguity of how to reproduce the results. And it is even possible to just copy&paste the steps into a docker container and see the framework in action.
So if you want to compare how the frameworks do templating, you can look at the "Let's use templates" part and have a quick overview of how it is done in Django, Laravel, Flask, Symfony, NextJS...
So far, 5 developer joined and contributed.
Here is the repo:
https://github.com/no-gravity/web_app_from_scratch
-
Ask HN: Who Wants to Collaborate?
I am building an open source web framework comparison.
The idea is to put together a project that gives an overview of how to set up a minimal viable web application from scratch via all the different frameworks.
For each framework the project features a self explanatory shell script. So there is no ambiguity of how to reproduce the results. And it is even possible to just copy&paste the steps into a docker container and see the framework in action.
The shell script for each repo starts from scratch and builds a web app with routing, templates and user accounts.
Here is the repo:
https://github.com/no-gravity/web_app_from_scratch
So if you want to compare how do you use a template, you can look at the "Let's use templates" part and have a quick overview of how it is done in Django, Laravel, Flask, Symfony, NextJS...
So far, I wrote the beginning of the Django script and two developers contributed Laravel and Symfony scripts. So far we have routing and templates. All three still need user accounts.
If you are experienced in a web framework, feel free to add to one of the scripts or a new one and send a pull request!
What are some alternatives?
cash - An absurdly small jQuery alternative for modern browsers.
html-form-to-google-sheet - How to submit HTML forms to Google Sheets. (Updated for 2023 Script Editor)
femtoJS - femtoJS - Really small JavaScript (ES6) library for DOM manipulation.
DS4Windows - A reimagination of DS4Windows.
uswds - The U.S. Web Design System helps the federal government build fast, accessible, mobile-friendly websites.
share-file-systems - Use a Windows/OSX like GUI in the browser to share files cross OS privately. No cloud, no server, no third party.
Alpine.js - A rugged, minimal framework for composing JavaScript behavior in your markup.
langterm - 🕹️ WebGL-based VT220 emulator, made as a learning example and frontend for a text adventure
govuk-puppet - Decommissioned: Puppet manifests that used to provision the legacy GOV.UK stack.
Yacy - Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
DOM_Maker - JavaScript library for creating DOM structures in the browser.
bangle-io - A web only WYSIWYG note taking app that saves notes locally in markdown format.