x402-url-to-markdown / tree / src/node.js ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
import { serve } from '@hono/node-server';
import { createApp } from './app.js';
import { configFromEnv } from './config.js';
const port = Number(process.env.PORT || 8788);
serve({ fetch: createApp(configFromEnv(process.env)).fetch, port });
console.log(`WebRead on http://localhost:${port}`);

agentgate-source: code mirror on Cloudflare Pages. All repos