Lnapp Starter

screenshot of Lnapp Starter
nextjs
react
tanstack
tailwind
prisma

Convenient starter for Lightning Network driven web apps.

Overview:

The Next.js - tRPC - LN App starter is a cutting-edge tool designed for developers looking to create Lightning Network-driven web applications efficiently. With a streamlined setup process that promises to be ready to go in under five minutes and minimal hosting costs, this starter project takes advantage of the latest advancements in blockchain technology to create a "bank as a web app." Built upon @alexdotjs's tRPC starter, it offers built-in authentication, user management, and a seamless flow for purchasing power, which opens up exciting possibilities for interactive financial applications.

What sets this starter apart is its robust features, which include user deposits and withdrawals of Bitcoin, inter-user tipping, and integrated notifications via the nostr protocol. Developers can harness the power of community-driven tools while customizing functionalities to meet their unique requirements. Whether you're a seasoned developer or just starting your journey in web app development, this LN App starter is an excellent springboard into the world of decentralized finance.

Features:

  • E2E Type Safety with tRPC: Ensures typesafety across your frontend and backend, reducing bugs and enhancing code quality.
  • Full-stack React with Next.js: Combines the versatility of React with the power of Next.js for seamless server-side rendering.
  • Database Integration with Prisma: Simplifies database access and management using a powerful ORM solution.
  • LND Connection via ln-service: Directly connects to Lightning Network Daemon, enabling swift and secure transactions.
  • WebLN Enabled: Offers a user-friendly experience for managing Lightning Wallets directly from the web.
  • Nostr Protocol Notifications: Provides real-time notifications for account creation and user messaging, enhancing interactivity.
  • JWT Authentication: Implements straightforward but robust authentication methods for user security.
  • State Management with Zustand: Offers a simple solution for managing application state without much overhead.
  • Tailwind for Styling: Easy and effective styling with utility-first CSS framework, ensuring rapid UI design.
  • UI Components with MUI: Access to a collection of pre-built components for faster UI development.
  • Playwright for E2E Testing: Facilitates robust end-to-end testing to ensure application stability and user experience.
  • Integration with react-hook-form & Zod: Streamlined form handling and validation, improving user interactions with forms.
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

tanstack
TanStack

TanStack is a collection of high-quality, framework-agnostic libraries including TanStack Query for data fetching, TanStack Router for routing, TanStack Table for tables, and more. These tools provide powerful, type-safe solutions for common web development challenges.

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

prisma
Prisma

Prisma is a server-side library that helps developers read and write data to the database in an intuitive, efficient and safe way.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

Zustand

Zustand is a lightweight state management library for React that provides a simple and intuitive API for managing state in your application. It allows developers to easily create and manage global state, and provides a powerful set of tools for optimizing performance and improving developer productivity. Zustand is designed to be easy to use and easy to learn, making it a popular choice for developers of all skill levels.

react-hook-form
React Hook Form

React Hook Form is a performant, flexible, and extensible form library for React with easy validation. It reduces re-renders and improves performance by using uncontrolled components and native HTML validation, making form handling simple and efficient.

zod
Zod

Zod is a TypeScript-first schema declaration and validation library. It allows you to define schemas that can validate data at runtime while providing excellent TypeScript inference, making it perfect for API validation, form validation, and type-safe data handling.