• Stars
    star
    271
  • Rank 151,717 (Top 3 %)
  • Language
    JavaScript
  • License
    ISC License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

React-like Custom Elements via V1 API builtin extends.

heresy logo heresy

Don't simulate the DOM. Be the DOM.


Social Media Photo by Alexey Zhavoronkov from a2.agencylash

WebReflection status License: ISC Build Status Greenkeeper badge

React-like Custom Elements via the V1 API built-in extends. Also available for SSR.


πŸ“£ Community Announcement

Please ask questions in the dedicated discussions repository to help the community around this project grow β™₯


V1 Breaking Changes

Please be sure you understand the breaking changes landed in lighterhtml.


What is this heresy ?

This project is some sort of answer to these major trends:

  • believing you cannot have tiny APIs which are able to compete with most famous frameworks
  • believing custom elements are not cool enough to compete with such frameworks
  • believing the built-in extends of custom elements are unnecessary or not useful at all

Borrowing concepts and patterns from various libraries, heresy enables custom elements as you've never seen before:

  • declarative UI (i.e. <Component class=${...}><Section .dataset=${{...}}/></Component>) without needing JSX transformations or tooling at all
  • locally scoped custom elements to avoid name clashing and make components reusable in any context, similarly to what you can do with React components
  • automatic component name definition passed through the optional Component.style(...selectors) to inject related styles only once per definition
  • automatic handleEvent pattern so that you can forget the unnecessary overhead of this.method = this.method.bind(this)
  • out of the box lifecycle events, such as oninit(event), onconnected(event), ondisconnected(event) or onattributechanged(event), so that you can skip the ugly attributeChangedCallback and other unintuitive callbacks right away (but still use them if you like)
  • out of the box observedAttributes and booleanAttributes behavior, borrowed directly from HyperHTMLElement Class
  • automatic, smart component initializer via Component.new() that avoids all the quirks related to the initialization of custom elements and built-ins
  • an ever available comp.is string (you won't believe it's not always an attribute if created procedurally via a registered class)
  • automatic, lazy this.html and this.svg template literal tags, to populate a component's content within its optionally, locally scoped defined elements
  • provides a simplified way to target rendered nodes through the React-like ref() utility
  • hooks implemented via render({useState, ...}) definition. If a render has an argument, it will contain all hooks exported from augmentor. Import createContext from heresy, to be able to use render({useContext}). Import defineHook to create custom hooks.

Custom hooks

It is possible to define your own hooks through the defineHook(name, fn) utility.

import {defineHook} from 'heresy';

defineHook('useCounter', ({useRef}) => () => {
  const counter = useRef(0);
  return counter.current++;
});

// using the useCounter in a render
const Comp = {
  extends: 'span',
  render({useCounter}) {
    const count = useCounter();
    this.textContent = count;
  }
};

Please note that name must be unique, so if you'd like to be sure there won't ever be conflicts, use a Symbol instead of a string.

import {defineHook} from 'heresy';

const uso = Symbol();

defineHook(uso, ({useState}) => () => {
  const [current, update] = useState({});
  return [current, state => {
    update({...current, ...state});
  }];
});


const Comp = {
  extends: 'p',
  render({[uso]: useStateObject}) {
    const [state, update] = useStateObject();
    // do something with the state
  }
};

Usage in a nutshell

A component can be defined through both classes or raw object literals.

// <Item props=${{name}} />

// as object literal
const literal = {
  name: 'Item',
  extends: 'li',  // will extends li constructor
  render() {
    this.html`my name is ${this.props.name}`;
  }
};

// as class
class Item extends HTMLLiElement {
  static name = 'Item';   // necessary if code gets transpiled
  static tagName = 'li';  // necessary to indicate the kind
  render() {
    this.html`my name is ${this.props.name}`;
  }
}

While both the name and tag it represents, can be defined within the class or object, it's rather suggested to pre-define at least the tag it's going to represent, but not the name.

const literal = {
  extends: 'li',
  render() { this.html`my name is ${this.props.name}`; }
};

// in this way it's possible to define the name only via
define('Item', literal);

Alternatively, it is possible to not include name and tag, defining these via the Comp:tag or Comp<tag> convention.

class Item extends HTMLLiElement {
  render() { this.html`my name is ${this.props.name}`; }
}

