of the need to create lots of state atoms for jotai, but it evolved as a general dependency injection tool for various state manager const TotalMolecule = molecule(() => { use(OrderPageScope) const lineItems = use(LineItemsMolecule); const subtotal = atom((get) => { return lineItems.reduce((sum, item) => { return sum + get(item.lineSubtotal); }, 0); }); const tax = atom((get) => get(subtotal) * 0.10); const total = atom((get) => get(subtotal) + get(tax)) return { total } }); function Total() { const atoms = useMolecule(TotalMolecule); const total = useAtomValue(atoms.total); return ( <div> <p>Total: {total}</p> </div> ); } library for creating states stores and other dependencies