Initial commit: libp2p-native-bridge package

- Extracted libp2p component from main app
- Created modular package structure with interfaces and implementations
- Added dependency injection for NativeModules
- Configured for IOR loading from Gitea
- Added comprehensive README and documentation
This commit is contained in:
Chris Daßler
2025-08-29 11:18:37 +02:00
commit 6f1d6ec37b
14 changed files with 2060 additions and 0 deletions

20
interfaces/types.ts Normal file
View File

@@ -0,0 +1,20 @@
/**
* Type definitions for libp2p native bridge
*/
export type {
ConnectionStatusEvent,
PeerDiscoveredEvent,
PeerInfoEvent
} from '../utils/types';
// Re-export common types from ILibp2pComponent for convenience
export type {
PeerId,
Multiaddr,
Connection,
PeerInfo,
ProtocolHandler,
Libp2pEvents,
Libp2pOptions
} from './ILibp2pComponent';