diff --git a/examples/index.js b/examples/index.js
index <HASH>..<HASH> 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -44,4 +44,6 @@ async function init() {
     });
 }
 
-init().catch(logger.error);
+if (require.main === module) {
+    init().catch(logger.error);
+}
fix: run the examples as a module, or as a main entry point