<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by mucahitceylan on Medium]]></title>
        <description><![CDATA[Stories by mucahitceylan on Medium]]></description>
        <link>https://medium.com/@mucahitceylan?source=rss-9ad5916765c3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KM-AGDGGNRC0yTuDgcsDbg.png</url>
            <title>Stories by mucahitceylan on Medium</title>
            <link>https://medium.com/@mucahitceylan?source=rss-9ad5916765c3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 20:40:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mucahitceylan/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Sanatı Gözümüzle Değil, Beynimizle Görüyoruz]]></title>
            <link>https://medium.com/@mucahitceylan/sanat%C4%B1-g%C3%B6z%C3%BCm%C3%BCzle-de%C4%9Fil-beynimizle-g%C3%B6r%C3%BCyoruz-c76fd3f5bce8?source=rss-9ad5916765c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/c76fd3f5bce8</guid>
            <dc:creator><![CDATA[mucahitceylan]]></dc:creator>
            <pubDate>Fri, 07 Nov 2025 01:51:56 GMT</pubDate>
            <atom:updated>2025-11-07T01:51:56.633Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEF_EGxzCypQhGKPCD0_Qw.png" /></figure><p>Hiç bir tabloya baktığında tüylerinin diken diken olduğunu fark ettin mi?<br>Ya da bir şarkı, daha ilk dinlediğinde ruhuna nasıl bu kadar işler?<br>Belki de güzellik, sandığımız kadar “göz” işi değildir.<br>Belki sanat, beynimizin kendi içinde yarattığı bir biyolojik deneyimdir.</p><p>Bilim buna nöroestetik diyor, yani estetik algının nörobilimi.<br>Basitçe anlatmak gerekirse, beynimiz güzelliği nasıl algılıyor, hangi nöronlar “vay aq” diyor, hangi kimyasal maddeler bizi büyülüyor, işte bunları araştırıyorlar.</p><p>Bir tabloya baktığında beyninde sadece “görme” olayı aktif olmaz.<br>Aynı anda ödül sistemi<strong>, </strong>hafıza merkezi ve duygusal işlem bölgeleri de devreye girer.<br>Yani bir sanat eserine bakmak aslında küçük bir aşk yaşamak gibidir.<br>Bir resme aşık oluruz, bir şarkıya tutuluruz.<br>Ama aslında aşık olduğumuz şey, beynimizin kendi kimyasıdır.</p><h3>Güzellik bir göz değil, bir anlam meselesi</h3><p>En ilginç olanı: güzellik evrensel değil.<br>Birinin büyülendiği tablo, bir başkasına sıradan gelebilir.<br>Çünkü beyin güzelliği yalnızca “renk” ve “şekil” olarak değil, anlam, anı ve kimlik üzerinden yorumlar.</p><p>Van Gogh’un <em>Yıldızlı Gece</em> tablosuna bakan biri sadece bir gökyüzü görmez. Kendi karanlığını, kendi fırtınasını görür.<br>Beyin o görüntüyü kişisel bir hikâyeye çevirir.<br>Bu yüzden sanatla kurduğumuz bağ, aslında kendi iç dünyamızla kurduğumuz bağdır.</p><h3>Sanat bir ayna olabilir ama beyne tutulan bir ayna</h3><p>Belki de sanat dediğimiz şey, beynimizin kendine tuttuğu bir aynadır.<br>Bir tablo değil, bir MRI sonucu gibidir.<br>Bize “Bu sensin. Bu senin duygun, bu senin geçmişin.” der.</p><p>Sanat duygusal mı?<br>Evet.<br>Ama aynı zamanda biyolojik.<br>Bir tabloya ağlamak, aslında beyninin kendi nöronlarının dansını izlemektir.<br>Bir şarkıda kaybolmak, beyninin seni ödüllendirme biçimidir.</p><p>Ve belki de asıl sanatçı, hepimizin içinde oturan o gri, kıvrımlı dahidir.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c76fd3f5bce8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fal.ai API Key’leri: Çalışma Mantığı, JSON Response’lar, Parametreler ve Uygulamalı CLI Demo]]></title>
            <link>https://medium.com/@mucahitceylan/fal-ai-api-keyleri-%C3%A7al%C4%B1%C5%9Fma-mant%C4%B1%C4%9F%C4%B1-json-response-lar-parametreler-ve-uygulamal%C4%B1-cli-demo-6c3b5bce6226?source=rss-9ad5916765c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c3b5bce6226</guid>
            <dc:creator><![CDATA[mucahitceylan]]></dc:creator>
            <pubDate>Wed, 24 Sep 2025 00:46:46 GMT</pubDate>
            <atom:updated>2025-09-24T00:47:03.320Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u2GjxwcGHl85dbCLP9bGFg.png" /></figure><p>API key kavramı neredeyse tüm modern API’lerin kalbinde yer alıyor. Fakat yapay zekâ tabanlı API’lerde özellikle GPU maliyetli (Önceki yazımda belirttiğim ComfyUi) işlemlerde çok daha kritik hale geliyor.Bu yazımda fazlasıyla teknik detaylardan bahsedeceğim ve örnek demolar oluşturacağım. JSON formatını daha fazla detaylandırmak size kalmış.</p><p>Şimdi:</p><ul><li>API key mantığını</li><li>Fal.ai’de nasıl çalıştığını</li><li>JSON response formatlarını</li><li>Model parametrelerini</li><li>İleri seviye prompt engineering yöntemlerini</li><li>Ve en önemlisi: uçtan uca <strong>uygulamalı CLI demo</strong>yu adım adım inceleyeceğiz.</li></ul><h3>1. API Key Mantığı</h3><p>API key aslında sizin <strong>dijital kimliğinizdir.</strong> Fal.ai tarafında:</p><ul><li>Her hesap için tekil bir key üretilir.</li><li>Bu key ile kimlik doğrulama yapılır.</li><li>İstek sayınız izlenir, <strong>rate limit</strong> kontrol edilir.</li><li>Planınıza göre (free, pro, enterprise) yetkileriniz belirlenir.</li></ul><blockquote><strong><em>Not:</em></strong><em> API key’inizi asla public repo, frontend kodu veya loglarda paylaşmayın.</em></blockquote><h3>2. İlk Adım: API Key Alma</h3><ol><li><a href="https://fal.ai/">Fal.ai</a> üzerinde hesap açın.</li><li>Dashboard → <strong>API Keys</strong> sekmesine gidin.</li><li>Yeni key üretin ve bir kenara not alın.</li></ol><p>Örnek:</p><pre>fal-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</pre><h3>3. Basit Kullanım: cURL ile Test</h3><pre>curl -X POST &quot;https://api.fal.ai/v1/generate&quot; \<br>  -H &quot;Authorization: Key fal-xxxxxxxx&quot; \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;prompt&quot;: &quot;uzayda süzülen retro bir bilgisayar&quot;,<br>    &quot;size&quot;: &quot;1024x1024&quot;<br>  }&#39;</pre><p>Başarılı yanıt:</p><pre>{<br>  &quot;id&quot;: &quot;gen_7fh2k9&quot;,<br>  &quot;status&quot;: &quot;success&quot;,<br>  &quot;created_at&quot;: &quot;2025-09-24T12:34:56Z&quot;,<br>  &quot;url&quot;: &quot;https://fal.ai/storage/generated/gen_7fh2k9.png&quot;,<br>  &quot;parameters&quot;: {<br>    &quot;prompt&quot;: &quot;uzayda süzülen retro bir bilgisayar&quot;,<br>    &quot;size&quot;: &quot;1024x1024&quot;,<br>    &quot;steps&quot;: 50,<br>    &quot;guidance&quot;: 7.5<br>  },<br>  &quot;usage&quot;: {<br>    &quot;credits&quot;: 1,<br>    &quot;remaining&quot;: 99<br>  }<br>}</pre><h3>4. JSON Response Formatı</h3><p>Yanıtların şeması genelde şu kalıba uyar:</p><pre>{<br>  &quot;id&quot;: &quot;string&quot;,<br>  &quot;status&quot;: &quot;success|error&quot;,<br>  &quot;created_at&quot;: &quot;ISO 8601 datetime&quot;,<br>  &quot;url&quot;: &quot;string (image/video link)&quot;,<br>  &quot;parameters&quot;: {<br>    &quot;prompt&quot;: &quot;string&quot;,<br>    &quot;size&quot;: &quot;string&quot;,<br>    &quot;steps&quot;: &quot;integer&quot;,<br>    &quot;guidance&quot;: &quot;float&quot;<br>  },<br>  &quot;usage&quot;: {<br>    &quot;credits&quot;: &quot;integer&quot;,<br>    &quot;remaining&quot;: &quot;integer&quot;<br>  },<br>  &quot;error&quot;: {<br>    &quot;code&quot;: &quot;string&quot;,<br>    &quot;message&quot;: &quot;string&quot;<br>  }<br>}</pre><h3>5. Model Parametreleri</h3><p>Fal.ai modelleri genellikle şunları destekler:</p><ul><li><strong>prompt</strong> → asıl üretim talimatınız</li><li><strong>negative_prompt</strong> → istemediğiniz unsurlar</li><li><strong>size</strong> → görsel boyutu (512x512, 1024x1024)</li><li><strong>steps</strong> → diffusion adım sayısı (kalite vs. hız dengesi)</li><li><strong>guidance</strong> → prompt’a bağlılık katsayısı</li><li><strong>seed</strong> → deterministik tekrar için sabit rastgelelik</li></ul><h3>Python Örneği</h3><pre>import fal_client</pre><pre>client = fal_client.Client(api_key=&quot;fal-xxxxxxxx&quot;)</pre><pre>result = client.generate(<br>    prompt=&quot;güneşli sahilde kahve içen robot&quot;,<br>    negative_prompt=&quot;bulanık, düşük çözünürlük, metin&quot;,<br>    size=&quot;1024x1024&quot;,<br>    steps=60,<br>    guidance=8.0,<br>    seed=12345<br>)</pre><pre>print(result.url)</pre><h3>6. Advanced Prompt Engineering</h3><h3>Stil Belirtme</h3><pre>prompt = &quot;Ortaçağ tarzında çizilmiş, yağlı boya, dramatik ışıklandırma&quot;</pre><h3>Kamera Parametreleri</h3><pre>prompt = &quot;portre, 85mm lens, düşük alan derinliği, sinematik ışık&quot;</pre><h3>Negatif Prompt</h3><pre>prompt = &quot;futuristik şehir manzarası, neon ışıklar&quot;<br>negative = &quot;bulanık, loş ışık, düşük kalite&quot;</pre><h3>Çoklu Konsept</h3><pre>prompt = &quot;karlı dağlarda cyberpunk samuray, epik, konsept sanat&quot;</pre><h3>Seed ile Tutarlılık</h3><pre>result1 = client.generate(prompt=&quot;retro bilgisayar&quot;, seed=42)<br>result2 = client.generate(prompt=&quot;retro bilgisayar&quot;, seed=42)<br># → Aynı görsel döner</pre><h3>7. Hata Yönetimi</h3><ul><li><strong>401 Unauthorized</strong> → Yanlış API key</li><li><strong>429 Too Many Requests</strong> → Rate limit aşıldı</li><li><strong>500+</strong> → Model veya sunucu hatası</li></ul><p>Python’da:</p><pre>try:<br>    result = client.generate(prompt=&quot;test&quot;)<br>except fal_client.AuthenticationError:<br>    print(&quot;API key hatalı.&quot;)<br>except fal_client.RateLimitError:<br>    print(&quot;Çok fazla istek gönderdiniz, biraz bekleyin.&quot;)<br>except Exception as e:<br>    print(&quot;Beklenmeyen hata:&quot;, e)</pre><h3>8. Uygulamalı CLI Demo</h3><p>Artık teoriyi pratiğe dökelim. Basit bir <strong>komut satırı aracı</strong> yazalım:</p><ul><li>.env dosyasında API key saklayacak,</li><li>Kullanıcıdan prompt ve parametreleri alacak,</li><li>Fal.ai API’sini çağıracak,</li><li>Dönen görseli indirip kaydedecek,</li><li>Batch (çoklu prompt) desteği sunacak.</li></ul><h3>Proje Yapısı</h3><pre>fal_demo/<br>├─ main.py<br>├─ utils.py<br>├─ requirements.txt<br>├─ .env.example<br>└─ README.md</pre><h3>requirements.txt</h3><pre>requests&gt;=2.32.0,&lt;3<br>python-dotenv&gt;=1.0.1,&lt;2<br>pydantic&gt;=2.8.0,&lt;3</pre><h3>.env.example</h3><pre>FAL_KEY=fal-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</pre><h3>main.py</h3><p>CLI giriş noktası:</p><pre>from dotenv import load_dotenv<br>import argparse, os, sys, json<br>from utils import FalParameters, call_fal_generate, download_file, validate_size, get_env</pre><pre>def parse_args():<br>    p = argparse.ArgumentParser()<br>    p.add_argument(&quot;--prompt&quot;, type=str, help=&quot;Prompt&quot;)<br>    p.add_argument(&quot;--negative&quot;, type=str, default=None)<br>    p.add_argument(&quot;--size&quot;, type=str, default=&quot;1024x1024&quot;)<br>    p.add_argument(&quot;--steps&quot;, type=int, default=40)<br>    p.add_argument(&quot;--guidance&quot;, type=float, default=7.5)<br>    p.add_argument(&quot;--seed&quot;, type=int, default=None)<br>    p.add_argument(&quot;--out&quot;, type=str, default=&quot;outputs/out.png&quot;)<br>    return p.parse_args()</pre><pre>def main():<br>    load_dotenv()<br>    api_key = get_env(&quot;FAL_KEY&quot;, required=True)<br>    args = parse_args()<br>    validate_size(args.size)</pre><pre>    params = FalParameters(<br>        prompt=args.prompt,<br>        negative_prompt=args.negative,<br>        size=args.size,<br>        steps=args.steps,<br>        guidance=args.guidance,<br>        seed=args.seed,<br>    )</pre><pre>    result = call_fal_generate(api_key, params)<br>    final_path = download_file(result.url, args.out)<br>    print(f&quot;✓ Görsel üretildi: {final_path}&quot;)</pre><pre>if __name__ == &quot;__main__&quot;:<br>    main()</pre><h3>utils.py</h3><p>İstek atma + hata yönetimi:</p><pre>import os, requests, time<br>from pydantic import BaseModel</pre><pre>class FalParameters(BaseModel):<br>    prompt: str<br>    negative_prompt: str | None = None<br>    size: str = &quot;1024x1024&quot;<br>    steps: int = 40<br>    guidance: float = 7.5<br>    seed: int | None = None</pre><pre>class FalSuccess(BaseModel):<br>    id: str<br>    status: str<br>    url: str</pre><pre>def get_env(name: str, required=False):<br>    val = os.getenv(name)<br>    if required and not val:<br>        raise RuntimeError(f&quot;Missing env var: {name}&quot;)<br>    return val</pre><pre>def validate_size(size: str):<br>    w, h = map(int, size.split(&quot;x&quot;))<br>    if not (256 &lt;= w &lt;= 2048 and 256 &lt;= h &lt;= 2048):<br>        raise ValueError(&quot;Geçersiz boyut&quot;)</pre><pre>def call_fal_generate(api_key: str, params: FalParameters) -&gt; FalSuccess:<br>    url = &quot;https://api.fal.ai/v1/generate&quot;<br>    headers = {&quot;Authorization&quot;: f&quot;Key {api_key}&quot;, &quot;Content-Type&quot;: &quot;application/json&quot;}<br>    for i in range(3):<br>        r = requests.post(url, json=params.model_dump(), headers=headers, timeout=30)<br>        if r.status_code == 200:<br>            return FalSuccess(**r.json())<br>        if r.status_code in (429, 500, 502, 503):<br>            time.sleep(2 ** i)<br>            continue<br>        raise RuntimeError(f&quot;Hata: {r.text}&quot;)<br>    raise RuntimeError(&quot;Fal API başarısız&quot;)</pre><pre>def download_file(url: str, out_path: str):<br>    r = requests.get(url, stream=True)<br>    r.raise_for_status()<br>    os.makedirs(os.path.dirname(out_path), exist_ok=True)<br>    with open(out_path, &quot;wb&quot;) as f:<br>        for chunk in r.iter_content(8192):<br>            f.write(chunk)<br>    return out_path</pre><h3>9. CLI Kullanımı</h3><p>Tek görsel üretmek için:</p><pre>python main.py \<br>  --prompt &quot;neon ışıklı cyberpunk sokak, yağmur sonrası, sinematik&quot; \<br>  --size 1024x1024 \<br>  --steps 50 \<br>  --guidance 8.0 \<br>  --seed 42 \<br>  --out outputs/cyberpunk.png</pre><p>JSON görmek için:</p><pre>python main.py --prompt &quot;retro bilgisayar&quot;</pre><p>Batch (çoklu prompt) sürümünü de ekleyerek bir dosyadan onlarca görsel üretebilirsiniz.</p><h3>10. Sonuç</h3><p>Fal.ai API key, yalnızca bir doğrulama aracı değil: <strong>yetkilendirme, kullanım takibi ve güvenlik</strong> mekanizmasının merkezi.</p><p>Bu yazıda gördük:</p><ul><li>API key olmadan Fal.ai’ye erişim mümkün değil.</li><li>JSON response formatı oldukça anlaşılır.</li><li>Parametreler (steps, guidance, seed, negative prompt) çıktıyı dramatik biçimde etkiliyor.</li><li>Prompt engineering teknikleriyle görselleri ciddi biçimde iyileştirebilirsiniz.</li><li>CLI demo sayesinde uçtan uca kendi otomasyonunuzu kurabilirsiniz.</li></ul><p>Doğru API key yönetimi ile Fal.ai’yi; <strong>içerik üretim pipeline’larından e-ticaret görsel otomasyonuna</strong> kadar birçok senaryoda güvenle entegre edebilirsiniz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c3b5bce6226" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ComfyUI: A Technical Deep Dive into the Ultimate Stable Diffusion Workflow Engine]]></title>
            <link>https://medium.com/@mucahitceylan/comfyui-a-technical-deep-dive-into-the-ultimate-stable-diffusion-workflow-engine-df1a7db3f7f5?source=rss-9ad5916765c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/df1a7db3f7f5</guid>
            <dc:creator><![CDATA[mucahitceylan]]></dc:creator>
            <pubDate>Mon, 15 Sep 2025 13:39:09 GMT</pubDate>
            <atom:updated>2025-09-15T13:39:09.784Z</atom:updated>
            <content:encoded><![CDATA[<p>As someone who’s spent countless hours wrestling with generative AI pipelines, I can confidently say that ComfyUI has become a game-changer for anyone serious about Stable Diffusion workflows. It’s not just another interface it’s a modular, node-based powerhouse that gives you unparalleled control over the image generation process. This article is a technical exploration of ComfyUI, diving into its architecture, node system, custom integrations, and optimization strategies. Whether you’re a machine learning engineer or a creative tinkerer, let’s unpack what makes ComfyUI tick and why it’s worth your time.</p><h3>What Is ComfyUI, Really?</h3><p>At its core, ComfyUI is an open-source, node-based graphical interface for running Stable Diffusion models and other generative AI tasks. Unlike text-based interfaces like Automatic1111’s WebUI, ComfyUI lets you build workflows visually by connecting nodes — think of it like a visual programming environment for AI pipelines. Each node represents a specific operation (e.g., loading a model, applying a prompt, or upscaling an image), and the connections between them define the data flow.</p><p>The beauty of ComfyUI lies in its flexibility. It’s built with Python, leverages PyTorch for model execution, and runs locally or on cloud setups with minimal fuss. Its modular design means you can customize nearly every aspect of the pipeline, from model loading to post-processing, without touching a line of code (though you can if you want to). Let’s break down its technical underpinnings.</p><h3>Architecture and Core Components</h3><h3>Node-Based Workflow</h3><p>ComfyUI’s interface is built around a directed acyclic graph (DAG) where nodes represent operations and edges define data dependencies. Each node has inputs and outputs, and the system evaluates the graph lazily only executing nodes when their outputs are needed. This approach minimizes resource usage and makes it easy to experiment with complex pipelines.</p><p>For example, a typical Stable Diffusion workflow might include:</p><ul><li><strong>Load Checkpoint Node</strong>: Loads a pre-trained model (e.g., SDXL, Stable Diffusion 1.5) from a .safetensors or .ckpt file.</li><li><strong>CLIP Text Encode Node</strong>: Processes the prompt and negative prompt through the CLIP model to generate text embeddings.</li><li><strong>KSampler Node</strong>: Runs the denoising process, sampling from the latent space using a specified scheduler (e.g., DPM++ 2M Karras).</li><li><strong>VAE Decode Node</strong>: Converts the latent representation back to a pixel image.</li></ul><p>The graph is executed by a backend engine that optimizes the computation order, ensuring that only necessary operations are performed. This is particularly useful when iterating on a workflow you can tweak a single node (say, change the prompt or sampler settings) without re-running the entire pipeline.</p><h3>Backend and Execution</h3><p>ComfyUI is built on Python and PyTorch, with a lightweight Flask-based web server for the frontend. The backend handles model loading, tensor operations, and GPU/CPU scheduling. It’s designed to be hardware-agnostic, supporting NVIDIA GPUs (via CUDA), AMD GPUs (via ROCm), and even CPU-only setups, though performance on CPUs is understandably slower.</p><p>The execution engine uses PyTorch’s dynamic computation graph, which allows for flexible manipulation of tensors during runtime. This is a double-edged sword: it enables rapid prototyping but can lead to memory fragmentation if not managed carefully. To mitigate this, ComfyUI implements a caching mechanism for intermediate tensors and supports offloading unused models to CPU or disk.</p><h3>Memory Management</h3><p>Memory efficiency is a big deal in Stable Diffusion, especially when working with large models like SDXL (which can eat up 10GB+ of VRAM). ComfyUI tackles this through:</p><ul><li><strong>Lazy Evaluation</strong>: Only computes nodes when their outputs are required.</li><li><strong>Model Offloading</strong>: Moves unused models to CPU or disk to free up GPU memory.</li><li><strong>Tiled Processing</strong>: For large images, ComfyUI can process them in smaller tiles, reducing VRAM requirements at the cost of slightly longer runtimes.</li></ul><p>For example, when running SDXL on a 12GB GPU, you might hit VRAM limits with high-resolution outputs. By enabling tiled VAE decoding or using a lower-resolution latent space, ComfyUI can squeeze out performance even on modest hardware.</p><h3>Building and Extending Workflows</h3><h3>Creating a Workflow</h3><p>Let’s walk through a practical example of a ComfyUI workflow for generating a high-quality image with SDXL, complete with upscaling and post-processing. Here’s a simplified version:</p><ol><li><strong>Load Model</strong>: Use a LoadCheckpoint node to load an SDXL model (e.g., sdxl_v1-0.safetensors).</li><li><strong>Text Encoding</strong>: Connect two CLIPTextEncode nodes—one for the positive prompt (“A cyberpunk cityscape at night, neon lights, highly detailed”) and one for the negative prompt (“blurry, low quality, artifacts”).</li><li><strong>Sampling</strong>: Feed the embeddings into a KSampler node. Set parameters like steps=30, cfg_scale=7.5, and scheduler=DPM++ 2M Karras.</li><li><strong>Latent Upscaling</strong>: Use a LatentUpscale node to increase the resolution of the latent representation (e.g., 2x scaling).</li><li><strong>VAE Decoding</strong>: Pass the upscaled latent to a VAEDecode node to generate the final image.</li><li><strong>Post-Processing</strong>: Add a ImageSharpen or ColorCorrection node for finishing touches.</li></ol><p>This workflow can be saved as a JSON file, which is essentially a serialized representation of the node graph. You can share it, modify it, or load it later, making ComfyUI highly collaborative.</p><h3>Custom Nodes and Extensions</h3><p>One of ComfyUI’s killer features is its extensibility. The community has built a vibrant ecosystem of custom nodes, available through the <strong>ComfyUI Manager</strong>, which acts as a package manager for extensions. Popular custom nodes include:</p><ul><li><strong>ControlNet Nodes</strong>: For guiding image generation with additional inputs like depth maps or edge detection (e.g., ControlNetApply).</li><li><strong>IPAdapter Nodes</strong>: For style transfer or image-to-image tasks using reference images.</li><li><strong>ComfyUI-Impact-Pack</strong>: Adds advanced inpainting and outpainting capabilities.</li></ul><p>To create your own node, you define a Python class that inherits from comfy.node.Node. Here’s a minimal example of a custom node that inverts an image’s colors:</p><p>import torch from comfy.node import Node</p><p>class InvertImageColors(Node):<br> @classmethod<br> def INPUT_TYPES(cls):<br> return {<br> “required”: {<br> “image”: (“IMAGE”,)<br> }<br> }</p><pre>RETURN_TYPES = (&quot;IMAGE&quot;,)<br>FUNCTION = &quot;invert&quot;<br>CATEGORY = &quot;Image Processing&quot;</pre><pre>def invert(self, image):<br>    # Invert colors: new_pixel = 1 - old_pixel<br>    inverted = 1.0 - image<br>    return (inverted,)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df1a7db3f7f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[v0.dev ile Tasarım, Supabase ile Veri, Node.js ile API]]></title>
            <link>https://medium.com/@mucahitceylan/v0-dev-ile-tasar%C4%B1m-supabase-ile-veri-node-js-ile-api-ee10de56e29a?source=rss-9ad5916765c3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee10de56e29a</guid>
            <dc:creator><![CDATA[mucahitceylan]]></dc:creator>
            <pubDate>Fri, 04 Jul 2025 12:01:43 GMT</pubDate>
            <atom:updated>2025-07-04T12:36:19.945Z</atom:updated>
            <content:encoded><![CDATA[<p>Bir fikrin var. Belki bir ürün listeleme sitesi, belki bir blog arayüzü, belki de bir dashboard. Çoğumuzun yaşadığı ilk sorun şu:<br> <em>Bunu bir arayüze nasıl dökeceğim?</em><br> <em>Bu arayüzü nasıl canlı verilerle besleyeceğim?</em></p><p>Eskiden şöyle bir yol izlerdik:<br> 1 Figma aç, tasarımı çiz.<br> 2 Yazılımcıya ver, React ya da Vue kodunu yazsın.<br> 3 Backend bağla, API çağrılarını entegre et.</p><p>Ama artık işler değişti. <strong>v0.dev</strong> bu süreci kökünden değiştiren bir araç.</p><p><em>“Ürün listeleme sayfası, üstte arama kutusu, sol menüde kategori filtresi, sade ve modern bir görünüm.”</em></p><p>Bunu v0.dev’e yazıyorsun. Sonra?<br> Tertemiz bir React + Tailwind + shadcn/ui kodu ve canlı bir arayüz birkaç saniye içinde önünde.</p><h3><strong>v0.dev’in amacı ne?</strong></h3><p>v0.dev’in arkasındaki fikir basit ama çok güçlü:<br> <em>“Doğal bir cümle yaz, tasarım ve kod hazır olsun.”</em></p><p>Yani arayüzü hayal edip tarif ediyorsun, o hayal modern ve kullanılabilir bir front-end’e dönüşüyor. Figma aşaması yok, frontend kodcusu beklemek yok.<br> Ayrıca sadece prototip değil; v0.dev’in ürettiği kod doğrudan Supabase, Node.js gibi backend’lere entegre olmaya hazır.</p><h3>Supabase ile entegrasyon: Arayüz + canlı veri</h3><p>Şimdi diyelim ki ürünlerini Supabase’te tutuyorsun. Bir products tablon var:<br> id, name, price, category gibi alanlarla.</p><p>v0.dev sana arayüzü verdi. Peki bunu Supabase’e nasıl bağlayacaksın? İşte o kadar kolay ki:</p><p>1:Supabase client’ı kur</p><pre>npm install @supabase/supabase-js</pre><pre>// supabaseClient.js<br>import { createClient } from &#39;@supabase/supabase-js&#39;<br><br>const supabaseUrl = &#39;https://YOUR_PROJECT_ID.supabase.co&#39;<br>const supabaseAnonKey = &#39;YOUR_PUBLIC_ANON_KEY&#39;<br><br>export const supabase = createClient(supabaseUrl, supabaseAnonKey)</pre><p>2: Supabase Client Tanımı (.env Kullanımıyla Güvenli)</p><p>.env.local dosyasına şunları ekle:</p><pre>NEXT_PUBLIC_SUPABASE_URL=https://YOUR_PROJECT_ID.supabase.co<br>NEXT_PUBLIC_SUPABASE_ANON_KEY=YOUR_PUBLIC_ANON_KEY</pre><p><strong>Dikkat:</strong> .env dosyanı .gitignore içine eklemeyi unutma ki hassas bilgiler versiyon kontrol sistemine yüklenmesin!</p><pre># .gitignore<br>.env<br>.env.local</pre><p>Sonra <strong>supabaseClient.js</strong> dosyanda şöyle kullan:</p><pre>import { createClient } from &#39;@supabase/supabase-js&#39;<br><br>const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL<br>const supabaseAnonKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY<br><br>export const supabase = createClient(supabaseUrl, supabaseAnonKey)</pre><p>3: v0.dev arayüzü Supabase’den veri çeksin</p><pre>import React, { useEffect, useState } from &#39;react&#39;<br>import { supabase } from &#39;./supabaseClient&#39;<br><br>export default function ProductList() {<br>  const [products, setProducts] = useState([])<br><br>  useEffect(() =&gt; {<br>    async function fetchProducts() {<br>      let { data, error } = await supabase<br>        .from(&#39;products&#39;)<br>        .select(&#39;*&#39;)<br><br>      if (error) console.error(error)<br>      else setProducts(data)<br>    }<br><br>    fetchProducts()<br>  }, [])<br><br>  return (<br>    &lt;div className=&quot;grid grid-cols-3 gap-4&quot;&gt;<br>      {products.map(product =&gt; (<br>        &lt;div key={product.id} className=&quot;border p-4 rounded&quot;&gt;<br>          &lt;h2 className=&quot;text-lg font-bold&quot;&gt;{product.name}&lt;/h2&gt;<br>          &lt;p&gt;Fiyat: {product.price} TL&lt;/p&gt;<br>          &lt;p&gt;Kategori: {product.category}&lt;/p&gt;<br>        &lt;/div&gt;<br>      ))}<br>    &lt;/div&gt;<br>  )<br>}</pre><p>Bitti. Artık arayüzün Supabase’den canlı veri çekiyor.</p><p>4: Gerçek zamanlı (realtime) destek de ekle</p><pre>useEffect(() =&gt; {<br>  const subscription = supabase<br>    .from(&#39;products&#39;)<br>    .on(&#39;*&#39;, payload =&gt; {<br>      console.log(&#39;Değişiklik oldu:&#39;, payload)<br>      // İster fetchProducts ile yeniden çek, ister state&#39;i güncelle<br>    })<br>    .subscribe()<br><br>  return () =&gt; {<br>    supabase.removeSubscription(subscription)<br>  }<br>}, [])</pre><p>Yeni ürün eklendi mi? Fiyat mı değişti? Arayüz anında güncelleniyor.</p><h3>Node.js ile API konuşması</h3><p>Backend’in Node.js? Sorun değil.<br> v0.dev’in ürettiği arayüzde fetch/axios ile API çağrılarını kolayca entegre edersin:</p><pre>async function fetchProducts() {<br>  const response = await fetch(&#39;/api/products&#39;)<br>  const data = await response.json()<br>  setProducts(data)<br>}</pre><p>Node.js API’lerinle uyumlu, sade ve şık bir front-end hemen hazır.</p><h3>Neden v0.dev + Supabase + Node.js kombinasyonu müthiş?</h3><p>Arayüz hayalini bir cümleyle hayata geçiriyorsun.<br> Canlı veriyi birkaç satır kodla bağlayabiliyorsun.<br> Gerçek zamanlı güncellemeler entegre ediliyor.<br> Üretilen kod modern, modüler, genişletilebilir.<br> API’lerle sorunsuz çalışıyor.</p><p>Node.js API’lerinle uyumlu, sade ve şık bir front-end hemen hazır.</p><h3>Neden v0.dev + Supabase + Node.js kombinasyonu müthiş?</h3><p>Arayüz hayalini bir cümleyle hayata geçiriyorsun.<br> Canlı veriyi birkaç satır kodla bağlayabiliyorsun.<br> Gerçek zamanlı güncellemeler entegre ediliyor.<br> Üretilen kod modern, modüler, genişletilebilir.<br> API’lerle sorunsuz çalışıyor.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee10de56e29a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>