Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Sera Framework

A native core for plotting, learning, and tabular data.

Sera is the shared architecture behind SeraPlot, SeraML, and the planned SeraDFrame layer. The goal is simple: keep the public API familiar, while moving expensive work into a Rust core that can be reused from Python, JavaScript, and WebAssembly.

RustCore runtime
Python / JSBindings
Local firstDefault mode
PortableArtifacts

Sera is not a separate product that replaces the libraries above it. It is the internal stack that lets each library share the same rendering, algorithm, serialization, and export logic. That keeps the user-facing APIs small while avoiding duplicated implementations between languages.

The framework is designed for documentation, notebooks, local reports, and developer tools where a chart, a model, or a data operation should be fast to produce and easy to ship as a standalone artifact.

Project Layers
LayerResponsibilityTypical outputs
SeraPlotChart construction, rendering, export, and interactive document previews.
HTMLSVGWASMDocs
SeraMLNative machine-learning algorithms with a familiar fit, predict, and export workflow.
Model stateMetricsONNX
SeraDFramePlanned tabular layer for loading, transforming, and passing data between plotting and ML.
TablesSQL-like opsZero-copy paths
How The Stack Fits

The language bindings stay close to the conventions users already know. Python code can feel like a plotting or ML library, JavaScript can focus on browser integration, and the shared Rust core remains responsible for the performance-sensitive work.

Public API
Python functions, JavaScript modules, and future notebook or WASM entry points.
Bindings
Thin adapters that validate inputs, convert data, and call the shared core.
Rust core
Rendering, algorithms, model state, telemetry hooks, exports, and serialization.
Artifacts
Standalone documents, chart payloads, model summaries, and portable runtime data.
Design Notes

What Sera optimizes for

  • Fast local execution without requiring a service backend.
  • Small output files that can be embedded in docs or shared as reports.
  • Predictable APIs across Python, JavaScript, Rust, and WebAssembly.
  • Clear boundaries between user data, generated artifacts, and optional telemetry.

What stays explicit

  • Telemetry remains opt-in and documented separately.
  • Native acceleration is used where it helps, without hiding the data flow.
  • Benchmarks should be read as implementation signals, not as universal guarantees.
  • Experimental surfaces are marked before they become stable API.
Performance Reference

The published ratios describe benchmarked paths where the native implementation removes heavy wrapper overhead. Real-world gains depend on data size, chart type, hardware, and export target.

ComparisonReported ratioInterpretation
SeraPlot vs Plotly6 000xCompact native rendering path for chart generation and export.
SeraPlot vs matplotlib480xLower overhead for common chart construction paths.
SeraPlot vs Seaborn320xLess wrapper work before producing the final artifact.
SeraML vs sklearn KMeans686xOptimized native loops for iterative workloads.
SeraML vs sklearn Random Forest28xParallel training and scoring potential in tree workloads.
Documentation note: this page intentionally avoids marketing buttons. It is meant to explain the architecture first, then point readers to the dedicated product pages from the sidebar.

Sera Framework

Un coeur natif pour les graphiques, le machine learning et les donnees tabulaires.

Sera est l'architecture partagee derriere SeraPlot, SeraML et la future couche SeraDFrame. L'objectif est simple : garder une API familiere, tout en placant le travail couteux dans un coeur Rust reutilisable depuis Python, JavaScript et WebAssembly.

RustCoeur runtime
Python / JSBindings
Local firstMode par defaut
PortableArtifacts

Sera n'est pas un produit separe qui remplace les bibliotheques au-dessus de lui. C'est la pile interne qui permet a chaque bibliotheque de partager le meme rendu, les memes algorithmes, la meme serialisation et les memes exports. L'API reste plus petite, et l'implementation n'est pas dupliquee entre les langages.

Le framework vise les documentations, notebooks, rapports locaux et outils developpeur ou un graphique, un modele ou une operation de donnees doit etre produit rapidement puis partage comme artifact autonome.

Couches Du Projet
CoucheResponsabiliteSorties typiques
SeraPlotConstruction de graphiques, rendu, export et previews interactives dans la documentation.
HTMLSVGWASMDocs
SeraMLAlgorithmes de machine learning natifs avec un workflow familier fit, predict et export.
Etat modeleMetriquesONNX
SeraDFrameCouche tabulaire prevue pour charger, transformer et faire circuler les donnees entre plotting et ML.
TablesOps SQL-likeZero-copy
Organisation De La Pile

Les bindings restent proches des conventions que les utilisateurs connaissent deja. Python peut ressembler a une bibliotheque de plotting ou de ML, JavaScript peut se concentrer sur l'integration navigateur, et le coeur Rust gere le travail sensible aux performances.

API publique
Fonctions Python, modules JavaScript et futurs points d'entree notebook ou WASM.
Bindings
Adaptateurs fins qui valident les entrees, convertissent les donnees et appellent le coeur partage.
Coeur Rust
Rendu, algorithmes, etat modele, hooks telemetry, exports et serialisation.
Artifacts
Documents autonomes, payloads de graphiques, resumes de modeles et donnees runtime portables.
Notes De Conception

Ce que Sera optimise

  • Execution locale rapide sans backend obligatoire.
  • Fichiers de sortie compacts, faciles a integrer dans une doc ou un rapport.
  • APIs previsibles entre Python, JavaScript, Rust et WebAssembly.
  • Frontieres claires entre donnees utilisateur, artifacts generes et telemetry optionnelle.

Ce qui reste explicite

  • La telemetry reste opt-in et documentee sur une page separee.
  • L'acceleration native est utilisee quand elle aide, sans masquer le flux de donnees.
  • Les benchmarks doivent etre lus comme des signaux d'implementation, pas comme des garanties universelles.
  • Les surfaces experimentales sont indiquees avant de devenir une API stable.
Reference Performance

Les ratios publies decrivent des chemins benchmarkes ou l'implementation native retire beaucoup d'overhead. Les gains reels dependent de la taille des donnees, du type de graphique, du materiel et de la cible d'export.

ComparaisonRatio annonceLecture conseillee
SeraPlot vs Plotly6 000xChemin de rendu natif compact pour generer et exporter les graphiques.
SeraPlot vs matplotlib480xMoins d'overhead sur les chemins courants de construction de graphiques.
SeraPlot vs Seaborn320xMoins de couches wrapper avant de produire l'artifact final.
SeraML vs sklearn KMeans686xBoucles natives optimisees pour les workloads iteratifs.
SeraML vs sklearn Random Forest28xPotentiel de parallelisation pour l'entrainement et le scoring des arbres.
Note documentation : cette page evite volontairement les boutons marketing. Elle explique d'abord l'architecture, puis laisse la sidebar guider vers les pages produit dediees.