#
Appendix D: Tools and Resources
This appendix provides a curated collection of tools, libraries, and resources for htmx and ASP.NET Core Razor Pages development.
#
D.1 Development Tools
#
Browser Extensions
htmx Debugger Chrome Extension:
- View all htmx requests in dedicated panel
- Inspect HX-* request/response headers
- Monitor swap operations
- Available in Chrome Web Store
#
Visual Studio Code Extensions
Recommended VS Code Settings for htmx:
{
"emmet.includeLanguages": {
"razor": "html",
"aspnetcorerazor": "html"
},
"files.associations": {
"*.cshtml": "aspnetcorerazor"
},
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
}
}
#
Visual Studio Extensions
#
JetBrains Rider
#
Command Line Tools
#
D.2 NuGet Packages
#
htmx Integration
Htmx Package Usage:
// Check if htmx request
if (Request.IsHtmx())
{
return Partial("_Content");
}
// Response extensions
Response.Htmx(h => {
h.Retarget("#error");
h.Reswap("innerHTML");
});
#
Entity Framework Core
#
Testing
#
Complementary Packages
#
D.3 Client-Side Libraries
#
htmx and Extensions
htmx Extensions:
https://unpkg.com/htmx.org@1.9.10/dist/ext/json-enc.js
https://unpkg.com/htmx.org@1.9.10/dist/ext/loading-states.js
https://unpkg.com/htmx.org@1.9.10/dist/ext/response-targets.js
https://unpkg.com/htmx.org@1.9.10/dist/ext/preload.js
https://unpkg.com/htmx.org@1.9.10/dist/ext/sse.js
https://unpkg.com/htmx.org@1.9.10/dist/ext/ws.js
#
CSS Frameworks
#
Icon Libraries
#
Utility Libraries
#
D.4 Testing Tools
#
Browser Testing
Playwright with .NET:
dotnet add package Microsoft.Playwright
pwsh bin/Debug/net8.0/playwright.ps1 install
#
API Testing
#
Load Testing
#
D.5 Online Resources
#
Official Documentation
#
Tutorials and Learning
#
Community
#
Blogs and Articles
#
Video Resources
#
D.6 Sample Projects
#
GitHub Repositories
#
Project Templates
Custom htmx Template (create your own):
dotnet new install ./MyHtmxTemplate
dotnet new htmx-razor -n MyProject
#
Reference Implementations
#
D.7 Books and References
#
Recommended Reading
#
Specifications and Standards
#
D.8 Quick Setup Checklist
#
New Project Setup
# Create project
dotnet new webapp -n MyHtmxApp
cd MyHtmxApp
# Add packages
dotnet add package Microsoft.EntityFrameworkCore.Sqlite
dotnet add package Htmx
# Add client libraries
dotnet tool install -g Microsoft.Web.LibraryManager.Cli
libman init
libman install htmx.org@1.9.10 -d wwwroot/lib/htmx
libman install hyperscript.org@0.9.12 -d wwwroot/lib/hyperscript
# Run with hot reload
dotnet watch
#
Essential VS Code Extensions
code --install-extension ms-dotnettools.csdevkit
code --install-extension otovo-oss.htmx-tags
code --install-extension bradlc.vscode-tailwindcss
#
Recommended libman.json
{
"version": "1.0",
"defaultProvider": "unpkg",
"libraries": [
{
"library": "htmx.org@1.9.10",
"destination": "wwwroot/lib/htmx/",
"files": ["dist/htmx.min.js", "dist/ext/json-enc.js", "dist/ext/loading-states.js"]
},
{
"library": "hyperscript.org@0.9.12",
"destination": "wwwroot/lib/hyperscript/",
"files": ["dist/_hyperscript.min.js"]
}
]
}
#
Resource Links Summary
#
Essential Links
#
CDN Quick Reference
<!-- htmx -->
<script src="https://unpkg.com/htmx.org@1.9.10"></script>
<!-- Hyperscript -->
<script src="https://unpkg.com/hyperscript.org@0.9.12"></script>
<!-- Tailwind CSS (Play CDN - dev only) -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Alpine.js -->
<script defer src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js"></script>
All URLs verified as of publication. Check official sources for latest versions.