Patrick 722738e095
Some checks failed
Deploy to GitHub Pages / deploy (push) Has been cancelled
Test / test (push) Has been cancelled
feat: Implement complete Router compatibility layer for NWelshman
- Added custom Router class implementing v0.0.2 interface that NWelshman expects
- Implemented all required Router methods (User, FromPubkeys, WithinMultipleContexts, etc.)
- Added RouterScenario implementation with proper relay selection and policy handling
- Fixed TypeScript type compatibility issues between NWelshman and NostrContext
- Added integration tests with real relay connections
- Fixed ESLint errors and added missing HTML metadata
- Created web manifest for PWA support
- Updated README with Router implementation details

The Router now properly bridges the version gap between @welshman/util v0.4.2
and the v0.0.2 interface that NWelshman requires, enabling full Welshman
functionality with intelligent relay routing.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-21 19:35:31 -04:00

18 lines
406 B
TypeScript

import { createRoot } from 'react-dom/client';
// Import polyfills first
import './lib/polyfills.ts';
import { ErrorBoundary } from '@/components/ErrorBoundary';
import App from './App.tsx';
import './index.css';
// Custom font can be added. Example:
// import '@fontsource-variable/<font-name>';
createRoot(document.getElementById("root")!).render(
<ErrorBoundary>
<App />
</ErrorBoundary>
);