define('MyItem<li>', Item);
// OR
define('MyItem:li', Item);

Which tag ?

The beauty and power of the built-in extends of custom elements is that you can literally represent any tag you want/need.

However, if you'd like to simply extend a non-standard tag, you can always fall back to the element tag kind, which will extend HTMLElement, and represent the component through its retrieved <hyphen-ized-heresy> name.

// either as object
const Component = {
  extends: 'element',
  onconnected() { console.log(this.outerHTML); }
};

// or as class
class Component extends HTMLElement {
  static get tagName() { return 'element'; }
  onconnected() { console.log(this.outerHTML); }
};

const MyElement = heresy.define('MyElement', Component);
document.body.appendChild(MyElement.new());
// in console: <my-element-heresy></my-element-heresy>

Local components in a nutshell

While define(...) will use the global registry to define the specific declarative name, making it a good practice to namespace it (i.e. FWDatePicker, StencilForm etc.), it is possible to define local components through the usage of includes, also aliased as contains.

Such a list will still pass through the registry, so that local components are fully valid custom elements that never name-clash with anything else, so that it's easier to split complex components into various sub-modules and only define their main container globally.

The following example has been rewritten with extra details and is live on codepen.

import {define, ref, render, html} from 'heresy';

import {User, Pass} from './form/ui.js';
import {validate, switchPage} from './form/utils.js';

const Form = {
  extends: 'form',
  includes: {User, Pass},
  oninit() {
    // refs can be declared upfront or inline (see render)
    this.user = ref();
    this.addEventListener('submit', this);
  },
  onsubmit(event) {
    event.preventDefault();
    if (validate(this.user.current, this.pass.current))
      fetch('/log-in').then(switchPage).catch(console.error);
  },
  // render is invoked automatically on connected
  // if no connected, or callback is explicitly defined
  render() {
    this.html`
    <label>Your name: <User ref=${this.user} name="user"></label>
    <label>Your pass: <Pass ref=${ref(this, 'pass')} name="pass"></label>
    `;
  }
};

define('SiteLogin', Form);
render(document.body, html`<SiteLogin/>`);

The includes or contains property, if present, must be a map of "Name": Component pairs, where the name could also define the tag type, like it does with define(...).

In the previous example both User and Pass are components extending input, so that the tag name is not necessary, but {"User<button>": User}, or {"User:button": User}, would eventually be valid as a local component.

How can components be local?

The main difference with local components is that their registry name gets polluted with a unique identifier, so that instead of <input is="user-heresy"> the outcome would be <input is="user-xxx-heresy">. The unique identifier in between (xxx) is added in cases where a component can be defined or used together with many other components, so that name clashing won't ever be an issue.

Class and object API summary

A similar example is live in Code Pen.

import {define, html, render} from 'heresy';

// classes or objects, to define components, are the same
class MyButton extends HTMLButtonElement {

  // (optional) static fields to define the component/class name or tag
  // use define('MyButton:button', MyButton); if you want to avoid this
  static get name() { return 'MyButton'; }
  static get tagName() { return 'button'; }

  // (optional) static callback to style components (once per definition)
  //            when there are local components, it will receive also these
  //            in definition order
  static style(MyButton) {
    // the component could be scoped so that
    // to be sure the selector is the right one
    // always use the received component to define its styles
    return `${MyButton} {
      border: 2px solid black;
    }`
  }

  // (optional) attributes that can either be true or false once accessed
  // reflected on the DOM as either present, or not
  static get booleanAttributes() { return ['checked']; }

  // (optional) store any value directly and dispatch `on${name}` on changes
  static get mappedAttributes() { return ['data']; }
  // if `ondata(event){}` is defined, event.detail will have the new value

  // (optional) native Custom Elements behavior with changes dispatched
  // through the onattributechanged callback
  static get observedAttributes() { return ['name', 'age']; }

  // (optional) event driven initialization that will happen only once
  // the ideal constructor substitute for any sort of one-off init
  // this is triggered only once the component goes live, never before *
  // * unless explicitly dispatched, of course
  oninit(event) {}

  // (optional) event driven lifecycle methods, added automatically when
  // no Custom Elements native methods such as connectedCallback, and others
  // have been explicitly set as methods
  onconnected(event) {}
  ondisconnected(event) {}
  onattributechanged(event = {attributeName, oldValue, newValue}) {}

