.cursorrules Next.js React TypeScript

Blockchain Application Development Toolkit

A collection of decentralized applications (dApps) leveraging modern web frameworks and blockchain protocols for secure, scalable, and user-friendly solutions.

DeFi & Financial Tools

  • DeFi Dashboard:
    • Tech: Solidity, Next.js (SSR), Radix UI.
    • Features: Real-time analytics for crypto holdings, yield farming, and liquidity pools. Integrates with smart contracts via Web3.js or Wagmi.
  • Tokenized Asset Marketplace:
    • Tech: Solidity, Next.js, Wagmi.
    • Features: Tokenize real-world assets (e.g., real estate) and enable peer-to-peer trading with Ethereum integration.

NFT & Digital Assets

  • NFT Collection Viewer:
    • Tech: TypeScript, Shadcn UI, RainbowKit.
    • Features: Connect wallets (MetaMask, Coinbase) to display and manage NFT collections.

Developer & Security Tools

  • Automated Solidity Code Review Tool:
    • Tech: Node.js, Solidity static analyzers.
    • Features: Scan contracts for vulnerabilities (e.g., reentrancy) and suggest gas optimizations.
  • Collaborative Coding Environment:
    • Tech: Vite, Tailwind CSS, Solidity.
    • Features: Real-time code collaboration with built-in compiler support for smart contracts.

Community & Governance

  • Web3 Community Platform:
    • Tech: Next.js, Solidity, Redux.
    • Features: Reputation systems via on-chain interactions and dynamic content rendering.
  • Blockchain Voting System:
    • Tech: Solidity, Next.js, dynamic imports.
    • Features: Secure, transparent voting with audit trails and role-based access.

Utilities & Education

  • Dynamic Form Builder:
    • Tech: Zod validation, React, Tailwind Aria.
    • Features: Create accessible forms with type-safe validation for Web3 use cases (e.g., DAO proposals).
  • Interactive Solidity Tutorials:
    • Tech: Node.js, Radix UI.
    • Features: Live code execution and guided lessons for deploying contracts on testnets.

Key Technologies

  • Blockchain: Solidity, Ethereum, Axelar (interchain).
  • Frontend: Next.js (SSR), TypeScript, Tailwind CSS.
  • Libraries: Wagmi, Viem, Web3.js, RainbowKit.
  • Tools: Truffle, Hardhat, Alchemy.

Overview of .cursorrules prompt

The .cursorrules file outlines comprehensive guidelines for developers working with technologies including Solidity, TypeScript, Node.js, Next.js, React, and several UI and styling frameworks. It emphasizes writing concise and accurate TypeScript code using functional, declarative programming paradigms. Key principles include module reuse, descriptive naming conventions, and a preference for named exports. The file provides specific structure and syntax recommendations for JavaScript/TypeScript, enforces robust error handling, and advocates for using certain tools and libraries for UI development. For React/Next.js applications, it prescribes functional components, mobile-first responsive design, and best practices for state management and error handling. Furthermore, it highlights conventions for server actions, using Zod for validation, and strategies for optimizing performance and handling errors. The file also stresses adhering to Next.js documentation for best practices in data fetching and rendering.

Updated: March 17, 2025
Developers building Next.js applications with TypeScript and React who want to implement efficient error handling, responsive design, and optimized server/client interactions will benefit from this prompt.
Usefull for: