4.16.0 • Published 1 day ago

@rindo/core v4.16.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 day ago

Rindo is a simple compiler for generating Web Components and static site generated progressive web apps (PWA). Rindo was built by the Navify team for its next generation of performant mobile and desktop Web Components.

Rindo combines the best concepts of the most popular frontend frameworks into a compile-time rather than run-time tool. It combines TypeScript, JSX, an asynchronous rendering pipeline to ensure smooth running animations and lazy-loading, to generate 100% standards-based Web Components that run on both modern browsers and legacy browsers.

Rindo components are just Web Components, so they work in any major framework or with no framework at all. In many cases, Rindo can be used as a drop in replacement for traditional frontend frameworks given the capabilities now available in the browser, though using it as such is certainly not required.

Rindo also enables a number of key capabilities on top of Web Components, in particular Server Side Rendering (SSR) without the need to run a headless browser, pre-rendering, and objects-as-properties (instead of just strings).

Getting Started

To create a new project using an interactive cli, run:

npm init rindo

To start developing your new Rindo project, run:

npm start

Creating components

Rindo components are TypeScript classes with decorator metadata. The decorators themselves are purely build-time annotations so the compiler can read metadata about each component, and removed entirely for smaller efficient components.

Create new components by creating files with a .tsx extension, such as my-component.tsx, and place them in src/components.

import { Component, Prop, h } from '@rindo/core';

@Component({
  tag: 'my-component',
  styleUrl: 'my-component.css'
})
export class MyComponent {

  @Prop() first: string;
  @Prop() last: string;

  render() {
    return (
      <div>
        Hello, my name is {this.first} {this.last}
      </div>
    );
  }
}

To use this component, just use it like any other HTML element:

<my-component first="Rindo" last="JS"></my-component>

Thanks

Rindo's internal testing suite is supported by the BrowserStack Open-Source Program

4.14.0

10 days ago

4.16.0

10 days ago

4.15.0

10 days ago

4.13.0

11 days ago

4.12.3

11 days ago

4.12.4

11 days ago

4.12.5

11 days ago

4.12.6

11 days ago

4.12.1

11 days ago

4.12.2

11 days ago

4.12.0

11 days ago

4.12.0-0

11 days ago

4.2.1

12 days ago

4.2.0-0

3 months ago

4.2.0

3 months ago

4.0.5

5 months ago

4.1.0

5 months ago

4.0.4

5 months ago

4.0.3

5 months ago

4.0.2

5 months ago

4.0.1

10 months ago

4.0.0

10 months ago

3.4.0

10 months ago

3.4.1

10 months ago

4.0.0-rc.0

10 months ago

3.3.1

10 months ago

4.0.0-beta.2

10 months ago

3.2.4

11 months ago

3.3.0

11 months ago

4.0.0-beta.1

10 months ago

4.0.0-beta.0

11 months ago

2.18.1

1 year ago

3.0.0-beta.0

1 year ago

2.22.3

1 year ago

2.22.2

1 year ago

3.0.0-alpha.1

1 year ago

3.0.0-alpha.0

1 year ago

2.5.2

1 year ago

3.0.0-alpha.2

1 year ago

3.2.2

1 year ago

3.2.1

1 year ago

3.2.0

1 year ago

3.1.0

1 year ago

3.0.1

1 year ago

3.2.3

1 year ago

3.0.0-rc.1

1 year ago

3.0.0-rc.0

1 year ago

3.0.0

1 year ago

2.17.2-0

1 year ago

2.17.4

1 year ago

2.17.2

1 year ago

2.17.3

1 year ago

2.18.0

1 year ago

2.17.1

1 year ago

1.8.12

2 years ago

1.17.4

1 year ago

2.17.0

2 years ago

2.16.1

2 years ago

2.16.1-0

2 years ago

2.16.0

2 years ago

2.16.0-beta.1

2 years ago

2.16.0-beta.0

2 years ago