  // (optional) populate this custom element content
  //            if the signature has at least one argument,
  //            as in render({useState, ...}),
  //            the render will be bound automatically
  //            with hooks capabilities
  render() {
    // this.html or this.svg are provided automatically
    this.html`Click ${this.props.name}!`;
  }

  // (optional) automatically defined to trigger
  // this[`on${event.type}`](event);
  handleEvent(event) {}

  // (optional) automatically defined to return this.getAttribute('is')
  get is () {}
}

// components can be defined both as classes or objects
const Generic = {

  // both name and extends are optional
  // if defined via define('Name:extends', object)
  name: 'Generic',
  extends: 'element', // or div, p, etc

  // statics are defined on the derived class
  style(selector) {},
  observedAttributes: [],
  booleanAttributes: [],

  // all other events supported too
  oninit() {}
};

// define the custom element via class (requires static name and tagName)
define(MyButton);

// or define the custom element via Component:tag
define('MyButton<button>', MyButton);

// populate some node
render(document.body, html`<MyButton props=${{name: 'Magic'}} />`);

setTimeout(() => console.log(document.body.innerHTML));
// <button is='my-button-heresy'>Click Magic!</button>

Compatibility

The test page uses and describes a few techniques to address all browsers, from IE9 to latest evergreen.

The following list describes the heresy's compatibility break down:

  • IE9 and IE10 might need an Object.freeze patch, to avoid breaking on frozen template literals when passed to polyfilled WeakMaps. The patch checks for the existence of WeakMap, hence it's completely safe for any modern browser, including IE11.
  • old Edge and all IE might need a Custom Elements polyfill upfront. In this case the famous document-register-element would be the suggested choice, since it patches built-ins right away, too.
  • Safari and WebKit have an understandable but pretty stubborn position regarding built-in elements, so that a 1K polyfill is needed in case you target Safari and WebKit.
  • you don't need a polyfill for Safari if you only extend element, but you'll miss out 90% of the fun with programming through built-in extends

Broader wider compatibility in a nutshell

<script>
  // Patch for IE9 and IE10 (browsers with no WeakMap)
  // frozen template literals cannot be addressed by common WeakMap polyfills
  // this patch avoid Object.freeze to break when template literals are passed to WeakMaps
  this.WeakMap||!function(O,f){f=O.freeze;O.freeze=function(o){return 'raw' in o?o:f(o)}}(Object);
</script>
<script>
  // Patch for all IE, Edge, and older browsers without customElements
  // completely ignored/irrelevant for any other modern browser
  // https://github.com/WebReflection/document-register-element
  this.customElements||document.write(
    '<script src="https://unpkg.com/document-register-element"><\x2fscript>'
  );
</script>
<script defer src="https://unpkg.com/@ungap/custom-elements-builtin">/*
  1K Patch for Safari/WebKit
  https://github.com/ungap/custom-elements-builtin
*/</script>

Alternatively, you can use this minified version to never download the Safari-only polyfill.

<script>if(this.customElements)try{customElements.define('built-in',document.createElement('p').constructor,{'extends':'p'})}catch(a){document.write('<script src="//unpkg.com/@ungap/custom-elements-builtin"><'+'/script>')}else document.write('<script src="//unpkg.com/document-register-element"><'+'/script>');</script>

Concept

Custom Elements built-ins are likely the best thing we have to build components the way we want to.

Instead of using a non standard indirection as JSX is, we can use the power of domtagger, the hyperHTML and lighterhtml tag engine, to replace once any <DefinedElement /> with or without nested nodes.

The Custom Elements V1 API provides enough primitives to intercept any sort of attribute (i.e. the props in the example), but also react to events such connectedCallback or disconnectedCallback and attributeChangedCallback.

Mixed up with built-in extends in a way that any component is a real thing on the DOM instead of a facade of itself, heresy makes the creation of apps, from simple to complex, a no-brainer: define the content through this.html or this.svg and that's it.

When any class is defined, it's not just necessarily a useless HTMLElement, it can be pretty much any kind of element.

The following example is live in Code Pen.

import {define, ref, html, render} from 'heresy';

// a div
define(class Div extends HTMLDivElement {
  static get name() { return 'Div'; }
  static get tagName() { return 'div'; }
});

