Thanks to and
for this amazing utility
The Hive blockchain ecosystem, with its various layers and sidechains, relies on robust infrastructure. For developers building on Hive-Engine, ensuring a reliable connection to a healthy node is paramount. This is where the flowerengine account on Hive plays a crucial role, providing regularly updated metadata on Hive-Engine nodes.
We're excited to announce flowerengine-ts, a new TypeScript library designed to seamlessly retrieve and process this vital node information. This project, available on GitHub, aims to empower developers with a reliable, type-safe way to connect to the Hive-Engine sidechain.
One of the most significant aspects of flowerengine-ts is its foundation in TypeScript. For those familiar with JavaScript, TypeScript adds a powerful layer of static typing, transforming the development experience and the quality of the final product.
Here's why moving to TypeScript was a critical decision for this library:
By embracing TypeScript, flowerengine-ts offers not just functionality, but also a guarantee of higher quality and a smoother development workflow.
flowerengine-ts leverages the flowerengine Hive account's JSON metadata to provide comprehensive node management capabilities:
flowerengine account, giving you access to all reported node information.flowerengine report to help you select the most performant node for your application's needs.Getting started with flowerengine-ts is straightforward.
Prerequisites:
You'll need Node.js (LTS version recommended) and npm (or Yarn) installed on your system.
Installation:
git clone https://github.com/TheCrazyGM/flowerengine-ts.git
cd flowerengine-ts
npm install
# or
# yarn install
npm run build
Usage:
The library exposes core functions like updateNodesFromAccount, getBestNode, and getFullNodeReport from src/node-updater.ts. You can explore src/example-usage.ts for a practical demonstration of how to fetch node information and even query token details from a selected Hive-Engine node.
For local development or testing flowerengine-ts in another project before publishing, npm link provides a seamless way to create symbolic links to your local build. The repository also includes a basic HTML example in examples/browser/ to showcase its utility directly in a web browser.
The ultimate goal for flowerengine-ts is to be published as an official NPM package. This will make it incredibly easy for any JavaScript or TypeScript project to integrate reliable Hive-Engine node management by simply running npm install flowerengine-ts. This move will significantly broaden its accessibility and utility within the Hive developer community.
flowerengine-ts represents a step forward in building robust Hive-Engine applications. By leveraging TypeScript's powerful features, it offers developers a more reliable, efficient, and enjoyable way to interact with Hive-Engine nodes. We invite you to explore the GitHub repository, contribute to its development, and integrate it into your next Hive-Engine project.
What kind of Hive-Engine application are you building that could benefit from reliable node access?
SPANISH
El ecosistema de la blockchain de Hive, con sus diversas capas y sidechains, se basa en una infraestructura robusta. Para los desarrolladores que construyen en Hive-Engine, asegurar una conexión fiable a un nodo saludable es primordial. Aquí es donde la cuenta flowerengine en Hive juega un papel crucial, proporcionando metadatos de nodos Hive-Engine actualizados regularmente.
Nos entusiasma anunciar flowerengine-ts, una nueva librería TypeScript diseñada para recuperar y procesar sin problemas esta información vital de los nodos. Este proyecto, disponible en GitHub, tiene como objetivo empoderar a los desarrolladores con una forma fiable y tipada de conectarse a un nodo de la sidechain de Hive-Engine.
Uno de los aspectos más significativos de flowerengine-ts es su base en TypeScript. Para quienes están familiarizados con JavaScript, TypeScript añade una potente capa de tipado estático, transformando la experiencia de desarrollo y la calidad del producto final.
Aquí te explicamos por qué migrar a TypeScript fue una decisión crítica para esta librería:
Al adoptar TypeScript, flowerengine-ts ofrece no solo funcionalidad, sino también una garantía de mayor calidad y un flujo de trabajo de desarrollo más fluido.
flowerengine-ts aprovecha los metadatos JSON de la cuenta flowerengine de Hive para proporcionar capacidades completas de gestión de nodos:
flowerengine, dándote acceso a toda la información de los nodos reportados.flowerengine para ayudarte a seleccionar el nodo más eficiente para las necesidades de tu aplicación.Empezar con flowerengine-ts es sencillo.
Requisitos previos:
Necesitarás Node.js (se recomienda la versión LTS) y npm (o Yarn) instalados en tu sistema.
Instalación:
git clone https://github.com/TheCrazyGM/flowerengine-ts.git
cd flowerengine-ts
npm install
# o
# yarn install
npm run build
Uso:
La librería expone funciones principales como updateNodesFromAccount, getBestNode y getFullNodeReport desde src/node-updater.ts. Puedes explorar src/example-usage.ts para una demostración práctica de cómo obtener información de nodos e incluso consultar detalles de tokens desde un nodo Hive-Engine seleccionado.
Para el desarrollo local o para probar flowerengine-ts en otro proyecto antes de su publicación, npm link proporciona una forma sencilla de crear enlaces simbólicos a tu build local. El repositorio también incluye un ejemplo básico en HTML en examples/browser/ para mostrar su utilidad directamente en un navegador web.
El objetivo final de flowerengine-ts es ser publicado como un paquete oficial de NPM. Esto hará que sea increíblemente fácil para cualquier proyecto de JavaScript o TypeScript integrar una gestión fiable de nodos Hive-Engine simplemente ejecutando npm install flowerengine-ts. Este paso ampliará significativamente su accesibilidad y utilidad dentro de la comunidad de desarrolladores de Hive.
flowerengine-ts representa un avance en la construcción de aplicaciones robustas de Hive-Engine. Al aprovechar las potentes características de TypeScript, ofrece a los desarrolladores una forma más fiable, eficiente y agradable de interactuar con los nodos de Hive-Engine. Te invitamos a explorar el repositorio de GitHub, contribuir a su desarrollo e integrarlo en tu próximo proyecto de Hive-Engine.
¿Qué tipo de aplicación Hive-Engine estás construyendo que podría beneficiarse de un acceso fiable a los nodos?