npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

rosana

v1.3.0

Published

<div align="center"><img src="./rosana.png" width="100" /></div>

Readme

rosana.ds

rosana.ds is a flexible and high-performance framework designed for building reactive and dynamic applications.

By utilizing a UINode-based Virtual DOM (VDOM), it bridges UI concepts across multiple platforms, including web and native, making it a versatile choice for modern app development.

Installation

To install the framework, you can choose between npm or deno:

  • Using npm:

    npm install rosana
  • Using deno:

    deno add jsr:@roseframework/rosana

Documentation

The documentation is evolving as the framework grows. Meanwhile, explore the provided examples and utilize LSP suggestions to get started quickly.

Key Features

UINode Tree for Multi-Platform Rendering

Rosana's VDOM system leverages a UINode tree to efficiently manage and update UI components. This makes the framework adaptable for rendering across various platforms.

import { CreateLayout, Button, Image } from "rosana";
import { DOMRenderer } from "rosana/html";
import { home } from "./style";

const homePage = CreateLayout("linear", "fillxy,vcenter");

Button("Hello World", {
    styles: home.button,
    parent: homePage,
});

Button("Hello World 2", {
    parent: homePage,
});

const appRoot = document.getElementById("app")!;
window.RENDERER = new DOMRenderer(appRoot, homePage);

Making Values Reactive With Signals

Signals provide a declarative way to handle reactivity, enabling efficient UI updates.

import { signal } from 'rosana';

let count = signal(0);

count.subscribe((value) => {
    console.log(`Count is now: ${value}`);
});

count.value += 1;

Making value's Observable With Observables

The function makeThisObservable adds an observe function to your object and then it reports to you whenever the value's object properties are changed.

import { makeThisObservable } from 'rosana';

let user = Object();
user = makeThisObservable(user);
user.observe((prop, value)=>{
    console.log(`prop: ${prop}`)
    console.log(`val: ${value}`)
})

// We add a value to the object :
user.name = 'Oarabile'

// This is logged to the console
// prop : name
// val : Oarabile

Platform-Agnostic Rendering

By adopting a UINode tree structure, Rosana decouples rendering logic from platform-specific implementations. This allows developers to integrate with DOM renderers, native renderers, or custom backends.

Enhanced Event Management

Rosana optimizes event handling by using centralized listeners, reducing memory overhead.

import { Button } from 'rosana';

let button = Button('Submit', { parent: rootNode });

button.attributes = {
    onpress : function (){
        console.log('Button Pressed');
    }
};

Defining Components

import { Container, Button } from 'rosana';

const Card = Container('linear', ' center');

Button('Click Me', { parent: Card });

export default Card;

Styling Components

We implement a similar methodology to react natives StyleSheet.Create or sylex's stylesheet.create.

You add the style property to the widgetproperties parameter of that ui object.

Firstly define you script styles:

import { StyleSheet } from "rosana/html";

export const home = StyleSheet.Create({
    nav: {
        width: "100%",
        height: "60px",
        backgroundColor: "white",
    }
    button: {
        padding: "10px 20px",
        fontSize: "16px",
        backgroundColor: "#61dafb",
        border: "none",
        borderRadius: "5px",
        cursor: "pointer",
        "&:hover": {
            backgroundColor: "#21a1f1",
        },
    },
});

Then import and set that property:

import { CreateLayout, Button, Image } from ".rosana";
import { DOMRenderer } from "rosana/html";
import { home } from "./style";

const homePage = CreateLayout("linear", "fillxy,vcenter");

Button("Hello World", {
    styles: home.button,
    parent: homePage,
});
...

Contributing

We welcome contributions to rosana.ds! To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make changes and commit (git commit -am 'Add new feature').
  4. Push to your fork (git push origin feature-branch).
  5. Open a Pull Request.

Feel free to suggest new features and improvements.

License

This project is licensed under the MIT License. See the LICENSE file for details.