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

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
The Blog of Author Tim Ferriss
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
量子位
S
SegmentFault 最新的问题
博客园 - 聂微东
博客园 - 【当耐特】
J
Java Code Geeks
美团技术团队
Hugging Face - Blog
Hugging Face - Blog
H
Help Net Security
V
V2EX
人人都是产品经理
人人都是产品经理
博客园 - Franky
罗磊的独立博客
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
酷 壳 – CoolShell
酷 壳 – CoolShell
云风的 BLOG
云风的 BLOG
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店
GitHub - Thanos2002/Oneconfig: Set up any dev environment...
ThanosAkr · 2026-06-03 · via Hacker News: Show HN

Set up any dev environment with one command.

License: MIT Go


oneconfig generate   →   scans your project, builds a config
oneconfig up         →   installs everything, starts all services

That's it. No Dockerfiles to write. No READMEs to follow. No "works on my machine."



💡 The Problem

Every project has the same onboarding pain:

"Clone the repo, install Node 20, make sure you have Postgres running, oh and you need Redis too, then copy .env.example, run the migrations, seed the database, then…"

OneConfig eliminates all of that. It deep-scans your repository, infers your entire stack—languages, runtimes, package managers, databases—and generates a single oneconfig.yml that describes your full environment. Then it provisions everything automatically, in the right order, with health checks.

New developer? One command. Done.


✨ Why OneConfig?

Traditional Setup With OneConfig
⏱️ Time to first run 30–60 min of manual steps < 2 minutes
📖 Documentation Long, fragile setup guides Self-documenting config
🔄 Reproducibility "Works on my machine" Deterministic, every time
🧩 Monorepo support DIY scripting Built-in deep scanning
🏥 Health checks Hope for the best Automated, per-service

🚀 Quick Start

Prerequisites

1. Install

go install github.com/Thanos2002/Oneconfig@latest

Note: go install uses the last part of the module path for the binary name, so this will install as Oneconfig (with a capital O). On case-sensitive systems (Linux/macOS), you may need to alias it or rename the binary to oneconfig to follow the docs.

Note: Ensure $GOPATH/bin (or $HOME/go/bin) is in your system PATH so the command is available globally.

2. Generate

Navigate to any project and let OneConfig figure out your stack:

cd your-project/
oneconfig generate

This will scan your codebase and create a tailored oneconfig.yml—detecting your runtimes, package managers, frameworks, and databases automatically.

3. Launch

OneConfig will install runtimes, resolve dependencies, start databases, run migrations, boot your app, and verify health checks—all in the correct order.

✔ Validated oneconfig.yml
✔ Installed Node.js 20.x
✔ Ran npm install
✔ Started postgres (healthy on :5432)
✔ Ran migrations
✔ Started api (healthy on :3000)

🚀 Environment ready — http://localhost:3000

🧠 Universal Detection Engine

When you run oneconfig generate, the engine recursively traverses your project (including monorepos) and automatically identifies:

Category Detected Technologies
JavaScript / TypeScript Node.js, npm, yarn, pnpm, bun
Python pip, Poetry, uv, Pipenv
Backend / Systems Go, Rust (Cargo), Java (Maven / Gradle), Ruby (Bundler)
Web Frameworks Next.js, Django, FastAPI, Flask, Streamlit, Gradio, Rails, Sinatra
Databases PostgreSQL, MongoDB, Redis, MySQL — spun up via Docker
Infrastructure Makefile, Procfile, Dockerfile, docker-compose.yml
Monorepos Workspaces, packages/, apps/ directories

Extensible by design: Adding support for a new technology is as simple as creating a single detector_*.go file.


⚙️ The oneconfig up Lifecycle

Under the hood, the orchestrator executes a deterministic pipeline:

  oneconfig.yml
       │
       ▼
┌──────────────┐
│   Validate   │  ← Schema & dependency checks
└──────┬───────┘
       ▼
┌──────────────┐
│   Runtimes   │  ← Install Node.js, Python, Ruby, etc.
└──────┬───────┘
       ▼
┌──────────────┐
│ Dependencies │  ← npm install, poetry install, cargo build…
└──────┬───────┘
       ▼
┌──────────────┐
│  Env Vars    │  ← Inject variables into .env
└──────┬───────┘
       ▼
┌──────────────┐
│  Services    │  ← Boot in dependency order (DB → API → Workers)
└──────┬───────┘
       ▼
┌──────────────┐
│Health Checks │  ← TCP / HTTP probes per service
└──────┬───────┘
       ▼
┌──────────────┐
│  Post-Start  │  ← Migrations, seeds, notifications
└──────────────┘

📄 Example Configuration

Here's what oneconfig generate might produce for a typical full-stack Node.js + Postgres application:

project_name: my-app

runtimes:
  - name: node
    version: "20.x"

package_managers:
  - type: npm
    path: .

env_vars:
  NODE_ENV: development
  DATABASE_URL: postgres://localhost:5432/myapp

services:
  - name: postgres
    type: docker
    start_command: docker run -p 5432:5432 postgres:15
    port: 5432
    health_check:
      type: tcp
      target: ":5432"
      timeout: 30s

  - name: api
    start_command: npm run dev
    port: 3000
    depends_on: [postgres]
    health_check:
      type: http
      target: http://localhost:3000/health

setup_steps:
  - name: migrate
    command: npm run db:migrate
    depends_on: [postgres]

post_start_commands:
  - echo "🚀 Application ready at http://localhost:3000"

⌨️ CLI Reference

Command Description
oneconfig generate Scan the current project and auto-generate oneconfig.yml
oneconfig init Create a blank starter config for manual editing
oneconfig up Provision the full environment and start all services
oneconfig down Gracefully stop and tear down all running services
oneconfig status Show live service status, PIDs, ports, and health
oneconfig doctor Audit your system for missing tools and dependencies

🤝 Contributing

We welcome contributions! OneConfig's detection engine is designed to be highly extensible—adding support for a new framework or tool typically requires just one new file.

See the Contributing Guide for full details on how to get started.