UNPKG

minikit-limpo-template

Version:

A minimal Next.js app starter template with WorldCoin MiniKit authentication integration

74 lines (58 loc) 3.53 kB
# MiniKit Limpo Template Project Updates ## 2025-06-01: Package Renaming and TypeScript Documentation ### Objectives - Change package name from `minikit-starter-template` to `minikit-limpo-template` across all files - Address TypeScript errors by adding documentation to explain these are expected in the template context - Ensure consistent naming across all project files ### Changes Made - Updated package name from `minikit-starter-template` to `minikit-limpo-template` in: - `package.json` - Main README.md and template README.md - CLI script (bin/cli.js) - PROJECT-UPDATES.md - Repository URL references - Added explanations about expected TypeScript errors: - Added a dedicated section in the main README.md explaining that TypeScript errors are normal in the template context - Added a note in the template README.md to guide users if they encounter TypeScript errors after installation - Successfully generated an updated package tarball with the new name ## 2025-06-01: Initial Project Setup and Template Creation ### Objective Create a minimal Next.js limpo template with WorldCoin MiniKit authentication, including a login page, dashboard with username display, placeholder pages with navigation, i18n support, and an npx-installable project structure. ### Changes Made #### Project Structure and Setup - Created `minikit-limpo-template` directory with full Next.js app scaffold using TypeScript and Tailwind CSS - Set up template directory structure for easier distribution via npx - Added essential dependencies in package.json including Next.js, React, Tailwind CSS, Heroicons, WorldCoin MiniKit packages, and i18n libraries - Created a CLI script (bin/cli.js) to enable npx installation and project bootstrapping - Added developer-friendly terminal outputs with color formatting in CLI script #### Core Components - Implemented MiniKitProvider component to initialize MiniKit using environment variable - Created responsive TabBar component with Home (login), Info, and Settings tabs - Added LanguageSwitcher component supporting English, Spanish, and Portuguese - Created sample Card component to demonstrate component structure and props pattern #### Pages and Authentication Flow - Built login page with MiniKit wallet authentication flow - Implemented dashboard page displaying username from MiniKit profile - Created info page as a placeholder with personalized text - Added settings page with language switching and logout functionality - Created API route for nonce generation using Node.js crypto module #### Internationalization (i18n) - Set up i18n system with next-i18next, react-i18next, and i18next - Created translation files for English, Spanish, and Portuguese - Implemented language switching functionality that persists user selection #### Configuration Files - Added Next.js configuration with i18n support - Created Tailwind CSS and PostCSS configuration - Added TypeScript configuration with strict type checking - Created .gitignore and .npmignore files - Added setup.js script for post-installation configuration ### Specific Design Decisions - Used client components for interactive elements - Maintained original MiniKit username display as per user preferences - Mobile-optimized UI with keyboard visibility detection for TabBar - Session persistence through localStorage - Error handling for authentication failures ### Next Steps - Test the npx installation flow end-to-end - Consider adding more comprehensive documentation - Add unit tests for components