![]() |
This project is part of the Generative Simulation demonstrators |
Say it. Simulate it with AI. |
---|
๐โฉ๐ SFPPy: A Python Framework for Food Contact Compliance & Risk Assessment
No installation. Runs entirely in your browser. Try it nowโจ:
๐ข Status update: Production-ready with full support for SFPPy notebooks
โ Complete support for simulation, plotting, curve fitting, and export to PDF/XLSX/CSV
๐ Integrated databases: EU Regulation Annex I, US FDA FCN lists, Chinese positive lists โ ~1300 substances included with toxicological assessment
๐ฆ Runs seamlessly in-browser โ no setup needed, fully compatible with modern tablets
๐๏ธ Files persist in your browser between sessions โ drag & drop your own files anytime
๐ Automatically stays up to date with the latest data and features
๐ SFPPy-Lite is a lightweight (30 MB), browser-based preview of the full SFPPy framework. It is built on JupyterLite, and runs Python entirely in the browser using Pyodide (WebAssembly-based).
You can explore and use SFPPyโs core functionalities instantly โ with no installation required and nothing to configure. Current performance is impressively close to that of a native desktop application.
Warning
๐ก Start Here: Launch the notebook demo.ipynb
to begin (or watch the video walkthrough).
โ All components are now operational, including notebooks under ๐Notebooks/, as well as graphical interfaces, simulation, plotting, curve fitting, and export to PDF/XLSX.
โฑ๏ธ SFPPyLite runs at approximately half the speed ๐ of the desktop version. However, all notebooks execute in under one minute. This performance is sufficient for practical use, with the caveat that native in-browser execution (via Pyodide/WebAssembly) imposes some limitations.
๐ชง๐ ๐ช๐บ Annex I of Regulation (EU) 10/2011, ๐บ๐ธ US FDA Food Contact Notification list and ๐จ๐ณ Appendices A1-A7 of Standard GB 9685-2016 are included and searchable.
๐ฉ PubChem substance retrieval is partially functional: the module private.pubchemspy
has been adapted for JupyterLite, but write operations may fail due to incompatibilities between Pyodide and IndexedDB, the browserโs internal filesystem.
โ ToxTree is not supported, as it cannot currently be compiled to WebAssembly.
๐๏ธ Files (notebooks, scripts, datasets, etc.) are persistently stored in your browser across sessions. Your data remains safe unless using private/incognito mode. You can drop files into the interface or download/export any file as needed.
๐งญ Find the platform that fits best your requirements: ease, confidentiality, archiving, assistance.
All usage options are free of charge.
Feature / Capability | ๐ซ๐ป SFPPy (Desktop) | ๐ SFPPyLite (Browser) | โ๏ธ SFPPy in Google Colab |
---|---|---|---|
AI-powered assistance (e.g. for interpretation) | โ Not available or use Jupyter Lab extensions | โ Not available or use external extensions | โ Available (via Gemini) |
Installation required | Yes (Python + dependencies) | โ No installation (runs in-browser) | โ No installation (via bootstrap script) |
Notebook execution speed | Full native performance | โฑ๏ธ ~2ร slower (WebAssembly limits) | โ Fast (depends on Google backend) |
Simulation resolution / memory usage | High (limited by system resources) | Reduced for complex models (browser memory limits) | High (usually) |
Graphical plotting (SVG, PNG, Retina) | โ Full support | โ Full support | โ Full support |
Curve fitting and modeling tools | โ Available | โ Available | โ Available |
Export formats (PDF, XLSX, CSV) | โ Full support | โ Full support | โ Full support |
Annex I (Regulation (EU) 10/2011) | โ Integrated and queryable | โ Integrated and queryable | โ Integrated and queryable |
US FDA FCN list (2025) | โ Integrated and queryable | โ Integrated and queryable | โ Integrated and queryable |
Appendices A1-A7 (Chinese standard GB GB 9685-2016) | โ Integrated and queryable | โ Integrated and queryable | โ Integrated and queryable |
PubChem substance retrieval | โ Fully functional | โ Full access | |
Toxicological assessment | โ Fully functional | โ Fully functional | |
ToxTree integration | โ Supported | โ Not supported (WebAssembly incompatible) | โ Supported |
Self-archiving and reporting (PDF + .ipynb) | โ Automatic or manual | โ Not supported | โ Manual (download/export) |
Session persistence / multi-tab support | Depends on setup | โ Fully supported (via IndexedDB) | โ Not persistent between sessions |
Offline usage | โ Once installed | โ After initial load (cached in browser) | โ Requires internet |
Custom file upload/download | โ OS-level | โ Browser-based (drag & drop or panel) | โ Upload/download via Colab UI |
๐ ๏ธ Updating Mechanism | ๐ Manual updates via Git or package manager | ๐ Always updated to latest sources (on load) | ๐ Bootstrapped from latest version |
๐SFPPy-Lite has been tested successfully on:
- โ Firefox 90+
- โ Chrome / Chromium 89+
- โ Safari (Mac OS, IOS)
- โ โ Other Mobile browsers: not fully supported (to be tested case-by-case)
- JupyterLite
- Pyodide
- SFPPy โ Full Python framework
๐ฌ Found a bug or have suggestions? Open an issue or reach out via email โ feedback is welcome!
๐ค +โ๏ธ Can robots like GPT really evaluate food contact compliance using SFPPy? Check out the intriguing answers from two GPT-powered experts here!.
![]() |
๐ฎExplore the future. Coding is a languageโand with generative AI, we can bridge real-world problems to simulation-ready computer code. Python is the medium of choice, as it remains the most fluent language for AI systems. โฐโโคPrompts accelerate simulation prototyping and the design of complex case scenarios. Thanks to the abstract nature of this interface, there are no constraints on the level of complexity: it operates independently of the underlying mathematical or numerical methods. |
---|---|
Credits: Olivier Vitrac | ๐คWith respect to regulatory compliance, AI assists you by generating informed scenarios and interpretationsโbut you remain the decision-maker. |