A Spark firmware library