This paper introduces the SLAC Neural Network Library (SNL), developed at SLAC to address the 1 MHz T80-ray pulse data processing challenge of the LCLS-II FEL. SNL is a specialized framework for real-time machine learning inference on FPGAs, supporting dynamic updates of model weights to provide flexibility in adaptive learning. We also present Auto-SNL, which converts Python-based neural network models to SNL-compatible code, and demonstrate SNL's competitive latency and FPGA resource-saving efficiency through a performance comparison with hls4ml. We suggest potential applications in various fields such as high-energy physics, medical imaging, and robotics.