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

pict-section-formeditor

v1.0.12

Published

Pict visual editor for pict-section-form configurations

Readme

pict-section-formeditor

A visual editor for pict-section-form configuration manifests. Build, edit, and preview form layouts in the browser with a drag-and-drop interface, inline property editing, solver expression authoring, and live form preview.

Features

  • Visual Editor -- Drag-and-drop sections, groups, rows, and inputs in a structured layout
  • JSON Editor -- Edit the raw manifest JSON with syntax highlighting via CodeJar
  • Properties Panel -- Inline editing of section, group, row, and input properties
  • Solver Editor -- Author solver expressions with a built-in expression linter and token inspector
  • Live Preview -- Render the form as it will appear to end users using a child pict instance
  • Embedded Help -- Context-sensitive documentation for all 127+ solver functions, input types, and editor features
  • Input Type Picker -- Browse all available pict-section-form input types organized by category
  • Display Modes -- Toggle between human-readable names and manifest hash identifiers

Installation

npm install pict-section-formeditor

Quick Start

Add the form editor view to any pict application:

const libPict = require('pict');
const libPictApplication = require('pict-application');
const libPictSectionFormEditor = require('pict-section-formeditor');

class MyApp extends libPictApplication
{
    onAfterInitializeAsync(fCallback)
    {
        // Provide a manifest object at a known AppData address
        this.pict.AppData.FormConfig =
        {
            Scope: 'MyForm',
            Sections: [],
            Descriptors: {}
        };

        // Add the form editor view
        this.pict.addView('FormEditor',
        {
            ViewIdentifier: 'FormEditor',
            ManifestDataAddress: 'AppData.FormConfig',
            DefaultDestinationAddress: '#FormEditor-Container',
            ActiveTab: 'visual'
        }, libPictSectionFormEditor);

        // Initialize and render
        this.pict.views.FormEditor.initialize();
        this.pict.views.FormEditor.render();

        return super.onAfterInitializeAsync(fCallback);
    }
}

In your HTML, provide a container element and the Pict CSS style block:

<style id="PICT-CSS"></style>
<div id="FormEditor-Container"></div>

Configuration Options

| Option | Type | Default | Description | |---|---|---|---| | ManifestDataAddress | String | 'FormEditor.Manifest' | AppData address where the manifest object lives | | DefaultDestinationAddress | String | -- | CSS selector for the editor container element | | ActiveTab | String | 'visual' | Initial tab: 'visual', 'json', or 'preview' |

Manifest Format

The editor works with standard pict-section-form manifests:

{
    "Scope": "MyForm",
    "Sections": [
        {
            "Hash": "Details",
            "Name": "Contact Details"
        }
    ],
    "Descriptors": {
        "Name": {
            "Name": "Full Name",
            "Hash": "Name",
            "DataType": "String",
            "PictForm": { "Section": "Details", "Row": 1, "Width": 1 }
        }
    }
}

Running the Example Application

cd example_applications/form_editor
npm install
npx quack build
# Open html/index.html in a browser

Building

npm test         # Run tests
npx quack build  # Bundle the library

License

MIT