@jadis/core
Version:
Jadis is a minimal JavaScript library for building web interfaces using native Web Components.
121 lines (80 loc) β’ 2.97 kB
Markdown
## Jadis
**Jadis** is a minimal JavaScript toolkit for building web interfaces using native Web Components β no virtual DOM, no reactivity system, no compile step. Just clean, readable, native code.
> The web, like it used to be.
## π€ Why Jadis?
Modern frontend frameworks are powerful, but they come at a cost:
- Complex tooling and configuration
- Steep learning curves
- Bloated bundles
- Fragile abstractions
**Jadis** is for developers who are tired of that. It brings things back to the basics:
- β
Native Web Components
- β
No framework-specific syntax
- β
Zero dependencies
- β
Works with just a browser
## π What You Get
- A set of tiny libraries to make Web Components simpler and more enjoyable to use
- Simple templating without JSX or complex DSLs
- Lifecycle helpers without hooks or reactivity
- A feeling of control and peace π
## π¦ Installation
```bash
npm install @jadis/core
```
## π§± Example
```javascript
import { Jadis } from '@jadis/core';
class HelloWorld extends Jadis {
static selector = 'hello-world';
static template = '<p>Hello, <span id="name"></span></p>';
onConnect() {
this.getElement('#name').textContent = 'Jadis developers';
}
}
HelloWorld.register();
```
Then in your HTML:
```html
<hello-world></hello-world>
```
## π§ Philosophy
**Jadis** isn't trying to replace React or Vue. It's here for when you want to:
- Build small, fast, maintainable UI pieces
- Avoid a bloated toolchain
- Use the platform, not fight it
## π When to Use Jadis
Use it when you:
- Want simplicity and speed
- Build micro-frontends, design systems, or widgets
- Miss the days when you could understand your app in one file
Avoid it if you need:
- Complex state management
- Large-scale SPA routing
- SSR or hydration
## π« What Jadis doesnβt do (on purpose)
Jadis is intentionally boring β in the best way.
- β No virtual DOM
β
Real DOM, updated by you
- β No JSX / TSX
β
Plain HTML templates
- β No magic reactivity
β
Direct control over state and updates
- β No decorators or class gymnastics
β
Works with both TypeScript and vanilla JS
- β No complex build setup
β
Just a browser and a script tag
- β No over-engineered reactive stores
β
Just event buses when you need global state β and they still work beautifully
> Youβd be surprised how much you can build without the βmodern essentials.β
## β€οΈ Try It Out
Give it a spin. Build something in 5 minutes. Rediscover the joy of shipping features without wrestling with your framework.
```bash
npm install @jadis/core
```
> The web has always been powerful. Jadis reminds you how it used to feel.
## β¨ Documentation
You can find the full documentation on [github](https://bioleyl.github.io/jadis/).
## π Contributing
Feel free to open issues or submit PRs. Simplicity is key!
## π License
MIT β Made with β€οΈ, β, a bit of π§ and Neovim.