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 🙏

© 2026 – Pkg Stats / Ryan Hefner

superleap-features

v1.0.58

Published

A codebase for forms automation and more that is to be used in feature like forms and workflows in app and web

Readme

superLeap-features v1.0.58

Installation & Usage

For React/Vue/Angular Apps (Module Import)

Installation

# Via npm
npm install superleap-features

# Via yarn
yarn add superleap-features

Import Guide

This package is designed to be tree-shakable. Import only what you need using the subpath imports below.

📦 Available Imports

1. Forms - Automation Types and Utils ✅ Recommended

// Automation types
import type { ComponentLocation } from 'superleap-features/automation';

// Automation utilities
import type { executeFunction } from 'superleap-features/automation';

2. Forms - Automation Node Handlers ✅ Recommended

// Form, field, and utility handlers
import {
  handleFormOnLoad,
  handleFormOnSubmit,
  handleFieldOnChange,
  handleSendHttpRequest,
  handleParseJson
} from 'superleap-features/automation/handlers';

2a. Forms - Mobile Automation Node Handlers ✅ For React Native

// Mobile-specific handlers for React Native apps
import {
  handleFrontendExecuteFunctionMob,
  handleScriptTriggerMob,
  setGlobalCodeExecutor
} from 'superleap-features/automation/handlersMob';

3. Forms - CodeEditor Types and Utils ✅ Recommended

// CodeEditor utilities
import { editorUtilityFunctions } from 'superleap-features/automation/codeEditor';

// CodeEditor Types (base, element, layout, media)
import {BaseComponentInstance } from 'superleap-features/automation/codeEditor';

4. Forms - CodeEditor Instance Utils ✅ Recommended

// CodeEditor InstanceUtils (base, element, layout, media)
import { createAudioRecordingInstance } from 'superleap-features/automation/codeEditor/instanceUtils';

4. Forms - Form Types and Utils ✅ Recommended

// Form types and Utils
import { SubmitButtonType, getAllFieldInstances } from 'superleap-features/form';

5. Forms - Form Actions ✅ Recommended

// Granular form actions
import { createAddActions, createGetterActions } from 'superleap-features/form/actions';

6. Workflows Module ✅ Recommended

// Workflow utilities
import {
  executeWorkflow,
  validateWorkflowNode
} from 'superleap-features/workflows';

// Workflow types
import {
  WorkFlowNode,
  ExecutedInOut,
  ValidationError
} from 'superleap-features/workflows';

7. Global Types & Enums ✅ Recommended

// Global types, enums, and utilities
import {
  ErrorCodes,
  DataType,
  FieldType,
  ComponentType,
  AccessLevel,
  Operators,
  ButtonVariant,
  ActionTypeSlug,
  ViewType
} from 'superleap-features';

🎯 Usage Examples

Example 1: Form Automation

import { handleFormOnLoad, handleFieldOnChange } from 'superleap-features/automation/handlers';
import { SubmitButtonType, getAllFieldInstances } from 'superleap-features/form';

const formStore: FormStore = { /* ... */ };

// Handle form load event
const result = handleFormOnLoad(formStore);

// Handle field change
handleFieldOnChange(formStore, 'fieldId', newValue);

Example 1a: React Native Form Automation

import { 
  handleFrontendExecuteFunctionMob,
  setGlobalCodeExecutor
} from 'superleap-features/automation/handlersMob';

// IMPORTANT: Set up custom code executor in your React Native app initialization
// This is required because React Native's Metro bundler restricts eval() in node_modules
// Add this in your app's entry point (e.g., App.tsx or index.js)
setGlobalCodeExecutor((code: string) => {
  // Use eval directly in your app code (not from node_modules)
  // This works because Metro allows eval in app code but not in bundled packages
  return eval(`(function() { ${code} })`);
});

// Now you can use the mobile handlers
const result = await handleFrontendExecuteFunctionMob(
  createSuperLeapSDK,
  getSDKInstance,
  node,
  formStore,
  nodesOutput,
  toast
);

🌲 Tree-Shaking Best Practices

  1. ✅ DO: Use specific subpath imports

    import { addField } from 'superleap-features/form/actions';
  2. ⚠️ AVOID: Importing from main entry when possible

    import { addField } from 'superleap-features'; // imports everything
  3. ✅ DO: Import only what you need

    import { handleFormOnLoad } from 'superleap-features/automation/handlers';
  4. ✅ DO: Use type imports separately

    import type { FormStore } from 'superleap-features/form';

📁 Package Structure

superleap-features/
├── index.js                          # Main entry (all modules)
├── global.js                         # Global types, enums & utilities
├── automation/                       # Forms automation
│   ├── index.js                     # Automation utils & types
│   ├── handlers/                    # Node handlers
│   │   └── index.js                # Form, field, utility handlers
│   └── codeEditor/                  # Code editor utilities
│       ├── index.js                # Editor utils & types
│       └── instanceUtils/          # Instance utilities
│           └── index.js            # Base, element, layout, media
├── form/                            # Form module
│   ├── index.js                    # Form utils & types
│   └── actions/                    # Form actions
│       └── index.js               # Add, delete, update, validate
└── workflows/                       # Workflows module
    └── index.js                    # Workflow utils & types