scaffold-fastapi-vite-saas

scaffold-fastapi-vite-saas is a skill for Claude Code from TNT-Likely/honeycomb. It costs 170 tokens per session (4,096 once invoked), scanned A, original, MIT.

A starter project for a self-hosted web app with a FastAPI Python backend and a Vite single-page frontend in one Git repository. A monorepo is one repository that holds multiple parts of a project.

In plain words
What is it for?
Use it to start internal tools or self-hosted SaaS products with authentication, a database layer, scheduled tasks, backups, tests, and a single Docker image.
Why use it?
It provides a ready structure for building and running both sides of a SaaS app together, including Docker packaging and automated GitHub checks.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the fastapi-vite-saas plugin — 1 skill shipped together

Good fit Use it to start internal tools or self-hosted SaaS products with authentication, a database layer, scheduled tasks, backups, tests, and a single Docker image.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tnt-likely/honeycomb/scaffold
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add TNT-Likely/honeycomb --skill scaffold
Clone the repo
git clone --depth 1 https://github.com/TNT-Likely/honeycomb

Made for: Claude Code.

Or install fastapi-vite-saas, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scaffold-fastapi-vite-saas

README.md
[![agentmods](https://agentmods.dev/badge/skills/tnt-likely/honeycomb/scaffold.svg)](https://agentmods.dev/skills/tnt-likely/honeycomb/scaffold)
Your own site
<a href="https://agentmods.dev/skills/tnt-likely/honeycomb/scaffold"><img src="https://agentmods.dev/badge/skills/tnt-likely/honeycomb/scaffold.svg" alt="Measured on agentmods" height="20"></a>
Per session 170 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00170 $0.04096
Opus 5 $0.00085 $0.02048
Sonnet 5 $0.00034 $0.00819
Haiku 4.5 $0.00017 $0.00410

Measured 7d ago against content hash 279dc4ead8e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

scaffold-fastapi-vite-saas scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/fastapi-vite-saas/skills/scaffold/SKILL.md · 225 lines

How it starts

The opening of the file, as written. The whole thing — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.

FastAPI + Vite SaaS 脚手架技能

这套架构是什么

一个单仓双端的全栈应用骨架:Python 后端 + 前端 SPA 共住一个 git 仓库,通过多阶段 Docker 构建打成单一镜像,GitHub Actions 自动发版。核心定位:用一个 docker run 就能跑起来的自托管 SaaS。

技术选型(每一项都解释为什么):

选型 为什么
Web framework FastAPI Pydantic v2 校验直接当 schema、async 原生、OpenAPI 自动生成
ORM SQLAlchemy 2.x 久经考验、async 支持成熟、Alembic 配套迁移成熟
Migrations Alembic 不要自己搞 schema_migrations 表
Auth JWT(PyJWT)+ passlib + 可选 pyotp 2FA 无状态、单镜像无 redis 依赖
调度 APScheduler BackgroundScheduler in-process,不引入额外服务;线程池避免阻塞事件循环
备份加密 pyzipper(AES-256 zip) stdlib zipfile 的 ZipCrypto 已破,pyzipper 是 drop-in 替换
对象存储 rclone subprocess 一个二进制覆盖 S3/R2/WebDAV/B2/GDrive/OneDrive
Lint/Type/Test ruff + mypy + pytest 标配,启动快
Frontend pnpm workspace + Vite + (React/Vue 任选) apps/* + packages/* 拆分清晰
构建产物 单一 Docker 镜像 多阶段:Node build 前端 → Python 运行时拷 dist/ 当静态
CI GitHub Actions ci.yml(test/lint/build)+ release.yml(tag 触发 → docker hub)
编排 Makefile 不引入 just/task,Makefile 一份所有人都会读

仓库布局(基线)

<project>/
├── .github/
│   └── workflows/
│       ├── ci.yml              # PR/push: ruff + mypy + pytest + frontend build
│       └── release.yml          # tag 'v*': build & push docker image
├── .docs/                       # 内部设计文档(不发布)
├── docs/                        # 用户向文档(随发版打入镜像/网站)
├── alembic/
│   ├── env.py
│   ├── script.py.mako
│   └── versions/
├── data/                        # 运行时数据(gitignored,.gitkeep 占位)
│   └── .gitkeep
├── frontend/
│   ├── pnpm-workspace.yaml
│   ├── package.json             # 仅 workspace 根
│   ├── apps/
│   │   └── web/                 # Vite SPA
│   └── packages/
│       ├── api-client/          # 类型化 API client(从 OpenAPI 生成)
│       ├── ui/                  # 共享组件
│       └── features/            # 跨页可复用业务组件
├── scripts/                     # 运维脚本(seed/backup/grant-admin/...)
├── src/                         # Python package(直接 import,不再嵌一层)
│   ├── __init__.py
│   ├── main.py                  # FastAPI app + lifespan
│   ├── config.py                # pydantic-settings,所有 env 集中定义
│   ├── database.py              # engine / session / Base
│   ├── deps.py                  # FastAPI Depends 工厂(get_db / get_user / ...)
│   ├── models.py                # SQLAlchemy ORM(小项目放一起,大了再拆)
│   ├── schemas.py               # Pydantic schemas(同上)
│   ├── security.py              # 密码哈希 + JWT 签发/校验 + 可选 TOTP
│   ├── error_handling.py        # 全局异常 → JSON 响应映射
│   ├── observability.py         # structured logging + metrics
│   └── routers/
│       └── <group>/
│           ├── __init__.py      # 聚合 APIRouter,main.py import 不变
│           ├── _shared.py       # 共享 imports/helpers/router 实例;__all__ 显式
│           └── <entity>.py      # 单一资源的 POST/PATCH/DELETE 或一组 GET
├── tests/                       # pytest,与 src/ 对称
├── .env.example                 # 所有 env 的注释样本(.env 进 gitignore)
├── .gitignore
├── alembic.ini
├── docker-compose.yml           # 生产 compose(用户拿去 deploy)
├── docker-compose.postgres.yml  # overlay,可选切换 Postgres
├── Dockerfile                   # 多阶段:frontend-builder → python:3.12-slim
├── Makefile                     # 唯一的命令编排入口
├── mypy.ini
├── pytest.ini
├── README.md / README.en.md     # 双语
├── requirements.txt             # 不用 pyproject — 简单项目 requirements 更直白
├── ruff.toml
└── server.py                    # 极简 entry:from src.main import app

Read the full file on GitHub · 225 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 225 lines · 170 tokens per session scan A 279dc4ead8e7

Subscribe to this mod's changes

scaffold-fastapi-vite-saas is a skill published in the GitHub repository TNT-Likely/honeycomb (2 stars, last pushed 7d ago), licensed MIT. It adds 170 tokens to every session and 4,096 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

liveview-patterns

Build LiveView: async data (assignasync), PubSub (check connected?), phx-change events, form components/modals/uploads, streams for lists, livepatch. Use when handling interactions, debugging events, or tracking Presence.

oliver-kriska/claude-elixir-phoenix · 51 tokens

cesiumjs-core-utilities

CesiumJS core utilities and networking - Resource, Color, Event, Request, RequestScheduler, error handling, helper functions, feature detection. Use when fetching remote data, managing HTTP requests, working with colors, handling events, debugging errors, or using utility functions like defined, clone, or…

CesiumGS/cesiumjs-skills · 69 tokens

fec-data-fetching

A frontend guide for handling data that comes from a server, including typed requests, caching, refreshing, pagination, and updates. Server state means data owned by an API rather than by a page’s local controls.

bovinphang/frontend-craft · 76 tokens

litestar-vite

Auto-activate for litestarvite, VitePlugin, ViteConfig, PathConfig, RuntimeConfig, TypeGenConfig, InertiaConfig, vite.config.ts, HMR, typegen, assets, or modes. Not for plain Vite.

litestar-org/litestar-skills · 57 tokens

litestar-inertia

Auto-activate for litestarvite.inertia, InertiaConfig, component=, @inertia, @inertiajs/, createInertiaApp, useForm, usePage, Link, router, or pages/. Not for HTMX.

litestar-org/litestar-skills · 56 tokens

litestar-htmx

Auto-activate for litestarhtmx, HTMXPlugin, HTMXConfig, HTMXRequest, HTMXTemplate, HXLocation, ReplaceUrl, TriggerEvent, HX- headers, or Litestar partial HTML. Not for generic browser-side HTMX or Litestar Vite JSON templating — those are client concerns.

litestar-org/litestar-skills · 71 tokens