Rust Webapp logo

Rust Webapp

Community
arsenyinfo
rust-webapp

Build full-stack web applications using Rust (Axum + SQLx) with server-rendered frontend patterns using HTMX + Alpine.js or DataStar, plus Neon (serverless PostgreSQL). Use when asked to create web apps, CRUD apps, dashboards, forms, or any stateful web application. Triggers on requests like "build a todo app", "create a voting app", "make a dashboard", "build a blog", etc.

Overview

Publisherarsenyinfo
Repositoryskills
Skill namerust-webapp
Stars
29
Forks
1
Bundled files
21
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 21 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by arsenyinfo on GitHub. Read the source before you install it.

Installation

Install the Rust Webapp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/arsenyinfo/skills/tree/main/skills/rust-webapp
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/arsenyinfo/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/rust-webapp .claude/skills/rust-webapp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Rust Webapp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Rust Webapp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Rust Webapp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Build full-stack stateful web apps using Axum + server-rendered frontend patterns + Neon (PostgreSQL).

Stack: Axum + SQLx (Rust), Askama templates + HTMX + Alpine.js or DataStar + PicoCSS, Neon (PostgreSQL), Docker.

Workflow

Phase 1: Setup

Requirements before scaffolding:

  • Rust toolchain with cargo installed from https://rustup.rs.
  • neonctl, jq, and sqlx-cli available on PATH.
  • NEON_API_KEY and NEON_PROJECT_ID exported in the environment.

Install tool dependencies once:

bash
npm i -g neonctl
brew install jq
cargo install sqlx-cli --features postgres,native-tls

Scaffold app:

bash
NEON_BRANCH_TTL=2h ${CLAUDE_SKILL_DIR}/scripts/scaffold <app-name> .

Creates app files and a Neon branch ({app}-dev) with 2h expiration.

Phase 2: Data Modeling

  1. Define models in src/models.rs
  2. Write migration SQL in migrations/001_init.sql
  3. Use SERIAL for i32, BIGSERIAL for i64

Reference: Models - SQLx patterns, struct definitions, type mapping

Phase 3: Backend Implementation

  1. Add route handlers in src/main.rs
  2. All handlers return Result<T, AppError> - use ? operator
  3. NEVER use .expect() or .unwrap() - causes server crashes
  4. Route params use {id} syntax (NOT :id)

Reference: Handlers - CRUD patterns, router setup, transactions

Phase 4: Frontend

  1. Update Askama templates in templates/
  2. Delete unused template files (create.html, edit.html if not needed)
  3. Default to HTMX + Alpine.js for simpler CRUD, forms, filters, and small local UI state
  4. Use DataStar only when the Rust app needs a more advanced reactive surface:
    • SSE-first or realtime UI
    • Progressive multi-event backend responses
    • One feature needing both local reactive state and server-pushed updates
  5. If unsure, start with HTMX + Alpine.js
  6. Do not mix HTMX and DataStar on the same interaction surface unless there is a concrete reason

Reference: Templates - Askama, HTMX, Alpine patterns Reference: Design - CSS components, layout patterns Reference: DataStar - when to prefer it in this Rust skill, template patterns, SSE patterns, and further reading

Phase 5: Validation

Validate (runs cargo check, clippy, tests, release build):

bash
${CLAUDE_SKILL_DIR}/scripts/validate .

Fix all errors before completing.

When Things Fail

  • Missing NEON_API_KEY/NEON_PROJECT_ID: ask the user to export them, then rerun scaffold - it detects the partial run and redoes only the Neon step.
  • Migration checksum mismatch: never edit an already-applied migration - revert the edit and add a new migration file. Last resort (dev only, destroys data): ${CLAUDE_SKILL_DIR}/scripts/validate . --reset.
  • Clippy failures: fix the code, never silence with #[allow(...)].

Template Structure

├── Cargo.toml              # Dependencies
├── Dockerfile              # Multi-stage Rust build
├── src/
│   ├── main.rs             # Axum server, routes, templates
│   ├── db.rs               # SQLx pool setup
│   └── models.rs           # Data structs
├── templates/
│   ├── base.html           # Base layout (PicoCSS/HTMX/Alpine CDN; DataStar opt-in)
│   ├── index.html          # List view
│   ├── edit.html           # Edit form
│   └── create.html         # Create form
├── static/
│   └── styles.css          # Custom CSS overrides
└── migrations/
    └── 001_init.sql        # Database schema

Critical Rules

  1. NEVER .expect() or .unwrap() in handlers - use ? operator
  2. Route params: {id} not :id - wrong syntax compiles but panics at runtime
  3. All handlers return Result<T, AppError>
  4. Check rows_affected() for DELETE/UPDATE to return 404
  5. Use compile-time SQLx macros (query!, query_as!)
  6. Ensure the app has enough logs for basic observability

Full list: Pitfalls

Constraints

  • Neon (PostgreSQL) required - needs DATABASE_URL
  • All routes at root level (/, /new, /{id}/edit)
  • Strict clippy lints - must pass validation

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Rust Webapp AI skill do?

Build full-stack web applications using Rust (Axum + SQLx) with server-rendered frontend patterns using HTMX + Alpine.js or DataStar, plus Neon (serverless PostgreSQL). Use when asked to create web apps, CRUD apps, dashboards, forms, or any stateful web application. Triggers on requests like "build a todo app", "create a voting app", "make a dashboard", "build a blog", etc.

Why use Rust Webapp on TypingMind?

Because you install it once and use it with any model. Rust Webapp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Rust Webapp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/arsenyinfo/skills/tree/main/skills/rust-webapp. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Rust Webapp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Rust Webapp?

As many as you like. As long as a model supports skills, you can use Rust Webapp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Rust Webapp AI skill free?

It is published on GitHub by arsenyinfo. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