// a paragraph
define('P<p>', class extends HTMLParagraphElement {});

// a h1
define('H1<h1>', class extends HTMLHeadingElement {});

// render them all + ref example
const refs = {};

// refs can be created right away
refs.div = ref();

// or within the render
render(document.body, html`
  <Div ref=${refs.div}>
    <H1 ref=${ref(refs, 'h1')}>Hello there</H1>
    <P>This is how custom elements look via heresy.</P>
    <P>Isn't this awesome?</P>
  </Div>
`);

console.log(refs.h1.current); // the H1 instance/node

Local components live example

You can see the following example live.

// p.js - could be an object too
export default class extends HTMLParagraphElement {
  static get tagName() { return 'p'; }
  oninit() {
    console.log(this.outerHTML);
  }
};

// first.js - it has a local P
import P from './p.js';
export default {
  extends: 'div',
  includes: {P},  // with its own definition
  render() {
    this.html`<P>first</P>`;
  }
};

// second.js - it uses P again as local
import P from './p.js';
export default {
  extends: 'div',
  includes: {P},  // with its own definition
  render() {
    this.html`<P>second</P>`;
  }
};

// index.js
const {define, render, html} = heresy;

import First from './first.js';
import Second from './second.js';

const Div = define('Div', {
  extends: 'div',
  includes: {First, Second},
  render() {
    this.html`<First/><Second/>`;
  }
});

// either
render(document.body, html`<Div/>`);
// or even document.body.appendChild(Div.new());

CSS - The components style precedence

Components are defined once per kind, and the styles of local components are appended live before the outer component, giving it the ability to force extra styles when needed, or improve the specificity for a specific component/style when used within some other.

const Div = define('Div', {
  extends: 'div',
  includes: {First, Second},
  // will receive the selectors for self and included components
  style(Div, First, Second) {
    // since outer component style is injected after
    // it is possible to eventually overwrite nested
    // components through higher priority / specificity
    return `
      ${Div} { font-size: 16px; }
      ${Div} > ${First} { padding: 0; }
      ${Div} ${Second} { font-weight: smaller; }
    `;
    console.log([Div, First, Second].join(', '));
  },
  render() {
    this.html`<First/><Second/>`;
  }
});

You can see what the style(...) receives reading the console in this live demo.

CSS - How to query or style all globally defined components

Every global built-in extend will have a -heresy suffix to ensure both that the Custom Element can be registered, but also grant a common pattern to reach components.

*[is$='-heresy']:hover {
  opacity: .8;
}

/* ⚠ too specific: it does not work with local components */
tag[is='specific-heresy'] {
  display: block;
}

CSS - How to query or style local components

When components are defined locally, there will be an incremental number between the component name and the -heresy suffix.

Instead of addressing a specific suffix, it is instead suggested to address the known prefix.

/* β„Ή usable for both globally registered and nested components */
tag[is^='my-button-'] {
  display: block;
}

Project Showcases

Project Achievements

  • declared elements are the instance you'd expect (no virtual, no facade)
  • declared elements can be of any kind (table, tr, select, option, ...), including element
  • declare any component within other components, breaking the limits of a single, name-clashing based registry
  • any attribute change, or node lifecycle, can be tracked via the Custom Elements V1 API (no componentDidMount and friends)
  • oninit, onconnected, ondisconnected, and onattributechanged events out of the box
  • handleEvent paradigm out of the box
  • observedAttributes and booleanAttributes do what everyone expects these to do
  • no redundant dom nodes, no ghost fragments, an "as clean as possible" output
  • the performance of lighterhtml, fine tuned for this specific use case
  • it's SSR (Server Side Rendering) friendly, and custom elements hydrate automatically
  • usage of ref to simplify reaching nodes after render
  • automatic render when the method is present and no onconnected or connectedCallback has been explicitly defined
  • CSS specificity is granted per each component via style: selector => '...' so that there is no need to use Shadow DOM and the heavy polyfills related to it

More Repositories

1

hyperHTML

A Fast & Light Virtual DOM Alternative
HTML
3,028
star
2

linkedom

A triple-linked lists based DOM implementation.
HTML
1,156
star
3

document-register-element

A stand-alone working lightweight version of the W3C Custom Elements specification
JavaScript
1,131
star
4

