New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

treege

Package Overview
Dependencies
Maintainers
1
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

treege

Form decision tree generator

latest
npmnpm
Version
2.1.0
Version published
Weekly downloads
159
245.65%
Maintainers
1
Weekly downloads
 
Created
Source
Treege

Treege is a tools for decision tree generator

npm version

Video Thumbnail

Installation

yarn add treege

Usage

import { Treege } from "treege";

const App = () => {
  return <Treege />;
};

export default App;

Options

PropsTypeDefaultRequiredDetail
backendConfigobjectundefinedfalseBackend configuration. Only necessary if you want backend communication.
initialTreeIdstringundefinedfalseIf provided, this will fetch initial tree id. Cannot provided with initialTree in same time
initialTreeobjectundefinedfalseInitial tree data. Cannot provided with initialTreeId in same time

backendConfig

PropsTypeDefaultRequiredDetail
baseUrlstringundefinedtrueBase url for API communication. ex : https://api.treege.com
authTokenstringundefinedfalseAuthentication token
endpointsobjectundefinedfalseEndpoints configuration

endpoints

PropsTypeDefaultRequiredDetail
workflowstringundefined"/v1/workflow"Endpoint for get/post/patch single workflow
workflowsstringundefined"/v1/workflows"Endpoint for get all workflows. It is a array on workflow

Backend model need to be compatible with the following interface:

interface Workflow {
  id: string;
  name: string;
  description: string;
  tree: Tree;
}

Tree is a JSON object generated by Treege with the following interface:

interface Tree {
  name: string;
  attributes: any;
  children: Tree[];
  treeId?: string;
}

How use Treege data ?

You can easily generate a form with the React library treege-consumer or use our own application !

Local installation

Clone the repository and install dependencies

yarn install

Locally preview production build

Convention

Type Definitions

This library uses type definitions from @tracktor/types-treege

Keywords

react

FAQs

Package last updated on 15 Sep 2025

Did you know?

Socket

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.

Install

Related posts