GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pipelex-sdk/method-apps at main · Pipelex/pipelex-sdk

Expand file tree

/

method-apps

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

method-apps

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.vscode
.vscode
 
 
cli-python
cli-python
 
 
docs
docs
 
 
initializers
initializers
 
 
scripts
scripts
 
 
webapp-js
webapp-js
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 

README.md

Outline

pipelex-method-apps

Templates for an app that runs MTHDS methods through the Pipelex API, one directory per shape and language. A template ships no method: it ships what every method needs, and one command turns a copy of it into the app for the method you have.

Template What a copy becomes
webapp-js/ A Next.js 16 web app that renders each method's input form and result view from the method's own contract, and runs it through @pipelex/sdk
cli-python/ A Python command-line tool that runs the method through pipelex-sdk and prints its result as JSON on stdout; its make create turns a copy into the command for one method

Looking for worked examples instead? pipelex-starter-js is the gallery the web app template was extracted from, with several demo methods presented as tabs, and pipelex-starter-python the one the command-line template was extracted from.

Start a project from a template

A project is a copy of one template directory, and nothing else from this repository. One command writes the template into a new directory, commits it as it came, and runs the template's create gesture with your method; a second starts the app:

export PIPELEX_API_KEY=…                               # from app.pipelex.com
npm create @pipelex/method-app@latest my-app -- --method path/to/my_method.mthds
cd my-app
npm run serve                                          # the URL, once the page answers

npm run serve starts the dev server in the background and proves that the page answers, and npm run serve -- stop stops it; npm run dev runs it in the foreground instead. They run on every system, Windows included, and with make they are also make serve, make stop and make dev. In Windows PowerShell 5.1, whose default execution policy refuses a typed npm, type npm.cmd in its place, as in npm.cmd run serve, which runs in every Windows shell; on Windows, the commands their verdicts and next steps name are spelled that way. --method takes a .mthds file or a directory of them, a method id from your organization's catalog (mt_…, or mt_…@<version> and mt_…@draft to pin a version or run the draft), or a published package address. The initializer's README lists its options, what it does with git, and the verdict each run ends with. The template's own README and docs/create.md say what the create gesture does and how to override what it derives.

The Python templates have no initializer yet: the command-line template's own README copies it out of a release's tag with curl and tar, and its docs/create.md says what its make create does with your method.

Working on the templates

Each template is self-contained: it has its own Makefile, its own CLAUDE.md and its own checks, and works from inside its directory exactly as it will in a project. The family root carries what belongs to the family, and runs every template's gate at once:

Target Purpose
make install Install every template's dependencies
make check The family's own checks, then every template's make check
make test The tests of the family's scripts and of the initializer, then every template's tests
make all check, test, then every template's build
make check-family Check the formatting of the family root's own files
make use-local Install this repository's SDK and the workspace's mthds-form or mthds-python checkout in every template
make use-local-form Install the workspace's mthds-form checkout alone into every template that uses the form kernel
make use-published Restore the Pipelex packages each template's lock file pins
make use-published-form Restore the @pipelex/mthds-form version the lock file pins, in every template that uses the form kernel
make local-status Say, for every template, whether each Pipelex package comes from a sibling checkout or from its registry

make help lists them all. docs/family.md explains the layout: why the repository's root twins each template's workflows, how the initializer carries the templates, how the family ships at the repository's version, and what a new template needs to join. The workflow twins and the version are checked at the repository's root, by its make check-workflows and make check-versions.

License

This project is licensed under the MIT license. Runtime dependencies are distributed under their own licenses.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.