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
Release files for barefootjs 0.36.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| barefootjs-0.36.0.tar.gz | 59.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| barefootjs-0.36.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 100.0 kB
Release files / barefootjs-0.36.0.tar.gz
| Download URL | barefootjs-0.36.0.tar.gz |
|---|---|
| Size | 59.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7db4bf211b5fbefb4a74cd9c0bdee6d7f8fa3cb4a1ce1f7afb1809b1c4f6d926
|
|
BLAKE2b-256 checksum How to use checksums |
8718cd49d0ccc002e441ca4cabde494eecb55b5c60e18e7e94a5d0fcd1335bae
|
| 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 Sep 15, 2026.
Transparency logRelease files / barefootjs-0.36.0-py3-none-any.whl
| Download URL | barefootjs-0.36.0-py3-none-any.whl |
|---|---|
| Size | 40.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4591690f3a7b45354a368e01a86b154c9d7df2473aa4ebcfdc90a4af3f63c61
|
|
BLAKE2b-256 checksum How to use checksums |
e324d46a7c16eed5061252f50b1e8a2c24a398f8ebc5480c27621981c29f0fbe
|
| 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 Sep 15, 2026.
Transparency log