  Quantum repeater is the key technology enabler for long-distance quantum
communication. To date, most of the existing quantum repeater protocols are
designed based on specific quantum codes or graph states. In this paper, we
propose a general framework for all-photonic one-way quantum repeaters based on
the measurement-based error correction, which can be adapted to any
Calderbank-Shor-Steane codes including the recently discovered quantum low
density parity check (QLDPC) codes. We present a novel decoding scheme, where
the error correction process is carried out at the destination based on the
accumulated data from the measurements made across the network. This procedure
not only outperforms the conventional protocols with independent repeaters but
also simplifies the local quantum operations at repeaters. As an example, we
numerically show that the [[48,6,8]] generalized bicycle code (as a small but
efficient QLDPC code) has an equally good performance while reducing the
resources by at least an order of magnitude.
