Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
estrela
Advanced tools
Readme
Estrela is a Javascript framework to develop reactive web apps.
Estrela is a modern TypeScript library inspired by popular frameworks such as React, Angular, and Solid. It provides a comprehensive set of features while leveraging reactive programming to create responsive and dynamic applications.
// main.tsx
import { onDestroy, signal } from 'estrela';
function App() {
const count = signal(0);
const interval = setInterval(() => count.update(x => x + 1), 1000);
onDestroy(() => clearInterval(interval));
return <Count count={count()} />;
}
function Count(this: { count: number }) {
return <div>Count is {this.count}</div>;
}
App().mount(document.getElementById('app')!);
Reactive Signal-based Framework: Estrela's core architecture is built around signals, enabling reactive programming. Signals allow for efficient data flow and automatically update the UI whenever the underlying data changes.
Main Functionalities: Estrela comes with all the essential functionalities you need to build robust applications. It provides components, lifecycle hooks, and utilities for managing state, handling events, and rendering user interfaces efficiently.
Built-in Styling with CSS-in-JS: Estrela incorporates CSS-in-JS styling, allowing you to write component-specific styles directly in your TypeScript code. This approach promotes component encapsulation and eliminates the need for external CSS files.
Router: The built-in router simplifies navigation within your application. It provides declarative routing capabilities, enabling you to define routes and associated components effortlessly.
Store: Estrela includes a powerful store mechanism for managing global state. The store facilitates state sharing across components and ensures consistent and predictable updates throughout your application.
Start a new Estrela project by running the following degit
command:
$ npx degit estrelajs/template my-project-name
$ cd my-project-name
# using Yarn:
$ yarn
$ yarn dev
# or using NPM:
$ npm i
$ npm run dev
Check the documentation for more information.
See it in action on this Todo App example. You can find source code for this example here.
Since version v0.10.0, Estrela uses a new dom manager system which boosted the performance of the application making it faster than React and Angular. Still have many things to polish to make it even faster.
This is a performance chart comparing Estrela to other famous frameworks:
Estrela is open source and we appreciate issue reports and pull requests.
Estrela is released under the MIT License. Feel free to use it in both open-source and commercial projects.
FAQs
Full Reactive Framework
The npm package estrela receives a total of 0 weekly downloads. As such, estrela popularity was classified as not popular.
We found that estrela demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.