Fincas
Fincas is an open-source ERP and a headless Qwik storefront that runs on it, in one repository. The back office (Django) holds quotes and orders, invoicing and a double-entry ledger, inventory and purchasing, and a CRM; the storefront (Qwik City) reads that same data live through the REST API and places orders into it. There is no product feed, no sync job and no second database to reconcile. You install the ERP as a Python package and run it as your own Django project, extended with plugins instead of forks.
Try it: the live demo runs the current release. Back office at
demo.fincas.dev (sign in as demo /
golden-demo), storefront at shop.demo.fincas.dev,
both on the same ERP. The demo is shared and its data is reset from time to time.
Status: actively maintained, beta. One company per instance. Python 3.12, PostgreSQL 17, Django 6.0.
Import name: the PyPI distribution is
fincas, but the Python package isgolden_erp(the project's earlier name), and settings keep theGOLDEN_*prefix. You writepip install fincas, thenfrom golden_erp.settings.prod import *andinclude("golden_erp.urls"). Both names stay as they are so existing deployments and plugins keep working.
My day: what is overdue and due today |
An engagement: next action, deal, contacts |
The example storefront on the Fincas API |
Back office: a local install with make seed demo data. Storefront: its built-in demo catalog.
One ERP, one storefront, one source of truth
Most shops run an ERP and a storefront as two systems and spend their time
keeping them in step. In Fincas the storefront has no catalog of its own: it
is a Qwik City app in storefront/ that
asks the ERP for everything, on every request.
- The catalog is the ERP's catalog. Products, variants, categories, brands, prices with quantity breaks, stock levels and SEO titles and descriptions come straight from the API. Edit a product in the back office and the storefront shows it on the next page load.
- Checkout lands in the back office. A guest checkout creates a real sales order with an ERP order number and its cart lines, priced by the server from the catalog (never from the browser), ready for staff in the order list.
- Customer accounts read the ERP. Signed-in customers see their profile, their orders and each order's detail through the customer portal API, from the same records your staff work with.
- Nothing secret ships to the browser. The storefront holds no API key. A visitor's browser gets a short-lived, least-privilege token that can read the catalog and public prices and create a guest order, and nothing else (the storefront contract).
- Fast and themeable. Qwik resumes instead of hydrating, so pages ship almost no JavaScript up front. 75 themes switch at runtime, landing-page templates are included, and Playwright journeys with axe accessibility checks run in CI.
- Headless means replaceable. Every endpoint is described by the OpenAPI 3 schema. Use the included storefront as it is, restyle it, or build your own on the same contract.
Run both locally: make run for the ERP, then make storefront-install and
make storefront-dev (it talks to http://localhost:8000/api).
Install
From PyPI (to run Fincas)
python3.12 -m venv .venv && . .venv/bin/activate
pip install "fincas[prod]"
Fincas is a library: your deployment is a small Django project with a
config/settings.py that starts from golden_erp.settings.prod and a
config/urls.py that mounts golden_erp.urls.
docs/getting-started.md takes you from an empty
directory to a first login; docs/packaging.md covers the
settings overlay and version pinning.
WeasyPrint renders the PDFs and needs Cairo and Pango from your OS
(libpango-1.0-0 libpangocairo-1.0-0 libcairo2 on Debian and Ubuntu).
From source (to work on Fincas)
git clone https://github.com/Logos-Flux/fincas.git
cd fincas
python3.12 -m venv .venv && . .venv/bin/activate
pip install -r requirements/dev.txt
make migrate # SQLite in the working directory
make seed # demo company, catalog, customers, 90 days of orders and books
make run # http://localhost:8000/erp/
make seed creates the superuser admin with the password admin. That is
for a local machine only; pass --admin-password to manage.py seed_demo_data
anywhere else. The API docs are at http://localhost:8000/api/docs/.
CONTRIBUTING.md has the full development setup, including Docker Compose and the storefront.
What's in it
- Sales: quotes with revisions, sales orders with shipment groups and drop-ship lines, sales invoices, payments through pluggable gateways (Stripe and manual included), coupon codes, price lists with customer-tier breaks, tax rates.
- Operations: multi-warehouse stock, purchase orders and receiving, pick tickets, carrier rates and labels (EasyPost), PDF quotes, orders, invoices and purchase orders (WeasyPrint).
- Accounting: chart of accounts, fiscal periods, journal entries posted from documents by configurable rules, trial balance checks.
- CRM: one party record per person or organization (merge, undo, GDPR-style erasure), leads, pipelines and engagements with stage history, tasks, communications, custom fields, imports from another CRM's export, and adapters for Aircall, Gmail, ClickUp, Klaviyo and Google Ads.
- Storefront and API: a Qwik City storefront in
storefront/that runs on the live ERP (see above), a REST API with an OpenAPI 3 schema (Swagger UI and Redoc included), a least-privilege storefront identity, and a customer portal. - Extending it: plugins add navigation, dashboard widgets, payment gateways, carriers, CRM adapters, outbox consumers and URLs; HMAC-signed outbound webhooks; a label layer to rename nouns in the staff UI; generated, WCAG AA-checked back-office themes.
- Assistant: an optional AI chat drawer for staff, routed through
llmhub: direct provider keys (Anthropic or any OpenAI-compatible endpoint) or your own gateway.
One company per instance
Each Fincas instance serves one company: one database, one core.Company row,
one deployment. Another company gets its own instance. System check
core.E070 refuses a second Company
(docs/deployment.md).
Plugins
Fincas is extended without editing core files. A plugin is a class listed in
GOLDEN_PLUGINS:
# hello_fincas/plugin.py
from core.plugins import BasePlugin
class HelloPlugin(BasePlugin):
name = "hello"
verbose_name = "Hello, Fincas"
version = "0.1.0"
def get_nav_items(self):
return [{
"type": "link",
"label": "Hello",
"section": "analytics",
"url_name": "erp-dashboard",
"icon": "fas fa-chart-line",
}]
# config/settings.py
GOLDEN_PLUGINS = ["hello_fincas.plugin.HelloPlugin"]
docs/plugins.md covers every hook, lifecycle signals, the outbox, plugin URLs and testing a plugin.
LLM features
Every LLM call goes through llmhub and is configured on the staff-only
/erp/llm/ page or by environment: direct provider keys (ANTHROPIC_API_KEY,
or OPENAI_BASE_URL and OPENAI_API_KEY for any OpenAI-compatible endpoint),
or an OpenAI-compatible gateway (LLMHUB_MODE=gateway,
LLMHUB_GATEWAY_BASE_URL). python manage.py llmhub_check makes one small
test call per configured purpose (--no-live checks resolution only).
Set LLMHUB_ALLOWED_BASE_URLS in production. It is empty by default, and while
it is empty any staff user can point LLM traffic, including ERP data in
prompts, at a host of their choosing from the settings page.
Documentation
The full index is docs/README.md. Start with:
- Getting started: from
pip installto a first login - Architecture: the apps, the plugin seam, the storefront contract
- Deployment: Docker Compose, systemd and Fly.io, required secrets
- Upgrading: versioning, deprecations and the migration contract
- Plugins and Webhooks
- Changelog
Contributing and security
Bug reports, fixes and documentation are welcome: see CONTRIBUTING.md and the code of conduct. Report security issues privately, as described in SECURITY.md, not in a public issue.
License
MIT. Logo and brand assets: fincas-grid-brand/.
Metadata
Release files for fincas 0.4.6
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 | Actions |
|---|---|---|---|---|
| fincas-0.4.6.tar.gz | 20.3 MB | With provenance | Details for fincas-0.4.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fincas-0.4.6-py3-none-any.whl | Python 3 | none | any | Details for fincas-0.4.6-py3-none-any.whl |
Total release size: 41.7 MB
Release files / fincas-0.4.6.tar.gz
| Download URL | fincas-0.4.6.tar.gz |
|---|---|
| Size | 20.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1732a4492575330103006b1a0f79a8e57ad921858b30002d67e4c5a77016745
|
|
BLAKE2b-256 checksum How to use checksums |
cab2c329454fc57b9e4b21f471852291778a4881502f130d68c580d67a4d595a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 18, 2026.
Transparency logRelease files / fincas-0.4.6-py3-none-any.whl
| Download URL | fincas-0.4.6-py3-none-any.whl |
|---|---|
| Size | 21.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cea1f4ed52b8cb82b37f4e9f3b2ea6b2d6b44c919593cfc8d55c94c7e4a95437
|
|
BLAKE2b-256 checksum How to use checksums |
50cda8c565b1529d0e88f9c5af943f6d828f6a2b6daef17cd2c8739b950c907a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 18, 2026.
Transparency logSecurity for fincas 0.4.6
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
Both files in this release have been uploaded with provenance metadata.
Attestation for fincas-0.4.6.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 Nov 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.