The document describes Casandra, a system for delivering real-time chemical safety warnings to electronic laboratory notebooks. Casandra encodes safety rules and reactions in XML and matches them to identify potential hazards. It can detect reactive incompatibilities based on compound combinations as well as occurrences of single hazardous compounds. Casandra also supports substructure pattern matching to identify risks associated with functional groups. The system was tested on over 1.2 million reactions extracted from US patents to demonstrate its capabilities.