Configs2026年7月19日·1 分钟阅读

Analog — The Fullstack Angular Meta-Framework Powered by Vite

A Vite-powered Angular meta-framework that adds file-based routing, API routes, server-side rendering, and static site generation to Angular projects.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Analog
直接安装命令
npx -y tokrepo@latest install 68acad0e-836f-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Analog is the fullstack meta-framework for Angular that brings file-based routing, API routes, and hybrid rendering to the Angular ecosystem. Powered by Vite and Nitro, it offers fast builds and a modern developer experience similar to what Next.js provides for React.

What Analog Does

  • Adds file-based routing to Angular with automatic route generation from the filesystem
  • Provides API routes for building backend endpoints alongside your Angular app
  • Supports server-side rendering, static site generation, and hybrid rendering modes
  • Uses Vite for fast development builds with hot module replacement
  • Deploys to multiple platforms via Nitro including Vercel, Netlify, and Cloudflare

Architecture Overview

Analog uses Vite as its build tool with Angular-specific plugins for component compilation. Nitro handles the server layer, enabling API routes and SSR deployment to serverless platforms. File-based routing maps the filesystem to Angular route configurations automatically, while content plugins support markdown pages.

Setup & Configuration

  • Scaffold a project with create-analog or add Analog to an existing Angular app
  • Configure rendering mode (SSR, SSG, or client-only) in vite.config.ts
  • Define API routes in the src/server/routes directory
  • Set up content collections for markdown-based pages and blogs
  • Configure deployment adapter for your target platform

Key Features

  • File-based routing with dynamic segments, catch-all routes, and route groups
  • API routes with full access to server-side dependencies and databases
  • Markdown and MDX content support with frontmatter metadata
  • Vite-powered development with sub-second hot reload times
  • Deployment presets for Vercel, Netlify, Cloudflare Pages, and more

Comparison with Similar Tools

  • Next.js — the React equivalent; Analog brings similar patterns to Angular
  • Nuxt — Vue's meta-framework; Analog fills the same role for the Angular ecosystem
  • SvelteKit — Svelte's fullstack framework; Analog uses Vite and Nitro similarly
  • Angular Universal — official SSR solution; Analog wraps it with better DX and file-based routing
  • Astro — content-focused multi-framework; Analog is Angular-native with full interactivity

FAQ

Q: Can I use Analog with existing Angular libraries? A: Yes. Analog is fully compatible with the Angular ecosystem including Angular Material and NgRx.

Q: Does it support Angular standalone components? A: Yes. Analog leverages standalone components as the default approach for route components.

Q: How does API route authentication work? A: API routes have access to the full Nitro/H3 request context for implementing authentication middleware.

Q: Is Analog production-ready? A: Analog reached version 1.0 and is used in production applications across multiple deployment platforms.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产