/granula

Granula - is a lightweight alternative to Angular (like Preact for React)

Primary LanguageTypeScript

Granula

Is a lightweight alternative to Angular (like Preact for React). Right now on State 0. Not stable, but ready for production

QuickStart

npm i -S @granulajs/platform-browser-granula

Add GranularBrowserModule right after BrowserModule

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
// add this line
import { GranulaBrowserModule } from '@granulajs/platform-browser-granula';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    // and this line
    GranulaBrowserModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

Roadmap

Stage 0

  • JIT Runtime
  • AOT Runtime
  • Simple version of Garbage Change Detection
  • Fix for HttpParams encoding (angular/angular#18261)

Stage 1

  • Full version of Garbage Change Detection
  • Dumb template parser (using DOM parser)
  • @granula/cli
  • @granula/router (smaller/faster)

Stage 2

  • Stable release