dom4

Modern DOM functionalities for every browser
JavaScript
929
star
5

flatted

A fast and minimal circular JSON parser.
JavaScript
893
star
6

url-search-params

Simple polyfill for URLSearchParams standard
JavaScript
765
star
7

uhtml

A micro HTML/SVG render
JavaScript
707
star
8

lighterhtml

The hyperHTML strength & experience without its complexity πŸŽ‰
JavaScript
702
star
9

JSONH

Homogeneous Collection Compressor
JavaScript
618
star
10

circular-json

JSON does not handle circular references. Now it does
JavaScript
599
star
11

viperHTML

Isomorphic hyperHTML
JavaScript
318
star
12

es6-collections

Map, WeakMap, and Set fast/simple shim for Harmony collections
JavaScript
253
star
13

neverland

React like Hooks for lighterhtml
JavaScript
241
star
14

wicked-elements

Components for the DOM as you've never seen before
JavaScript
235
star
15

eddy

Event Driven JS
JavaScript
211
star
16

dblite

sqlite for node.js without gyp problems
JavaScript
209
star
17

domdiff

Diffing the DOM without virtual DOM
JavaScript
197
star
18

hyperHTML-Element

An extensible class to define hyperHTML based Custom Elements.
JavaScript
195
star
19

benja

Bootable Electron Node JS Application
194
star
20

uce

Β΅html based Custom Elements
JavaScript
183
star
21

usignal

A blend of @preact/signals-core and solid-js basic reactivity API
JavaScript
176
star
22

highlighted-code

A textarea builtin extend to automatically provide code highlights based on one of the languages available via highlight.js
HTML
172
star
23

restyle

JavaScript
167
star
24

testardo

a browser and OS agnostic web driver for mobile and desktop
JavaScript
166
star
25

sqlite-worker

A simple, and persistent, SQLite database for Web and Workers.
JavaScript
159
star
26

augmentor

Extensible, general purpose, React like hooks for the masses.
JavaScript
135
star
27

uhooks

micro hooks: a minimalistic client/server hooks' implementation
JavaScript
127
star
28

polpetta

Polpetta, any folder is served spiced
JavaScript
125
star
29

basicHTML

A NodeJS based, standard oriented, HTML implementation.
JavaScript
123
star
30

udomdiff

An essential diffing algorithm for Β΅html.
JavaScript
117
star
31

pocket.io

A minimalistic version of socket.io that weights about 1K instead of 60K.
JavaScript
112
star
32

caller-of

The tiniest yet most powerful JS utility ever :D
HTML
102
star
33

uland

A Β΅html take at neverland
JavaScript
101
star
34

uce-template

A Vue 3 inspired Custom Elements toolless alternative.
JavaScript
100
star
35

json.hpack

JSON Homogeneous Collections Packer
C#
95
star
36

wru

essential unit test framework
JavaScript
95
star
37

html-escaper

A module to escape/unescape common problematic entities done the right way.
JavaScript
95
star
38

udomsay

A stricter, signals driven, ESX based library
JavaScript
95
star
39

db

JavaScript
94
star
40

import.js

A dynamic import() polyfill
JavaScript
93
star
41

regular-elements

Custom Elements made available for any node, and through CSS selectors
JavaScript
91
star
42

proxy-pants

Secured and reliable Proxy based utilities for more or less common tasks.
JavaScript
90
star
43

ucompress

A micro, all-in-one, compressor for common Web files.
JavaScript
90
star
44

archibold.io

archibold.io
Shell
85
star
45

jsgtk

A simplified approach to GJS for Node.JS and JavaScript developers.
JavaScript
85
star
46

heresy-ssr

πŸ”₯ heresy πŸ”₯ Server Side Rendering
JavaScript
84
star
47

hypersimple

The easiest way to use hyperHTML
JavaScript
83
star
48

asbundle

A minimalistic JS bundler
JavaScript
77
star
49

introspected

Introspection for serializable arrays and JSON friendly objects.
HTML
77
star
50

node-gtk

GNOME Gtk+ bindings for NodeJS
C++
74
star
51

i18n-utils

The i18n tag function utilitities
JavaScript
73
star
52

viper-news

viperHTML version of the Hacker News app.
JavaScript
72
star
53

