🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

create-hono-htmx-app

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-hono-htmx-app

A Hono + HTMX template for building modern web applications

latest
Source
npmnpm
Version
1.1.5
Version published
Maintainers
1
Created
Source

Hono HTMX App Template

A modern web application template built with Hono, HTMX, and Alpine.js featuring server-side rendering and dynamic client-side interactions.

Features

  • Hono Framework: Fast, lightweight web framework
  • HTMX: Modern approach to building web UIs with minimal JavaScript
  • Alpine.js: Lightweight reactive framework for enhanced interactivity
  • Live Reload: Development server with automatic browser refresh
  • State Preservation: Alpine.js state is preserved during live reload
  • Tailwind CSS: Utility-first CSS framework
  • TypeScript: Full type safety throughout the application

Getting Started

Prerequisites

  • Bun (JavaScript runtime and package manager)

Installation & Development

  • Create a new project using the template:
    bunx create-hono-htmx-app my-project
    cd my-project
    
  • Copy the environment template:
    cp .env.dist .env
    
  • Install dependencies and start development server:
    make install
    
  • Open your browser and navigate to http://localhost:3000

The development server includes live reload functionality that automatically refreshes your browser when files change, while preserving Alpine.js component state for a seamless development experience.

Project Structure

src/
├── app.ts                 # Application entry point
├── components/            # Reusable UI components
├── config/               # Application configuration
├── middlewares/          # Custom middleware
├── pages/                # Page components and routing
└── styles.css           # Global styles

License

MIT License

Copyright (c) 2025

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Keywords

hono

FAQs

Package last updated on 21 Jun 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts