Login
You're viewing the code4lib.social public feed.
  • Nov 21, 2026, 5:27 PM

    It's release time! [swallows] I'm ready to share the YOLO version of FshSPICE. It is still pre-beta, but you can define and simulate real circuits with it.

    It's written by me, not by an LLM.

    yolo.fsh-spice.xyz/

    FshSPICE is a fully local app where you can edit schematics and simulate them using NGSPICE. The circuits are saved in your browser.

    If you try it, I would love to hear from you.

    #electronics #simulation #SPICE

    Square waveform generator with an opamp; the chart is showing the voltages at the opamp's output and at the top of the capacitor.
    💬 8🔄 7⭐ 0

Replies

  • Nov 21, 2026, 7:38 PM

    @twilliability Recently I escaped from Multisim's grip and have been happy using qucs-s. I will try your simulator, thanks for sharing it!

    💬 1🔄 0⭐ 0
  • Nov 24, 2026, 8:50 AM

    @buo Thanks for pointing me to qucs-s! I somehow hadn't found it previously. I used it for a few hours yesterday and it's not terrible at all!

    In particular, they have a very decent parts library. It makes me wonder if that makes them vulnerable because many of those seem manufacturer models, at most lightly reformatted.

    (I think all models should be released with a permissive license, but manufacturers clearly prefer ravenous lawyers over open access.)

    💬 1🔄 0⭐ 0
  • Nov 24, 2026, 11:04 PM

    @twilliability That's a good point. I didn't look inside the models, so I wasn't aware of that potential problem. We agree on permissive licenses -- you would think that a manufacturer would sell more parts if people could simulate them, but what do I know 😅

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 21, 2026, 8:54 PM

    @slyka oooh if you saw only half of my roadmap :)

    it's not a super big effort tbh. mostly what is missing is the matching chart type, and having the chart area support different views depending on what analysis was run.

    (also pssst the AC voltage source is hard-wired at 1kHz for now)

    💬 1🔄 0⭐ 0
  • Nov 21, 2026, 8:56 PM

    @twilliability hah, yeah, I was wondering about that cause I could set the voltage but not the frequency for it in transient analysis.

    but having something like this is really nice for demonstrations when circuit.js isn't enough!

    💬 1🔄 0⭐ 0
  • Nov 21, 2026, 9:08 PM

    @slyka oh, all these things will come in due cours. right now there is only the value you can change when you double-click for properties. many other things will go there.

    i'm aiming for realistic, parts-specific simulations as seen in LTSpice, not just approximate illustrations.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 21, 2026, 10:20 PM

    @twilliability Wow, that is fantastic!! I too have been longing for something like the Falstad simulator, but with ngspice analysis.

    I tried yours and got sensible results out of a simple common emitter amplifier drawn by hand (suggesting it's all learnable by trial and error, since I didn't bother reading any docs). One minor nitpick is that the plot colours seem to be deterministic but I didn't find a way to configure them, and sometimes two nodes' colours collide. (Also, I miss the Falstad single key shortcuts, like 'r' to add a resistor, 'N' for N-channel MOSFET, etc.) I'd love to see the features listed in webapp/notes.txt (especially AC source frequency, AC analysis, and current measurements). And perhaps even .sp analysis on Smith chart plots? :blobcat_smilehappyeyes:

    The source looks really good, BTW. Good enough that I feel slightly guilty whining about features on Mastodon instead of submitting a proper pull request. Great job!!

    💬 1🔄 0⭐ 0
  • Nov 22, 2026, 10:05 AM

    @gtw thanks for the feedback!

    there are six colors and they should not collide until you've used them all up... if they did, that's a bug. i wonder if you can find repro steps?

    the letters to insert parts are definitely coming. it's a tiny bit tricky coz you do need to select a specific part eventually, so i'm not sure which is better: pretend it's easy to place the part and then making you browse anyway, or forcing to browse right away. i use ctrl+d to duplicate a lot!

    💬 1🔄 0⭐ 0
  • Nov 22, 2026, 3:19 PM

    @twilliability Ah, that makes sense... I think I had used up all 6 colours, then removed some of the probes, and so I suspect I eventually ended up with a collision between what had at some point been (e.g.) the first and seventh.

    My guess is that it's better to pretend placement is easy and then forcing browsing for the actual component later... mainly because for trivial (e.g., passive LCR) parts, the pretense might turn out to be true and the browsing can sometimes be omitted?

    Again, great work!

    💬 1🔄 0⭐ 0
  • Nov 22, 2026, 3:39 PM

    @gtw yeah for passives definitely! i'm hesitant about parts where the model is important.

    thanks for the feedback! do let me know if you have any other thoughts to share :)

    💬 0🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0