barefootjs
Python runtime for BarefootJS marked templates, targeting Jinja2.
BarefootJS is a fine-grained reactive TSX compiler: you write components in TSX, and the compiler emits templates for your backend's template engine plus the client-side JS that hydrates them. This package is the server half for Python — it renders the .jinja templates produced by the @barefootjs/jinja adapter.
Installation
pip install barefootjs
The only dependency is jinja2; everything else is stdlib.
Quick start
Generated .jinja templates call the BarefootJS instance as a bf object ({{ bf.scope_attr() }}, {{ bf.json(x) }}, {{ bf.spread_attrs(bag) }}):
from barefootjs import BarefootJS, JinjaBackend
backend = JinjaBackend(paths=["templates"])
bf = BarefootJS(None, {"backend": backend})
html = backend.render_named("counter", bf, {"count": 0})
Package layout
| Module | Role |
|---|---|
runtime.py |
the engine-agnostic bf object |
evaluator.py |
ParsedExpr evaluator for the *_eval helpers |
search_params.py |
searchParams() SSR reader |
backend_jinja.py |
the Jinja2 engine backend |
Documentation
- barefootjs.dev — core documentation
- GitHub: piconic-ai/barefootjs — monorepo (this package lives at
packages/adapter-jinja/python)
License
MIT
Metadata
Release files for barefootjs 0.39.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| barefootjs-0.39.7.tar.gz | 61.9 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| barefootjs-0.39.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 104.9 kB
Release files / barefootjs-0.39.7.tar.gz
| Download URL | barefootjs-0.39.7.tar.gz |
|---|---|
| Size | 61.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
48f0d6622bd45afa2cb2580bb1bf8b332b0dc58154e77e9564aeb76243e68503
|
|
BLAKE2b-256 checksum How to use checksums |
be81e1a14c9a60d9242d9b8cc7c5c18edbc104c654223de115d5fac5507b031b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logRelease files / barefootjs-0.39.7-py3-none-any.whl
| Download URL | barefootjs-0.39.7-py3-none-any.whl |
|---|---|
| Size | 42.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
60c12509939e616c88d863bf4ee3544adeb83340048f743a754856f5430443b5
|
|
BLAKE2b-256 checksum How to use checksums |
ae9174dabe714f65753e7f5d93731e7bd43a76471800c0fa2998eaab06b05695
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logSecurity for barefootjs 0.39.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for barefootjs-0.39.7.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.