ucdn

A Β΅compress based CDN utility, compatible with both Express and native http module
JavaScript
67
star
54

electroff

A cross browser, electron-less helper, for IoT projects and standalone applications.
JavaScript
64
star
55

builtin-elements

A zero friction custom elements like primitive.
JavaScript
62
star
56

nonchalance

The easiest way to augment DOM builtin elements.
JavaScript
61
star
57

universal-mixin

A mixin usable for both generic objects and decorators.
JavaScript
59
star
58

attachshadow

An iframe based Shadow DOM poorlyfill
JavaScript
59
star
59

ucontent

An SSR HTML content generator.
JavaScript
58
star
60

dom-augmentor

Same as augmentor but with DOM oriented useEffect handling via dropEffect.
JavaScript
56
star
61

ascjs

ES2015 to CommonJS import/export transformer
JavaScript
55
star
62

geo2city

Basic offline reverse geocode
JavaScript
53
star
63

vanilla-elements

A Minimalistic Custom Elements Helper.
JavaScript
51
star
64

wrist

Minimalistic utility for generic one/two ways data bindings.
HTML
51
star
65

screenfit

A cross platform, cross WebView, solution to fit 100% any Web page.
HTML
50
star
66

html-parsed-element

A base custom element class with a reliable `parsedCallback` method.
HTML
50
star
67

sqlite-tag

Template literal tag based sqlite3 queries.
JavaScript
49
star
68

jsdon

A DOM serializer based on LinkeDOM idea
HTML
48
star
69

echomd

A terminal oriented MD like syntax
JavaScript
48
star
70

dom-class

A lightweight, cross browser, simplification of WebComponents.
JavaScript
46
star
71

cloner

Cloning ES5+ objects in a shallow or deep way
JavaScript
46
star
72

css-proxied-vars

The easiest way to set, read, or update, CSS variables per each element.
JavaScript
46
star
73

event-target

The EventTarget Class Polyfill.
HTML
46
star
74

hn

Isomorphic Hacker News
JavaScript
45
star
75

proxied-worker

A tiny utility to asynchronously drive a namespace exposed through a Worker.
JavaScript
45
star
76

Database

Web SQL Storage Made Easy
JavaScript
44
star
77

promise

Abortable and Resolvable Promises.
JavaScript
43
star
78

poorlyfills

Simplified, partial, and poor ES6 collections polyfills, targeting IE9+ and older mobile browsers.
HTML
43
star
79

babel-plugin-transform-builtin-classes

A fix for the infamous Babel #4480 bug.
JavaScript
43
star
80

redefine

lightweight utility for smart object properties definition
JavaScript
42
star
81

nativeHTML

coming soon
JavaScript
42
star
82

bidi-sse

Bidirectional Server-sent Events
JavaScript
42
star
83

domtagger

The hyperHTML's template literal parser
JavaScript
41
star
84

hooked-elements

wickedElements πŸ§™ with render hooks
JavaScript
41
star
85

classtrophobic

Breaking JS Class Constrains
HTML
41
star
86

a-route

Express like routing as Custom Element or standalone
JavaScript
40
star
87

header-snippets

A collection of snippets to put in your header.
HTML
40
star
88

life-diary

your albums, your journey, your data
JavaScript
40
star
89

static.email

The easiest way to send emails on the Web
JavaScript
39
star
90

lazytag

Lazy loading Custom Elements and their styles without even thinking about it.
JavaScript
38
star
91

es-class

ECMAScript 3 to 6 compatible Class definition
JavaScript
38
star
92

tiny-cdn

A tiny static files serving handler
JavaScript
37
star
93

broadcast

Notification channel for the past, the present, and the future.
JavaScript
37
star
94

p-cool

Pretty Cool Elements
JavaScript
36
star
95

monthly

A simplified way to show a calendar month in any console.
HTML
36
star
96

jsx2tag

Enable JSX for Template Literal Tags based projects.
JavaScript
36
star
97

consolemd

Bringing echomd to console.
JavaScript
36
star
98

common-js

CommonJS + module.import() for any Browser
JavaScript
35
star
99

qsa-observer

handle elements lifecycle through CSS selectors
JavaScript
35
star
100

create-viperhtml-app

A basic viperHTML + hyperHTML setup
JavaScript
35
star