惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
WordPress大学
WordPress大学
月光博客
月光博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
大猫的无限游戏
大猫的无限游戏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
美团技术团队
宝玉的分享
宝玉的分享
Hugging Face - Blog
Hugging Face - Blog
阮一峰的网络日志
阮一峰的网络日志
A
About on SuperTechFans
Jina AI
Jina AI
D
Docker
Last Week in AI
Last Week in AI
MongoDB | Blog
MongoDB | Blog
Stack Overflow Blog
Stack Overflow Blog
Microsoft Azure Blog
Microsoft Azure Blog

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - darula-hpp/uigen: A runtime frontend for any Ope...
ombedzi · 2026-05-03 · via Hacker News - Newest: "AI"

Turn your API into an application. Automatically.

UIGen Demo

⚠️ Disclaimer: Project not ready for production yet, but we're fast approaching v1.


Getting Started

Quick Start

# 1. Initialize a new UIGen project
npx @uigen-dev/cli@latest init my-app

# 2. Navigate to your project
cd my-app

# 3. Start the development server
npx @uigen-dev/cli@latest serve openapi.yaml

Visit http://localhost:4400 to see your app.

What just happened?

  1. UIGen scaffolded a complete project with:
    • .uigen/config.yaml - Configuration file for annotations
    • .uigen/theme.css - Custom styling (Tailwind CSS v4)
    • .uigen/base-styles.css - Base styles
    • .agents/skills/ - AI agent skills for automation
    • openapi.yaml - Example API spec (if you didn't provide one)
  2. The serve command renders a complete UI from your OpenAPI spec at runtime
  3. When your API changes, the UI updates automatically - no regeneration, no code to maintain

Customize with AI Agents (Recommended)

UIGen includes AI agent skills that automate configuration. Use them with your favorite AI coding assistant (Cursor, Windsurf, Cline, etc.):

Auto-annotate your API (detects login, file uploads, relationships, etc.):

Ask your AI: "Use the auto-annotate skill to configure my OpenAPI spec"

Apply custom styling:

Ask your AI: "Use the applying-styles skill to create a modern dark theme"

The skills are located in .agents/skills/ and contain detailed instructions for AI agents. They eliminate manual configuration by intelligently analyzing your spec and generating the right annotations and styles.

Manual Configuration (Optional)

If you prefer manual control, use the visual config GUI:

npx @uigen-dev/cli@latest config openapi.yaml

In the Config GUI you can:

  • Define relationships between resources
  • Customize labels and visibility
  • Configure charts and file uploads
  • Edit theme CSS visually
  • All changes saved to .uigen/config.yaml

Try the Example App

Want to see UIGen in action with a real backend?

# Clone the repository
git clone https://github.com/darula-hpp/uigen
cd uigen/examples/apps/fastapi/meeting-minutes

# Setup backend (FastAPI + PostgreSQL)
docker compose up -d
docker compose exec app alembic upgrade head

# Initialize UIGen project
npx @uigen-dev/cli@latest init --spec openapi.yaml

# Start the UI
npx @uigen-dev/cli@latest serve openapi.yaml

Visit http://localhost:4400 to explore the meeting minutes application with full CRUD operations, authentication, file uploads, and relationships.


AI Agent Skills

UIGen includes powerful AI agent skills that automate configuration. When you run uigen init, these skills are copied to .agents/skills/ in your project.

Available Skills

1. Auto-Annotate (auto-annotate.md)

Automatically analyzes your OpenAPI spec and applies intelligent annotations:

  • Detects auth endpoints → Marks login, signup, password reset
  • Detects file uploads → Configures file types and size limits
  • Detects relationships → Links foreign keys to resources
  • Detects internal endpoints → Hides debug/health check endpoints
  • Detects chart opportunities → Adds visualizations for array data
  • Applies smart labels → Converts technical names to human-readable

Usage with AI assistant:

"Use the auto-annotate skill to configure my OpenAPI spec"

The AI will read your spec, detect patterns, and write annotations to .uigen/config.yaml.

2. Applying Styles (applying-styles-to-react-spa.md)

Generates custom CSS for your application:

  • Brand colors → Applies your color scheme
  • Dark mode → Full dark theme support
  • Component styling → Buttons, forms, tables, cards
  • Animations → Smooth transitions and effects
  • Responsive design → Mobile, tablet, desktop layouts

Usage with AI assistant:

"Use the applying-styles skill to create a modern dark theme with blue accents"

The AI will generate CSS and write it to .uigen/theme.css.

How It Works

  1. Skills are markdown files with detailed instructions for AI agents
  2. AI agents read the skills and follow the workflows
  3. Skills eliminate manual work by automating pattern detection and configuration
  4. You stay in control - review changes before committing

Using Skills with AI Coding Assistants

UIGen skills work with any AI coding assistant that can read files and execute commands:

  • Cursor - Reference skills with @.agents/skills/auto-annotate.md
  • Windsurf - Ask "Use the auto-annotate skill"
  • Cline - Provide skill file path in context
  • GitHub Copilot Chat - Reference skill files in prompts
  • Any AI assistant - Copy skill content into your prompt

Example Workflow

# 1. Initialize project
npx @uigen-dev/cli@latest init my-app --spec openapi.yaml

# 2. Ask AI to auto-annotate
"Use the auto-annotate skill to configure my spec"

# 3. Ask AI to apply styling
"Use the applying-styles skill to create a professional theme"

# 4. Start the server
npx @uigen-dev/cli@latest serve openapi.yaml

# 5. Iterate with AI
"Make the buttons more rounded and add hover animations"

The AI reads the skills, understands your OpenAPI spec, and generates the right configuration automatically.


What Just Happened?

UIGen uses runtime rendering to transform your OpenAPI spec into a complete, interactive frontend. Unlike code generators, UIGen interprets your spec at runtime - which means your UI stays in sync with API changes automatically. Here's the flow:

CLI Command
    |
    v
+----------------+     +----------------+     +----------+     +------+     +--------+     +--------------+
| API Document   |---->| Reconciler     |---->| Adapter  |---->|  IR  |---->| Engine |---->|  React SPA   |
| (YAML/JSON)    |     | (Config Merge) |     | (Parser) |     |      |     |        |     | (served)     |
+----------------+     +----------------+     +----------+     +------+     +--------+     +--------------+
       |                      ^                                                                    |
       |                      |                                                          +---------+
       |               +----------------+                                                v
       |               | Config File    |                                          +-----------+
       |               | (.uigen/       |                                          | API Proxy |---> Real API
       |               |  config.yaml)  |                                          +-----------+
       |               +----------------+
       |
       +---> (Source spec unchanged on disk)

UIGen reconciles your config with the spec, then parses it into a framework-agnostic Intermediate Representation containing:

  • Resources and their relationships
  • Operations (CRUD + custom actions)
  • Schemas with validation rules
  • Authentication flows
  • Pagination strategies

The React renderer interprets this IR at runtime (not code generation) and creates:

  • Table views with sorting, filtering, pagination
  • Create & edit forms with validation
  • Detail views with related resource links
  • Search interfaces from query parameters
  • Authentication flows (Bearer, API Key, HTTP Basic, credential-based login)
  • Multi-step wizards for complex forms
  • Custom action buttons for non-CRUD endpoints
  • Dashboard with resource overview
  • Dark/light theme toggle

Key advantage: Because UIGen uses runtime rendering instead of code generation, your UI automatically updates when your API changes. No regeneration step, no code to maintain, no drift between spec and UI.

Because the IR is framework-agnostic, you can swap renderers. The same spec works with @uigen-dev/react, @uigen-dev/svelte, or @uigen-dev/vue (coming soon).


Read More


Current Priorities

  • Better handling of resources and their relationships
  • Layout Config

License

MIT