Recipes Overview
Step-by-step implementation guides and code examples for common Orbitport use cases
Welcome to the Orbitport Recipes section! Here you'll find practical, step-by-step guides for implementing various features and integrations with SpaceComputer Orbitport.
What are Recipes?
Recipes are focused, implementation-focused guides that show you how to:
- Implement specific features with Orbitport
- Integrate Orbitport services into your applications
- Follow best practices for security and performance
- Build real-world examples step by step
Each recipe is designed to be:
- Practical: Complete, working code examples
- Focused: One specific use case or feature
- Production-ready: Includes error handling and best practices
- Linked to resources: References to full blog posts and additional documentation
Available Recipes
Cosmic Randomness in Web3
Learn how to implement true cosmic randomness in your Web3 applications using Orbitport's cTRNG service. This recipe covers:
- Secure server-side authentication with Orbitport
- Token management and expiry handling
- Random seed generation from cosmic radiation
- Client-side integration with React hooks
- Real-world usage examples
Use cases: Gaming, cryptography, on-chain applications, secure communications
Difficulty: Easy Time to complete: 5-20 minutes
Cosmic Cipher Password Generator
Build a secure password generator using cosmic randomness from satellite instrumentation. This recipe covers:
- Hybrid randomness pattern with cosmic entropy
- Flexible password generation with customizable character sets
- Fallback mechanisms for offline resilience
- Client-side password generation with server-side randomness
- Verifiable randomness with seed display
Use cases: Security, personal password management, developer tools, security audits
Difficulty: Easy Time to complete: 5-20 minutes Production Ready: Enterprise-grade password security
Secure Nonces for Sign In with Ethereum
Generate secure nonces for SIWE authentication using verifiable cosmic randomness. This recipe covers:
- Cosmic nonce generation to prevent replay attacks
- Session-based nonce storage with iron-session
- Secure signature verification
- Fallback mechanisms for offline resilience
- Complete SIWE authentication flow
Use cases: SIWE authentication, signature verification, smart contract interactions, multi-sig operations
Difficulty: Easy Time to complete: 5-20 minutes Production Ready: Enterprise-grade authentication security
Getting Started
- Choose a recipe that matches your use case
- Follow the prerequisites to ensure you have the necessary setup
- Implement step by step using the provided code examples
- Customize the examples for your specific needs
- Explore related resources for deeper understanding
Prerequisites
Most recipes require:
- Basic TypeScript/JavaScript knowledge
- A Next.js or React application
- API access to SpaceComputer Orbitport
- Environment variables configured
Contributing
Have a recipe idea or want to improve an existing one? We welcome contributions! Each recipe should:
- Focus on a single, well-defined use case
- Include complete, working code examples
- Provide clear step-by-step instructions
- Link to relevant blog posts or documentation
- Include practical examples and use cases
Support
Need help with a recipe or have questions about implementation?
- Developer Support: Join our Telegram
- Documentation: Explore the How-to Guides or Concepts
- Blog: Read detailed articles at blog.spacecomputer.io
Ready to start building? Pick a recipe and dive in!