How notn0xys/femspice works
Project type and purpose
• This is a full-stack web application named “FEMspice,” combining a React/TypeScript frontend with a Python FastAPI backend.
• The frontend provides a visual circuit-building interface (components like ResistorNode, CapacitorNode, etc.).
• The backend exposes REST endpoints for authentication, user management, and (presumably) simulation jobs, backed by a database.
File structure
• Top-level directories:
– backend: FastAPI service with main.py, routers (auth), model (user), schema, config (db connection), utils (security).
– frontend/Femspice: Vite-based React app with pages (login, signup, mainpage, about), UI components, electric component nodes, hooks, and asset folders.
• Build and deployment: package.json and lockfiles in both backend and frontend; vercel.json in frontend indicates deployment on Vercel.
• Configuration:
– backend/config/db.py configures database URI, connection pooling.
– frontend/vite.config.ts holds build settings.
• Observed patterns: clearly separated presentation layer (React), API layer (FastAPI), data layer (DB).
Key architectural insights from README
• README is minimal; project name implies a circuit simulation (“SPICE”) tool built with finite-element methods or front-end modeling.