AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기CLI to fetch clean urls as clean markdown for LLMs
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
Turn any URL into clean, structured markdown built to feed LLMs. Unlike most url→markdown tools, into-md is tuned for context quality: it auto-detects whether a page needs a static fetch or a headless browser, runs Readability to keep the real article and drop nav/ads/chrome, and serializes tables to JSON so models parse them reliably instead of choking on pipe-delimited rows.
By default, into-md auto-detects whether a page needs a headless browser. It fetches with a static HTTP request first, inspects the result for SPA signals, and falls back to Playwright if needed.README 전문 보기 ↗Turn any URL into clean, structured markdown built to feed LLMs. Unlike most url→markdown tools, into-md is tuned for context quality: it auto-detects whether a page needs a static fetch or a headless browser, runs Readability to keep the real article and drop nav/ads/chrome, and serializes tables to JSON so models parse them reliably instead of choking on pipe-delimited rows.
# Global install with bun from npm
bun add -g into-md
# or
npm install -g into-md
# or
yarn global add into-md
into-md <url>
By default, into-md auto-detects whether a page needs a headless browser. It fetches with a static HTTP request first, inspects the result for SPA signals, and falls back to Playwright if needed.
The static request sends Accept: text/markdown, text/html. If the server answers with text/markdown, that markdown is used as-is (no extraction or conversion), any frontmatter it carries is kept, and the strategy is reported as markdown. With --verbose, the server's x-markdown-tokens count is printed when present.
# Auto-detect (default) — static fetch, falls back to headless if needed
into-md https://example.com/article
# Force headless browser rendering (skip auto-detect probe)
into-md https://spa-site.com/page --js
# Force static HTTP fetch (never launch a browser)
into-md https://example.com/page --no-js
# Skip content extraction, convert full page
into-md https://example.com --raw
# With authentication cookies
into-md https://private-site.com/page --cookies cookies.txt
# Verbose output (includes auto-detect decisions)
into-md https://example.com/article -v
| Flag | Description | Default |
|---|---|---|
-o, --output <file> | Write output to file instead of stdout | stdout |
--js | Force headless browser rendering (skip auto-detect) | auto-detect |
--no-js | Force static HTTP fetch (never launch a browser) | auto-detect |
--raw | Skip content extraction, convert entire HTML | disabled |
--cookies <file> | Path to cookies file for authenticated requests | none |
--user-agent <string> | Custom User-Agent header | browser-like UA |
--encoding <encoding> | Force character encoding (auto-detected by default) | auto |
--strip-links | Remove hyperlinks, keep only anchor text | disabled |
--exclude <selectors> | CSS selectors to exclude (comma-separated) | none |
--timeout <ms> | Request timeout in milliseconds | 30000 |
--no-cache | Bypass response cache | cache enabled |
-v, --verbose | Show detailed progress information | minimal |
-h, --help | Show help | - |
-V, --version | Show version | - |
--js and --no-js are mutually exclusive — passing both is an error.
When no rendering flag is passed, into-md runs a two-stage heuristic to decide whether the page needs a headless browser:
Stage 1 — Raw HTML inspection (before Readability extraction):
#root, #app, #__next, #__nuxt, #__svelte)<noscript> tags mentioning "javascript" combined with a near-empty body (< 100 chars of body text)Stage 2 — Post-extraction content threshold (after Readability):
<article>, <p>, <pre>, <li>, <h1>–<h6>)--raw is passedNon-HTML responses (PDFs, images, etc.) skip auto-detect entirely and use static processing.
A strategy summary is printed to stderr on every run:
Strategy: static
Strategy: headless
Strategy: markdown # server returned markdown directly
Strategy: auto > static # auto-detect chose static
Strategy: auto > headless # auto-detect fell back to headless
Strategy: auto > markdown # auto-detect got markdown from the server
Page metadata is included as YAML frontmatter. title, description, and author come from the page's <title>/meta tags (falling back to Readability's title and byline) and are omitted when absent:
---
title: "Article Title"
description: "Meta description from the page"
author: "Author Name"
strategy: "auto>headless"
source: "https://example.com/article"
---
The strategy field records how the page was fetched: static, headless, markdown, or the auto> form of each. When the server returns markdown with its own frontmatter, those fields (for example date) are carried over.
Tables are converted to fenced JSON blocks for reliable LLM parsing:
{
"caption": "Quarterly Revenue",
"headers": ["Quarter", "Revenue", "Growth"],
"rows": [
{ "Quarter": "Q1", "Revenue": "$1.2M", "Growth": "12%" },
{ "Quarter": "Q2", "Revenue": "$1.5M", "Growth": "25%" }
]
}
Converted markdown is cached in ~/.cache/into-md/ with a 1-hour TTL. Each entry stores the markdown, page metadata, final URL, and the strategy that produced it (static, headless, or markdown), so a cache hit skips fetching and conversion entirely and reports the original strategy in the Strategy: line and frontmatter.
Entries are keyed by URL plus the options that change the output (--raw, --exclude, --strip-links, --encoding). Auto-detect reuses any fresh entry. A forced flag reuses only an entry its strategy could have produced, and otherwise re-fetches and overwrites it:
| Flag | Reuses cached | Re-fetches on cached |
|---|---|---|
| (none) | any strategy | — |
--js | headless | static, markdown |
--no-js | static, markdown | headless |
--no-cache skips both reading and writing the cache.
Playwright is a required dependency but browser binaries are downloaded on first use. If binaries are missing when needed:
CI set): exits with an error telling you to run bunx playwright install chromiumbun install # Install dependencies
bun run start -- <url> # Run the CLI from source
bun run build # Build the CLI
bun run build:watch # Build with watch mode
bun run test # Run tests
bun run check # Check for lint errors
bun run fix # Auto-fix lint errors
bun run typecheck # Type check
<html>/<body>, misplaced table content)MIT