{% extends "root.html" %}
{% block content %}
<section class="py-16 sm:py-24 text-center">
<p class="font-mono text-xs uppercase tracking-[0.25em] text-accent mb-4">{{ app_name }}</p>
<h1 class="text-4xl sm:text-6xl font-bold tracking-tight">
Rust · axum · htmx starter
</h1>
<p class="text-base-content/70 text-lg sm:text-xl mt-6 max-w-2xl mx-auto leading-relaxed">
A batteries-included web app skeleton: server-rendered pages with minijinja,
htmx for snappy partial updates, sea-orm on Postgres, and session auth with
invite-only registration.
</p>
<div class="flex justify-center gap-3 mt-8 flex-wrap">
{% if user %}
<a href="/notes" class="btn btn-primary"><i class="fas fa-fw fa-note-sticky"></i> Open notes</a>
<a href="/invites" class="btn btn-ghost"><i class="fas fa-fw fa-envelope"></i> Invites</a>
{% else %}
{% if registration_open %}
<a href="/register" class="btn btn-primary">Get started</a>
{% else %}
<span class="btn btn-disabled" title="Registration is invite-only">Get started · invite-only</span>
{% endif %}
<a href="/login" class="btn btn-ghost">Log in</a>
{% endif %}
</div>
</section>
<section class="py-8 sm:py-12">
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
<div class="border border-base-300 rounded-box p-5 bg-base-200">
<div class="flex items-center gap-2 mb-2">
<i class="fas fa-fw fa-bolt size-5 text-accent"></i>
<h3 class="font-semibold">axum + htmx</h3>
</div>
<p class="text-sm text-base-content/80">
<code>hx-boost</code> gives SPA-like navigation with zero client JS to
write; handlers return plain HTML fragments for live updates.
</p>
</div>
<div class="border border-base-300 rounded-box p-5 bg-base-200">
<div class="flex items-center gap-2 mb-2">
<i class="fas fa-fw fa-database size-5 text-accent"></i>
<h3 class="font-semibold">sea-orm on Postgres</h3>
</div>
<p class="text-sm text-base-content/80">
UUIDv7 primary keys, typed entities, and migrations that run
automatically on boot.
</p>
</div>
<div class="border border-base-300 rounded-box p-5 bg-base-200">
<div class="flex items-center gap-2 mb-2">
<i class="fas fa-fw fa-user-shield size-5 text-accent"></i>
<h3 class="font-semibold">Session auth</h3>
</div>
<p class="text-sm text-base-content/80">
Argon2 password hashing, cookie sessions, and invite-only registration
with a CLI to mint the first token.
</p>
</div>
{# Each generated only when its stack was included. #}
{% include "_feature_workers.html" ignore missing %}
{% include "_feature_cookies.html" ignore missing %}
</div>
</section>
<footer class="py-10 text-center">
<p class="font-mono text-xs uppercase tracking-[0.25em] text-base-content/70 flex items-center justify-center gap-2">
<span>a</span>
<span class="font-bold tracking-[0.16em]" style="color: oklch(96% 0.058 96);">
<a href="https://neiam.org">NEIAM</a>
</span>
<span>starter</span>
</p>
</footer>
{% endblock %}
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions queued · Badges · Packages
⭐
Log in to mark this repository.
3.1 KiB · text
History
7f67051