diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index eb20f19..9a069ed 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -4,6 +4,8 @@ import { ScrollToTop } from "./components/ScrollToTop"; import Index from "./pages/Index"; import { Explore } from "./pages/Explore"; import { NIP19Page } from "./pages/NIP19Page"; +import { Terms } from "./pages/Terms"; +import { Privacy } from "./pages/Privacy"; import NotFound from "./pages/NotFound"; export function AppRouter() { @@ -13,6 +15,8 @@ export function AppRouter() { } /> } /> + } /> + } /> {/* NIP-19 route for npub1, note1, naddr1, nevent1, nprofile1 */} } /> {/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */} diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 4f09000..238e099 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -208,9 +208,19 @@ const Index = () => {

© {new Date().getFullYear()} LAYER.systems. Powered by Nostr.

-
- - Open and free for all +
+
+ + Open and free for all +
+
diff --git a/src/pages/Privacy.tsx b/src/pages/Privacy.tsx new file mode 100644 index 0000000..39240c6 --- /dev/null +++ b/src/pages/Privacy.tsx @@ -0,0 +1,278 @@ +import { useSeoMeta } from '@unhead/react'; +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; +import { Shield } from 'lucide-react'; +import { Link } from 'react-router-dom'; + +export function Privacy() { + useSeoMeta({ + title: 'Privacy Policy - LAYER.systems', + description: 'Privacy Policy for LAYER.systems Nostr relay', + }); + + return ( +
+ {/* Header */} +
+
+ + + LAYER.systems + +
+
+ + {/* Main Content */} +
+
+ {/* Hero Section */} +
+
+ +
+

Privacy Policy

+

+ Last updated: December 27, 2025 +

+
+ + {/* Introduction */} + + + Introduction + + +

+ LAYER.systems is committed to protecting your privacy. This Privacy Policy explains how we collect, use, and safeguard information when you use our Nostr relay service. +

+
+
+ + {/* Information We Collect */} + + + 1. Information We Collect + + +

Nostr Events

+

+ As a Nostr relay, we receive and store events published to our service. These events are public by design and include: +

+
    +
  • Event content and metadata
  • +
  • Public keys (npub) of event authors
  • +
  • Timestamps and event signatures
  • +
  • Tags and references to other events or users
  • +
+ +

Technical Information

+

+ When you connect to our relay, we may collect: +

+
    +
  • IP addresses for security and rate limiting purposes
  • +
  • Connection timestamps
  • +
  • WebSocket connection metadata
  • +
  • Request patterns and usage statistics
  • +
+ +

Website Analytics

+

+ Our website may use analytics tools to understand how users interact with our service. This may include: +

+
    +
  • Page views and navigation patterns
  • +
  • Browser type and device information
  • +
  • Referrer information
  • +
+
+
+ + {/* How We Use Information */} + + + 2. How We Use Information + + +

+ We use collected information to: +

+
    +
  • Provide and maintain the relay service
  • +
  • Improve service performance and reliability
  • +
  • Prevent abuse, spam, and malicious activity
  • +
  • Comply with legal obligations
  • +
  • Analyze usage patterns to improve the service
  • +
+
+
+ + {/* Data Storage and Security */} + + + 3. Data Storage and Security + + +

+ Public Data: Events published to our relay are public and may be replicated by other relays in the Nostr network. Once published, events cannot be guaranteed to be deleted from all relays. +

+

+ Security Measures: We implement reasonable security measures to protect our infrastructure, including: +

+
    +
  • Encrypted connections (WSS/TLS)
  • +
  • Rate limiting and abuse prevention
  • +
  • Regular security audits
  • +
  • Secure server configuration
  • +
+

+ However, no method of transmission over the internet is 100% secure, and we cannot guarantee absolute security. +

+
+
+ + {/* Data Retention */} + + + 4. Data Retention + + +

+ We retain Nostr events according to our relay policies, which may vary based on: +

+
    +
  • Event kind and type
  • +
  • Storage capacity and resource constraints
  • +
  • Content moderation decisions
  • +
  • Legal requirements
  • +
+

+ Technical logs (IP addresses, connection data) are typically retained for 30-90 days for security and operational purposes. +

+
+
+ + {/* Third-Party Services */} + + + 5. Third-Party Services + + +

+ Our service may interact with third-party services, including: +

+
    +
  • Other Nostr relays in the network
  • +
  • Content delivery networks (CDNs)
  • +
  • Analytics providers
  • +
  • Infrastructure providers
  • +
+

+ These third parties have their own privacy policies, and we encourage you to review them. +

+
+
+ + {/* Your Rights */} + + + 6. Your Rights and Choices + + +

+ Content Control: You control the events you publish. Use deletion events (kind 5) to request deletion of your content, though we cannot guarantee deletion from all relays in the network. +

+

+ Pseudonymity: Nostr uses public key cryptography. Your public key (npub) serves as your identity, and you can generate new keys at any time to maintain pseudonymity. +

+

+ Data Access: All events published to our relay are publicly queryable through standard Nostr protocols. +

+
+
+ + {/* Cookies and Tracking */} + + + 7. Cookies and Tracking + + +

+ Our website uses local storage and may use cookies to: +

+
    +
  • Store user preferences (theme, settings)
  • +
  • Maintain login sessions
  • +
  • Remember relay configurations
  • +
+

+ You can control cookies through your browser settings. Disabling cookies may affect some functionality. +

+
+
+ + {/* Children's Privacy */} + + + 8. Children's Privacy + + +

+ Our service is not directed to children under 13 years of age. We do not knowingly collect personal information from children under 13. If you believe a child has provided us with personal information, please contact us. +

+
+
+ + {/* International Users */} + + + 9. International Users + + +

+ LAYER.systems may be accessed from anywhere in the world. By using our service, you consent to the transfer of your information to our servers, which may be located in different jurisdictions. +

+
+
+ + {/* Changes to Privacy Policy */} + + + 10. Changes to This Privacy Policy + + +

+ We may update this Privacy Policy from time to time. Changes will be posted on this page with an updated revision date. Your continued use of the service after changes constitutes acceptance of the updated policy. +

+
+
+ + {/* Contact */} + + + 11. Contact Us + + +

+ If you have questions or concerns about this Privacy Policy or our privacy practices, please contact us through the Nostr protocol or via our website. +

+
+
+
+ + {/* Footer Navigation */} +
+
+ + Home + + + Terms of Service + +
+
+
+
+ ); +} + +export default Privacy; diff --git a/src/pages/Terms.tsx b/src/pages/Terms.tsx new file mode 100644 index 0000000..a52efa0 --- /dev/null +++ b/src/pages/Terms.tsx @@ -0,0 +1,214 @@ +import { useSeoMeta } from '@unhead/react'; +import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; +import { ScrollText } from 'lucide-react'; +import { Link } from 'react-router-dom'; + +export function Terms() { + useSeoMeta({ + title: 'Terms of Service - LAYER.systems', + description: 'Terms of Service for LAYER.systems Nostr relay', + }); + + return ( +
+ {/* Header */} +
+
+ + + LAYER.systems + +
+
+ + {/* Main Content */} +
+
+ {/* Hero Section */} +
+
+ +
+

Terms of Service

+

+ Last updated: December 27, 2025 +

+
+ + {/* Introduction */} + + + Introduction + + +

+ Welcome to LAYER.systems. By accessing and using our Nostr relay service, you agree to be bound by these Terms of Service. Please read them carefully. +

+
+
+ + {/* Service Description */} + + + 1. Service Description + + +

+ LAYER.systems provides a public Nostr relay service that allows users to publish and query events on the Nostr protocol. The service is provided "as is" and we make no guarantees about uptime, data persistence, or availability. +

+
    +
  • The relay may be temporarily unavailable due to maintenance or technical issues
  • +
  • Events may be deleted or modified at our discretion
  • +
  • We reserve the right to refuse service to any user
  • +
+
+
+ + {/* User Conduct */} + + + 2. User Conduct + + +

+ By using LAYER.systems, you agree not to: +

+
    +
  • Publish illegal content or content that violates applicable laws
  • +
  • Engage in spam, phishing, or other abusive behaviors
  • +
  • Attempt to disrupt or compromise the security of the relay
  • +
  • Use the service to harass, threaten, or harm others
  • +
  • Impersonate others or misrepresent your identity
  • +
  • Violate intellectual property rights
  • +
+

+ We reserve the right to remove content and ban users who violate these terms. +

+
+
+ + {/* Content Policy */} + + + 3. Content Policy + + +

+ You retain all rights to content you publish through our relay. However, by publishing content, you grant us a non-exclusive, worldwide license to store, cache, and distribute your content as necessary to operate the service. +

+

+ We may remove content that: +

+
    +
  • Violates applicable laws or regulations
  • +
  • Infringes on intellectual property rights
  • +
  • Contains malware or malicious code
  • +
  • Violates our content policies
  • +
+
+
+ + {/* Limitation of Liability */} + + + 4. Limitation of Liability + + +

+ LAYER.systems is provided "as is" without warranties of any kind. To the fullest extent permitted by law, we disclaim all warranties, express or implied. +

+

+ We are not liable for: +

+
    +
  • Any data loss or corruption
  • +
  • Service interruptions or downtime
  • +
  • Content published by users
  • +
  • Indirect, incidental, or consequential damages
  • +
  • Loss of profits or revenue
  • +
+
+
+ + {/* Privacy */} + + + 5. Privacy + + +

+ Your use of LAYER.systems is also governed by our{' '} + + Privacy Policy + + . Please review it to understand how we collect and use information. +

+
+
+ + {/* Changes to Terms */} + + + 6. Changes to Terms + + +

+ We reserve the right to modify these Terms of Service at any time. Changes will be effective immediately upon posting. Your continued use of the service after changes constitutes acceptance of the modified terms. +

+
+
+ + {/* Termination */} + + + 7. Termination + + +

+ We may terminate or suspend your access to the service at any time, without prior notice, for any reason, including violation of these Terms of Service. +

+
+
+ + {/* Governing Law */} + + + 8. Governing Law + + +

+ These Terms of Service are governed by and construed in accordance with applicable laws. Any disputes shall be resolved in the appropriate courts. +

+
+
+ + {/* Contact */} + + + 9. Contact + + +

+ If you have questions about these Terms of Service, please contact us through the Nostr protocol or via our website. +

+
+
+
+ + {/* Footer Navigation */} +
+
+ + Home + + + Privacy Policy + +
+
+
+
+ ); +} + +export default Terms;