ModCS is a Cave Story modding utility/engine which adds a Lua Scripting API to the game.
Currently the main features of the Lua API allow you to:
Have custom HUD elements
Insert code into existing NPC and Caret types
Make NPCs and Carets from scratch
The download site also...