open-wc
services-as-dom-elements
Our great sponsors
open-wc | services-as-dom-elements | |
---|---|---|
18 | 2 | |
2,194 | - | |
1.4% | - | |
8.3 | - | |
3 days ago | - | |
JavaScript | ||
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.
open-wc
-
Testing Web Components with @web/test-runner
npm init @open-wc@latest Need to install the following packages: @open-wc/[email protected] Ok to proceed? (y) y _.,,,,,,,,,._ .d'' ``b. Open Web Components Recommendations .p' Open `q. .d' Web Components `b. Start or upgrade your web component project with .d' `b. ease. All our recommendations at your fingertips. :: ................. :: `p. .q' `p. open-wc.org .q' `b. @openWc .d' `q.. ..,' See more details at https://open-wc.org/init/ '',,,,,,,,,,'' Note: you can exit any time with Ctrl+C or Esc ✔ What would you like to do today? › Scaffold a new project ✔ What would you like to scaffold? › Web Component ✔ What would you like to add? › Testing (web-test-runner) ✔ Would you like to use typescript? › Yes ✔ What is the tag name of your web component? … testing-components ./ ├── testing-components/ │ ├── .vscode/ │ │ └── extensions.json │ ├── demo/ │ │ └── index.html │ ├── src/ │ │ ├── index.ts │ │ ├── testing-components.ts │ │ └── TestingComponents.ts │ ├── test/ │ │ └── testing-components.test.ts │ ├── .editorconfig │ ├── .gitignore │ ├── LICENSE │ ├── package.json │ ├── README.md │ ├── tsconfig.json │ ├── web-dev-server.config.mjs │ └── web-test-runner.config.mjs ✔ Do you want to write this file structure to disk? › Yes Writing..... done ✔ Do you want to install dependencies? › Yes, with npm
-
How my Frontend skills helped me pass my sailing test
Nice. We have data with meaning. Now let's create the presentation layer (aka the UI!) and then let's add interactivity to the UI, so we can have feedback when actually simulating an exam (aka the Frontend!). Since in ING we are advocates of Web Components, I always wanted to give this stack a try for side projects. I jumped right into open-wc.org and used the npm generator. Everything worked precisely as expected. It was a breeze since my Chapter is using lit every. single. day. So I could finally get some mileage myself, in writing lit. At work, as a Chapter Lead, I prefer to spend my time more effectively for the team, rather than coding new features by myself; my chapter does it better anyway (#proud).
- Ask HN: What's is your go to toolset for simple front end development?
-
Start Using Web Components with open-wc
Open Web Components is a great tool for accessing open-source web components and is very easy to set up with their quickstart guide and easy to understand documentation.
-
Getting started with web components
We'll be using open-wc in this post. It simplifies the process of developing web components by providing guides, tools, and libraries. Check out the open-wc website to learn more.
-
Monorepos and Workspaces - an introduction
Example 1 - Storybook: https://github.com/storybookjs/storybook Example 2 - OpenWC: https://github.com/open-wc/open-wc Example 3 - Lit: https://github.com/lit/lit.dev
-
If you're writing in Markdown, I recommend Rocket, an SSG that uses WebComponents!
Rocket is an SSG that allows seamless integration of Markdown and WebComponents. There is a project to support the development of web standard technologies called Modern Web, and rocket is a subproject of that project. Other sub-projects are test runner and development server, modern-web for development server, and open-wc for WebComponents development, testing, and linter.
-
Introducing: Custom Elements Manifest
It's unlikely that developers will write their custom-elements.json file by hand. So at Open Web Components, we worked hard on a tool that does it for you!
-
We Use Web Components at GitHub
Check out https://open-wc.org/
Especially their code examples
-
Ask HN: Offering bounty for bugs in an open source project – or?
https://github.com/open-wc/open-wc
services-as-dom-elements
-
We Use Web Components at GitHub
So basically, the answer is to do it how you did before (shared global state or events etc)
I recently took the time to explore a new idea I haven’t seen explored before —- services as DOM elements:
https://www.vadosware.io/post/sade-pattern-services-as-dom-e...
Straight to the repo:
https://gitlab.com/mrman/services-as-dom-elements
The idea is simple, use references to get at other DOM elements that happen to act like whatever kind of store you need
Would love to see why they did not choose lit-element, it was one of the best I tried in a recent experiment of ~5 solutions.
The big thing holding back webcompinents at this point is a data sharing strategy, and I think we could get away with actually using components to store and manage data:
https://www.vadosware.io/post/sade-pattern-services-as-dom-e...
The github repo (which also happens to contain how to write a web component in lit-element, slim.js, tonic, vue, svelte):
What are some alternatives?
rocket - The modern web setup for static sites with a sprinkle of JavaScript
turborepo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turborepo and Turbopack. [Moved to: https://github.com/vercel/turbo]
custom-elements-manifest - A file format for describing custom elements
web - Guides, tools and libraries for modern web development.
web3-sign-msg - web3-sign-msg is a modern web component built with ficusjs to sign messages with your eth private key in Metamask
ficusjs - FicusJS is a set of lightweight functions for developing applications using web components
lit - Lit is a simple library for building fast, lightweight web components.
soci-frontend - [Moved to: https://github.com/jjcm/nonio-frontend]
chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications
webcomponents - Web Components specifications [Moved to: https://github.com/WICG/webcomponents]
Stimulus - A modest JavaScript framework for the HTML you already have