Instructions for Claude to replicate the homelab TypeScript architecture in new projects.
npm:
mkdir my-service && cd my-service
npm init -y| https://forum.keenetic.ru/topic/11085-tailscale-–-сеть-vpn-которая-не-нуждается-в-конфигурировании/page/2/ | |
| сделал инструкцию, еще обкатываю ее, но хотябы tailscale не отключает соединения извне каждые N минут | |
| для тех у кого tailscale вместо headscale пропустите часть с подключением к headscale | |
| Установка компонентов | |
| Hide contents | |
| Установка компонентов |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>qs arrayLimit Test</title> | |
| <style> | |
| body { font-family: monospace; padding: 20px; max-width: 1400px; margin: 0 auto; } | |
| .section { margin-bottom: 30px; } | |
| .section h2 { background: #333; color: white; padding: 10px 15px; margin: 0 0 15px 0; border-radius: 8px 8px 0 0; } | |
| .container { display: flex; gap: 15px; flex-wrap: wrap; } |
LLMs are stateless functions. Their weights are frozen by the time they're used for inference, so they don't learn over time. The only thing that the model knows about your codebase is the tokens you put into it.
Similarly, coding agent harnesses such as Claude Code usually require you to manage agents' memory explicitly. CLAUDE.md (or AGENTS.md) is the only file that by default goes into every single conversation you have with the agent.
This has three important implications:
Coding agents know absolutely nothing about your codebase at the beginning of each session.
| You wrote this code [paste code]. Now pretend you're a senior dev | |
| doing a code review and you HATE this implementation. What would | |
| you criticize? What are the edge cases I'm not seeing? | |
| Once done remove all files |
Instructions for converting TypeScript projects from tsc compilation to Node.js v24 native type stripping.
Node.js v24 can run .ts files directly by stripping types at runtime (no compilation needed). This simplifies the build process and reduces dependencies.
| node_modules | |
| server/dist | |
| public | |
| .idea | |
| .settings | |
| .project | |
| *.log |
| 'use strict'; | |
| // source: https://github.com/jonschlinkert/object.pick | |
| function isObject(val) { | |
| return val !== null && typeof val === 'object' && Array.isArray(val) === false; | |
| } | |
| module.exports = function pick(obj, keys) { | |
| if (!isObject(obj) && typeof obj !== 'function') { |
| money.toFixed().replace(/\d(?=(\d{3})+$)/g, '$& '); |