Skip to main content

*Forge — pipeline canvas, checkpointing, and stale/hydrate execution for the repo you already have open

Project description

*Forge (starforge)

Forge's canvas — checkpointing, provenance, stale/hydrate execution — as a VS Code extension over the repo you already have open. Blocks are ordinary Python functions tagged with @block. See DESIGN.md for the full design.

Try it (M0)

# 1. Install the kernel + decorator into the venv your target repo uses
pip install -e <forge-repo>/starforge

# 2. Build the extension
cd <forge-repo>/starforge/vscode
npm install && npm run build

# 3. Open starforge/vscode in VS Code and press F5 (extension dev host).
#    In the dev-host window, open any Python repo.

In your repo:

# analysis/blocks.py
import matplotlib.pyplot as plt
from starforge import block

@block(category="IO")
def make_numbers(n: int = 5) -> dict:
    return {"values": list(range(1, n + 1))}

@block
def scale(data: dict, factor: float = 2.0) -> dict:
    return {"values": [v * factor for v in data["values"]]}

@block
def plot(data: dict) -> dict:
    plt.plot(data["values"])
    plt.show()  # rendered inline on the canvas node
    return data

Save, run “*Forge: New Pipeline”, drag the blocks from the palette, wire output → data, hit ▶ Run. Run again — instant, everything reused. Edit scale, watch it (and only it) go stale.

Layout

Path What
src/starforge/__init__.py the @block decorator — zero-dep, the only thing user code touches
src/starforge/index/ static AST indexer (discovery, import graph, incremental cache)
src/starforge/core/ doc schema, history hashing, serializers, checkpoint store, runner
src/starforge/kernel/ stdio JSON-RPC kernel + per-run worker subprocess
vscode/ the extension (TS host + React Flow webview)
tests/ headless M0 proof — python -m pytest starforge/tests

State lives in the target repo under .forge/pipelines/ is committable, checkpoints/ and cache/ are auto-gitignored.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

starforge_kernel-0.1.0.tar.gz (43.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

starforge_kernel-0.1.0-py3-none-any.whl (36.1 kB view details)

Uploaded Python 3

File details

Details for the file starforge_kernel-0.1.0.tar.gz.

File metadata

  • Download URL: starforge_kernel-0.1.0.tar.gz
  • Upload date:
  • Size: 43.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for starforge_kernel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ae88a87d612b72b7e7ef33799155cd8f73abf3b7635bf8573eb5722966e9926f
MD5 f59143fa83e397379d16eb5472b65a6b
BLAKE2b-256 b6cb30d3e80265bc5507fa8d5ad670eb9b102b4634bb9a5fcb60e7f46a894871

See more details on using hashes here.

File details

Details for the file starforge_kernel-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for starforge_kernel-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3650c86d6c1813e812d6cab66e5edeace3fc96eabd1efdb2f7afd876bfcaa9a
MD5 8a4e64c8db944aaeecf31d4eda693237
BLAKE2b-256 7564e38d66202f4b6317dbdf5d8982c43563126b29794b05a522ca5fae5d663a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page