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.3.tar.gz (43.7 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.3-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: starforge_kernel-0.1.3.tar.gz
  • Upload date:
  • Size: 43.7 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.3.tar.gz
Algorithm Hash digest
SHA256 750be1fbdeccfa01e01e9ef3d38ef9b583e198c3532fa10dde9693f2dee62a7a
MD5 c57c05651f1401145c9cfab226a56647
BLAKE2b-256 89aa6fa903d53dc3b937e82d29e3e2200a9c4b1c3571196f9654cf0182743f06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for starforge_kernel-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7b6e1dac95448a45bd3930a5f646ed9ea432f35684c54c3ebb035acb41a7b290
MD5 cb7a76589e05e94b8e575477251dfe7d
BLAKE2b-256 a96bd2acaaae0b1a4ecce9399be4c05dc85adf456db785ab9a3065091cd51a12

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