[{"content":"I have been working on a serial fiction project called Applied Yarns (the site is not up yet as of this writing but I wanted to post here about how I\u0026rsquo;m setting up some aspects of it) where I want to publish some fictional works. The first world I plan to explore there is Vvell, which soon I hope you\u0026rsquo;ll read about on the appliedyarns site.\nI have lots of ideas but I don\u0026rsquo;t really have time right now to publish daily or even weekly updates and for me, the biggest hurdle is time spent doing editing. I find it possible to generate a block of about 1000 words within the world in a relatively short session but I don\u0026rsquo;t have time to polish and edit it during the same day given my work and family obligations.\nI\u0026rsquo;m not entirely sure it\u0026rsquo;s a good idea to use an LLM as an editor or to get the story closer to a polished state, but I wanted to try it out. At the same time, I don\u0026rsquo;t think readers are really trusting of people who use AI to write, so I\u0026rsquo;m also publishing the exact freewriting raw material which the LLM uses to help polish the story together.\nThere are times that I don\u0026rsquo;t really like the phrasing or choice of metaphor used by the editor agent, so I\u0026rsquo;ll do an editorial pass of my own after it has had its turn. With this I think it will be possible for me to publish small \u0026ldquo;dispatches\u0026rdquo; once a week, which I think is a fine goal for someone like me trying to get a foot in the door of serial fiction.\nWhen you\u0026rsquo;re freewriting you certainly end up being messy, contradicting yourself, and I even messed up character names. You also sometimes don\u0026rsquo;t just focus on the story and instead start writing about the world itself. The editor agent can take all of this and do a first pass at sorting the raw material into buckets that are much easier to do your own polish on than working straight from 1000 word chunks.\nSo I had a problem that is basically an editorial problem: take a pile of raw freewrites and turn them into a consistent published archive without losing the raw material and without the world\u0026rsquo;s canon drifting out from under me. So far it seems like a problem an LLM can help with, as long as you are careful about which parts you hand over. This post is about the pipeline I am building with Claude Code and the lessons so far that might transfer to anyone doing creative work with an LLM in the loop.\nThe rule I\u0026rsquo;m testing: use the LLM as an editor and an archivist, never as the author, and enforce that boundary with a hard approval gate.\nThe shape of the pipeline The whole thing is a directory convention plus a skill (a markdown file of instructions the agent reads before doing anything). The flow looks like this:\nI drop raw freewrites into freewrites/inbox/, a directory that lives outside the Hugo content/ directory so nothing raw ever gets published by accident. I tell the agent to process the inbox. It reads every inbox file, the world canon file (WORLD.md), and a few recent published entries from each section it might write into (so it can match voice and check for overlap). It writes a proposal to freewrites/inbox/PROPOSAL.md and stops. Completely stops. At this point it has not touched a single other file. I read the proposal, adjust it or approve it. Only after approval does it update the canon, write the polished entries, archive the raw freewrites verbatim, and clean up after itself. Steps 2 and 3 are the analyze phase and step 5 is the write phase. The gap between them is the important part.\nThe approval gate is the whole trick The first version of any \u0026ldquo;LLM processes my writing\u0026rdquo; workflow that people reach for is one shot: here is my raw text, go update the site. I think this is a mistake for creative work even when the model does a decent job, because you lose the moment where you get to exercise judgement over your own world.\nThe proposal document forces that moment to exist. For each freewrite the agent has to lay out:\nCanon additions — every new proper noun, place, fact, or custom, with the exact sentence it wants to add to WORLD.md and which category it lands under. Canon conflicts — anything in the freewrite that contradicts existing canon, quoting both sides. The skill instructions say NEVER silently resolve a conflict. I choose whether to revise canon, treat the new material as apocrypha, or drop it. Planned entries — for each entry it wants to write: the target section, a working title, a one line pitch, and which freewrites it draws from. It is also allowed to propose that part of a freewrite yields nothing yet, which is a surprisingly important permission to grant. Not every session needs to become content. Reading a proposal takes me a few minutes. Writing the polished entries myself would take hours. That\u0026rsquo;s the trade: the LLM does the labor and I keep the authorship decisions.\nOne practical detail: because the proposal is a file and not just chat output, the pipeline is resumable. The skill starts with a resume check — if PROPOSAL.md exists from a previous session, present it and ask whether to proceed, revise, or discard. Sessions get interrupted, usage limits reset, life happens. Making the intermediate state a file means none of that loses work.\nCanon is a file, and conflicts surface loudly WORLD.md is the single source of truth for the world. Every proper noun that appears in a published entry has to exist there first, which the skill enforces as an explicit rule. This sounds bureaucratic but it is the thing that keeps a fictional world coherent when it\u0026rsquo;s being assembled from stream-of-consciousness sessions written weeks apart.\nThe conflict surfacing has caught real contradictions I generated and might have caught on my own, but maybe not. When your freewrite from Tuesday disagrees with canon you wrote three weeks ago, you want that decision put in front of you with both quotes side by side, not smoothed over by a model that is trained to produce agreeable, consistent-sounding text. But as you go on with serial fiction you get less leeway like this so it\u0026rsquo;s good to have an editor say, \u0026ldquo;hey guy what are we doing here.\u0026rdquo;\nArchive the raw material byte-for-byte After approval, each raw freewrite gets moved into a published freewrites section with frontmatter added, but the body is copied byte-for-byte verbatim. No typo fixes, no reformatting. The skill says exactly that, in those words, because an LLM\u0026rsquo;s natural instinct is to helpfully clean things up.\nI wanted this for two reasons. First, the raw sessions are honest in a way the polished entries aren\u0026rsquo;t, and readers who care can see the B-roll. Second, every polished entry carries a sources list in its frontmatter pointing back at the freewrite slugs it was drawn from, so there is full provenance from published dispatch back to the raw session it came from. A small Hugo build check at the end of the pipeline verifies none of those source links are dangling.\nIt\u0026rsquo;s still entirely possible that some (or most) readers will just hate the idea that a model was used in the process, but I\u0026rsquo;d be interested to hear those opinions directly.\nWhen the agent misbehaves, fix the skill, not the output I\u0026rsquo;m using my new project cassette, a TUI for freewriting, to do the freewriting. Early on I wanted a way to write things during a freewrite that were off the record (notes to myself, ideas I wasn\u0026rsquo;t committing to, or just to pause and do the freewrite thing of \u0026ldquo;no idea no idea no idea\u0026hellip;\u0026rdquo;). So I added a \u0026ldquo;B-sides\u0026rdquo; feature to the TUI. This just lets me write whatever then return to the A side once I get momentum back. The agent kept incorporating B-side material into proposals despite instructions not to.\nThe right fix is to open the skill file and add the rule: everything from a \u0026ldquo;B side\u0026rdquo; heading to the next H2 is off the record, excluded from canon and entries, but still archived verbatim with the rest of the session. One edit, and the behavior is fixed for every future session instead of just this one.\nThe skill also grew an Editorial notes section at the bottom that I maintain by hand and that explicitly overrides the defaults above it. This is where standing creative guidance lives: dispatches are the primary story mechanism, they are written in third person close on the main character, I prefer short character names so flag long ones in the proposal. When my taste changes, I edit that section and the pipeline changes with it. It\u0026rsquo;s the same feedback loop as maintaining a CLAUDE.md for a codebase, just pointed at editorial judgement instead of code style.\nThe consistency sweep, an underrated superpower A side benefit of having canon in a file and all content in a repo: renames become cheap. I renamed a character partway through (long names kept bothering me) and a faction too. Doing a rename sweep across every published entry, checking each occurrence against the nomenclature in WORLD.md, is exactly the kind of tedious, mechanical, judgement-light work an LLM does quickly and, so far in my experience, well. This is the \u0026ldquo;archivist\u0026rdquo; half of the job and the part I\u0026rsquo;m most comfortable handing over.\nWhat I\u0026rsquo;d tell someone building their own Put the raw material somewhere the publish step can\u0026rsquo;t see. An inbox directory outside content/ costs nothing and prevents the worst accident. Make the LLM produce a proposal artifact and make approval a hard gate. The gate is what keeps the work yours. Keep canon in one file and require everything published to trace back to it. Archive raw input verbatim with provenance links. You will want the paper trail. When the agent does something you don\u0026rsquo;t like twice, encode the correction in the process doc instead of correcting the output again. The thing I was worried about going in was that putting an LLM in the middle of a creative project would flatten the writing into generic LLM prose. I think being straightforward about how you use an LLM in the process of creation and providing a view of the raw material is the way to engage with audiences. And I also think such a process will lead to prose that doesn\u0026rsquo;t just sound like any other generated text (which definitely has its own style). Nonetheless the jury really still is out if \u0026ldquo;good\u0026rdquo; work can be made this way.\n","permalink":"https://jsphwrkshp.com/posts/how-to-build-an-llm-editorial-pipeline-for-fiction/","summary":"\u003cp\u003eI have been working on a serial fiction project called \u003ca href=\"https://appliedyarns.com\"\u003eApplied Yarns\u003c/a\u003e\n(the site is not up yet as of this writing but I wanted to post here about how I\u0026rsquo;m setting up\nsome aspects of it) where I want to publish some fictional works. The first world I plan to\nexplore there is Vvell, which soon I hope you\u0026rsquo;ll read about on the appliedyarns site.\u003c/p\u003e\n\u003cp\u003eI have lots of ideas but I don\u0026rsquo;t really have time right now to publish daily or even weekly updates\nand for me, the biggest hurdle is time spent doing editing. I find it possible to generate a block\nof about 1000 words within the world in a relatively short session but I don\u0026rsquo;t have time to polish\nand edit it during the same day given my work and family obligations.\u003c/p\u003e","title":"How to Build an LLM Editorial Pipeline for Fiction Writing"},{"content":"This is a non-static page for describing how I am thinking about using LLMs.\nHarness When you start working with language models to generate code, you want whatever is produced to work. This requires some additional harnesses that both guide the agent and also give the agent a way to verify what it is doing. The tools that were helpful for humans are mostly useful for agents as well. They may require a bit of editing and changing of format to be more useful for an agent than a human.\nBelow are some general properties of a harness that are helpful.\nEntrypoint to each session Providing context is the key activity in prompting agents to generate code, but extensive and detailed specification does not have to be manually injected on each interaction. It is important to keep sessions scoped to a reasonable amount of change and providing too much context is something to be avoided. The important context can be fetched via skills or provided in important files that the agent will naturally interact with while performing its work. This way you don\u0026rsquo;t have to start a session with extensive copy pasting of specification right at the start, instead the specification can be set in files which then gives the agent opportunity to update all that info as it naturally changes over time.\nGoal setting A session should have a scoped goal. Additionally, a good goal is able to be expressed as a paragraph. If more information is needed at the start of the session, consider instead adjusting the harness to already have that required information. The better you equip the harness to solve the problem, the easier it should be for an agent to solve it. This also helps one to avoid throwing in a huge problem description directly into the agent before thinking about how you think the problem should be solved.\n","permalink":"https://jsphwrkshp.com/techniques/llm-productivity/","summary":"\u003cp\u003eThis is a non-static page for describing how I am thinking about using LLMs.\u003c/p\u003e\n\u003ch1 id=\"harness\"\u003eHarness\u003c/h1\u003e\n\u003cp\u003eWhen you start working with language models to generate code, you want whatever is produced to work. This requires\nsome additional harnesses that both guide the agent and also give the agent a way to verify what it is doing. The\ntools that were helpful for humans are mostly useful for agents as well. They may require a bit of editing and\nchanging of format to be more useful for an agent than a human.\u003c/p\u003e","title":"LLM Productivity"},{"content":"Spring is in full swing though it already feels like summer\nI wrote about setting your bluesky handle to be a domain you own. I’m trying to increase my presence on Bluesky and one of the hip things seems to be to set your handle according to a domain that you own. I’ve been a user of Porkbun for a while so I got the domain jsph.online which currently redirects to my personal GitHub page. I think the online TLD is cool.\nNo new users since last month on wishlist palace but I haven\u0026rsquo;t been trying to advertise it. I wrote about how creating accounts creates friction to using the app and how I built sharable URLs to allow guests without accounts to claim items.\nLLMs are pretty good at coding. Although the project was not particularly complex, I had Claude rewrite the freewriting TUI application I am working on from Haskell to Rust. The app is now called cassette and I hope to add some new features in the coming weeks.\n\u0026lsquo;Till next time\nGames I started playing Mina the Hollower at the end of the month when it came out. I really enjoy the aesthetics of Game Boy Era art (though it is more inspired by GB than actually the same). Looking forward to seeing how the rest of the game goes.\n- Joseph\n","permalink":"https://jsphwrkshp.com/log/2026-05/","summary":"\u003cp\u003eSpring is in full swing though it already feels like summer\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eI wrote about \u003ca href=\"https://jsphwrkshp.com/posts/how-to-set-your-bluesky-handle-to-a-porkbun-domain/\"\u003esetting your bluesky handle\u003c/a\u003e to be a domain you own. I’m trying to increase my presence on Bluesky and one of the hip things seems to be to set your handle according to a domain that you own. I’ve been a user of \u003ca href=\"https://porkbun.com/\"\u003ePorkbun\u003c/a\u003e for a while so I got the domain \u003ca href=\"https://jsph.online\"\u003ejsph.online\u003c/a\u003e which currently redirects to my personal GitHub page. I think the \u003ccode\u003eonline\u003c/code\u003e TLD is cool.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eNo new users since last month on wishlist palace but I haven\u0026rsquo;t been trying to advertise it. I wrote about how creating accounts creates friction to using the app and how I built \u003ca href=\"https://jsphwrkshp.com/posts/ideas-about-how-to-get-people-to-use-a-free-wishlist-app/\"\u003esharable URLs to allow guests without accounts to claim items\u003c/a\u003e.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eLLMs are pretty good at coding. Although the project was not particularly complex, I had Claude rewrite the freewriting TUI application I am working on from Haskell to Rust. The app is now called \u003ca href=\"https://github.com/joedaws/cassette\"\u003ecassette\u003c/a\u003e and I hope to add some new features in the coming weeks.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e","title":"May 2026"},{"content":"Free app? no users? I like it\u0026rsquo;s pretty well documented around the internet bubble I live in that it\u0026rsquo;s difficult to get new users for an app if you don\u0026rsquo;t have an established audience. This is true even when you give it away for free and perhaps freeness works against user acquisition also.\nOne way I think you can get more users of any software is to better refine the problem that it solves. This is an iterative activity and I wanted to share a new feature I\u0026rsquo;ve added to wishlist palace that I think improves the user experience and is more realistic about users who will actually make an account on that site.\nNo Account? No Problem — Guests Can Now Claim Items on Any Shared List Wish lists (for birthdays or holidays) are meant to be shared but I often faced some friction in coordinating with family about who should get what. It\u0026rsquo;s an incredible privilege to have this problem. However, up until now, to share lists with people on wishlist palace you had to make an account AND EVERYONE YOU WANTED TO SHARE IT WITH also had to make an account. People hate making accounts though. So this was a source of friction.\nNow people creating lists still need accounts but there is an option to create a link that you can share with anyone. Anyone visiting the link can then claim items on the list. Because there is no need for accounts to claim items you need to protect the generated url a little but don\u0026rsquo;t worry too much because you can regenerate it if someone you don\u0026rsquo;t want gets it (more details below).\nSharing lists via URL to people without accounts will hopefully be useful for:\nGifting occasions (birthdays, baby showers, weddings) where the recipient shares a list with extended family Households where not everyone wants yet another account (who can blame them?) One-off sharing with people who shouldn\u0026rsquo;t need permanent access How It Works For the List Owner Open any of your lists and go to the sharing settings Click \u0026ldquo;Generate Guest Link\u0026rdquo; to create a unique URL for your list Copy the link and send it however you like — text, email, group chat, or write it down on paper You can also rotate the link (invalidates the old one and creates a new one) or revoke it entirely if you no longer want guest access.\nFor the Guest Open the link — no login required Browse the list and find something you\u0026rsquo;d like to get Click \u0026ldquo;Claim\u0026rdquo; next to the item Enter your name so others know it\u0026rsquo;s taken That\u0026rsquo;s it — the item shows as claimed for everyone viewing the list The claim is coordinated in real time, so if two people open the link at the same time, only one can claim any given item.\nFor the List Owner (Managing Claims) If a guest claim needs to be cleared the list owner can release it directly from their list view. The item goes back to available and the guest\u0026rsquo;s name is removed.\nPrivacy and Access Guest links give view and claim access only — guests can\u0026rsquo;t edit, delete, or add items The link is a long random token, not guessable by brute force (but we all know that security-through-obscurity is not perfect, I don\u0026rsquo;t condone putting sensitive info in lists anyway!) Revoking the link immediately cuts off access for anyone who had it Guest claimant names are only visible to the list owner and other list members with accounts A happy path for this feature Consider this:\nYou\u0026rsquo;re planning a birthday party. You build a wish list, generate a guest link, and drop it in the family group chat. A grandparent opens the link on their phone, sees the list, and claims the book set she wanted to get. No download or account required! They just enter \u0026ldquo;Memaw/Pawpaw\u0026rdquo; and done. When you check your list, you see the item is claimed and by whom.\nThat\u0026rsquo;s the experience I think will be helpful anyway.\n","permalink":"https://jsphwrkshp.com/posts/ideas-about-how-to-get-people-to-use-a-free-wishlist-app/","summary":"\u003ch1 id=\"free-app-no-users\"\u003eFree app? no users?\u003c/h1\u003e\n\u003cp\u003eI like it\u0026rsquo;s pretty well documented around the internet bubble I live in that it\u0026rsquo;s difficult to get new\nusers for an app if you don\u0026rsquo;t have an established audience. This is true even when you give it away for\nfree and perhaps freeness works against user acquisition also.\u003c/p\u003e\n\u003cp\u003eOne way I think you can get more users of any software is to better refine the problem that it solves. This\nis an iterative activity and I wanted to share a new feature I\u0026rsquo;ve added to\n\u003ca href=\"https://wishlistpalace.com\"\u003ewishlist palace\u003c/a\u003e that I think improves the user experience and is more realistic\nabout users who will actually make an account on that site.\u003c/p\u003e","title":"Ideas About How to Get People to Use a Free Wishlist App"},{"content":"Why bother with a custom handle Bluesky lets you set your handle to a domain you own, so instead of @yourname.bsky.social you get something like @yourdomain.com itself. It\u0026rsquo;s a nice way to tie your social presence to something you already control or just to feel like you are satisfying your childhood notions of L33t or just because your own domain is really cool. For me I just wanted to seem cooler to people on Bluesky but maybe this is not something that will actually accomplish that goal.\nHow Bluesky verifies domain ownership Bluesky uses the AT Protocol under the hood. Every account has a DID (decentralized identifier) — something like did:plc:abc123xyz. To prove you own a domain, you just need to make that DID discoverable from the domain. There are two ways to do that: a DNS TXT record or a hosted file. The DNS route is simpler and doesn\u0026rsquo;t require any server setup, so that\u0026rsquo;s what I went with.\nFind your DID First you need your DID. In the Bluesky app go to Settings → Change my handle. Click \u0026ldquo;I have my own domain\u0026rdquo; and Bluesky will show you your DID right there — it starts with did:plc:. Copy it (by the way do you often consider saftey of the information you put in your clipboard, I\u0026rsquo;ve been thinking more about this recently and want a general way to set a timer on the contents of clipboard please let me know).\nAdd the DNS TXT record in Porkbun I assume the steps are similar for other domain registrars, but I have a porkbun acquired domain I plan to use so these instructions are for that situation. Log into Porkbun and open the DNS management page for your domain. Add a new TXT record with these values:\nHost: _atproto Answer: did=did:plc:youractualdihere TTL: leave it at the default (300 is fine) The host field is just _atproto — Porkbun will append the domain automatically, so the full record ends up at _atproto.yourdomain.com. The value has to start with did= exactly, then your full DID string after the equals sign. I found out through this that DNS records like this aren\u0026rsquo;t something you can curl!\nVerify in Bluesky Back in the Bluesky handle settings, type your domain into the box (e.g. yourdomain.com) and hit \u0026ldquo;Verify DNS Record\u0026rdquo;. DNS propagation can take a few minutes, so if it doesn\u0026rsquo;t verify immediately just wait a bit and try again. Once it verifies, confirm the change and your handle updates.\nUsing a subdomain instead If you don\u0026rsquo;t want the handle to be the bare domain itself, you can use a subdomain like @me.yourdomain.com. The only difference is the TXT record host changes to _atproto.me instead of _atproto. Everything else is the same.\nThat\u0026rsquo;s it It took me longer to look up the instructions than to actually do it. The Porkbun DNS UI is straightforward and Bluesky\u0026rsquo;s verify step gives you clear feedback on whether the record is being found. Now you can change your handle to a custom domain for fun and for profit (but mostly just for fun).\n","permalink":"https://jsphwrkshp.com/posts/how-to-set-your-bluesky-handle-to-a-porkbun-domain/","summary":"\u003ch2 id=\"why-bother-with-a-custom-handle\"\u003eWhy bother with a custom handle\u003c/h2\u003e\n\u003cp\u003eBluesky lets you set your handle to a domain you own, so instead of \u003ccode\u003e@yourname.bsky.social\u003c/code\u003e\nyou get something like \u003ccode\u003e@yourdomain.com\u003c/code\u003e itself. It\u0026rsquo;s a\nnice way to tie your social presence to something you already control or just to feel like\nyou are satisfying your childhood notions of L33t or just because your own domain is really\ncool. For me I just wanted to seem cooler to people on Bluesky but maybe this is not something\nthat will actually accomplish that goal.\u003c/p\u003e","title":"How to set your Bluesky handle to a Porkbun domain"},{"content":"After launching [wishlistpalace.com] at the end of last month I had some things to learn about how to secure my VPS that is running that site so I did some minimal research which I wrote up in How to Protect Your New VPS.\nI plan to do monthly dev log updates on what I learn and what has shipped and will post them in the logs section of this site. I\u0026rsquo;ll also send out an email with these updates.\nThere are now 5 users not including myself on that website. I expect that I won\u0026rsquo;t get much more usage until closer to christmas because I think the site will be most useful for christmas lists and organization of gift giving among families. But I would like to increase the number of users of that site. I found how a few things about how to get indexed on google and even saw a few search hits for this site and the wishlist palace. You can see that at SEO and LLM Discoverability for Phoenix Web Apps. The phoenix specific parts about regarding which data you want to serve to robots. I also learned about what to do to get part of the LLMs crawls so that it might even be possible for your site to come up in conversation with an LLM.\nI also wrote about what I learned for doing some CI/CD for a phoenix app with github actions. I feel for the engineering folk at github these days given the struggles with uptime and interruptions they have been facing. All and all if I ever move to another platform I\u0026rsquo;ll always measure against what is possible with github. Truth be told, I\u0026rsquo;m not planning to leave. You can see the actions that deploy the new versions of wishlist palace to the server at Github Actions for Phoenix App Deployment to Hetzner.\nGames I first heard about Panzer Dragoon when Orta came out for the xbox but never played any in the series until this month when I played panzer dragoon remake. It is a very cool on-rails shooter with art inspired by the french artist Moebius (or maybe concept art was directly made by him) The art is so good! The game play made me want to develop a new on-rails game like this.\n","permalink":"https://jsphwrkshp.com/log/2026-04/","summary":"\u003cp\u003eAfter launching [wishlistpalace.com] at the end of last month I had some things to learn about how to secure my VPS that is running that site\nso I did some minimal research which I wrote up in \u003ca href=\"/posts/how-to-protect-your-new-vps/\"\u003eHow to Protect Your New VPS\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eI plan to do monthly dev log updates on what I learn and what has shipped and will post them in the logs section of this site. I\u0026rsquo;ll also\nsend out an email with these updates.\u003c/p\u003e","title":"April 2026"},{"content":"How I set up SEO and LLM discoverability for my Phoenix app I recently shipped the discoverability layer for Wish List Palace, a free wish list app for coordinating family gift giving. This post covers everything I put in place: standard search engine SEO, structured data, and the newer llms.txt standard for getting picked up by AI tools and training crawlers. I hope people stumble upon this site. People who for whatever reason have a need for it, but I also definitely didn\u0026rsquo;t want to buy ads or try to exploit SEO. The wishlist app space is already super crowded so I don\u0026rsquo;t think any of those strategies would help much but making it easier for crawlers and LLMs to understand what the app is and what it does was the goal.\nThe stack is Phoenix LiveView, but most of this applies to any web app. Also LiveView isn\u0026rsquo;t really necessary for what follows since it\u0026rsquo;s mostly about setting up certain static assets to serve.\nStandard SEO foundations Meta and Open Graph tags Every page gets a full set of tags in \u0026lt;head\u0026gt;:\n\u0026lt;meta name=\u0026quot;description\u0026quot;\u0026gt; — the snippet shown in Google results Open Graph tags (og:title, og:description, og:type, og:url, og:image) — controls the preview card when a URL is shared on WhatsApp, iMessage, Slack, etc. Twitter Card tags — same idea for Twitter/X \u0026lt;link rel=\u0026quot;canonical\u0026quot;\u0026gt; — prevents duplicate content issues when a CDN like Cloudflare serves cached variants at different URLs In Phoenix, the root layout sets sensible defaults. Individual LiveViews can override them in mount/3 via assigns:\n{:ok, assign(socket, page_title: \u0026#34;How It Works — Wish List Palace\u0026#34;, page_description: \u0026#34;Step-by-step guide to creating lists, sharing, and claiming gifts.\u0026#34;, canonical_url: \u0026#34;https://wishlistpalace.com/how-it-works\u0026#34; )} One gotcha: og:image is commonly set to an SVG logo, but WhatsApp, Twitter/X, and iMessage silently ignore SVGs. You need a PNG or JPG (1200×630px is the recommended size) to get actual preview images in link cards.\nrobots.txt The classic way to let crawlers (who want to obey your suggestions, at least) know what\u0026rsquo;s the deal with your web app is yourdomain.com/robots.txt. The first thing to do is disallow authenticated and admin routes so crawlers don\u0026rsquo;t waste crawl budget on pages they can\u0026rsquo;t access anyway. Since wishlistpalace has users with accounts and you have to be authenticated to see your own lists, there is no need for robots to visit /lists since they are not authenticated users.\nExplicitly allow the public pages and LLM files. Basically whatever call to action stuff you have you want the robots to check out. Also I added a /how-it-works page to give an explanation of the basics. In theory this could be used by an LLM to tell a user how to use the site.\nUser-agent: * Allow: / Allow: /how-it-works Allow: /llms.txt Allow: /llms-full.txt Disallow: /home Disallow: /lists Disallow: /claimed Disallow: /admin Disallow: /auth Sitemap: https://wishlistpalace.com/sitemap.xml These days if you want traffic to your site, not only do you want search engine crawlers to pick you up but also it would be cool if LLMs suggested people use your site. That\u0026rsquo;s of course easier said than done, but it can\u0026rsquo;t hurt to get some positive impression of your site in the training sets being collected. The explicit Allow lines matter for training crawlers like Common Crawl (CCBot), which tend to be conservative. More on this below.\nsitemap.xml A static sitemap covering every public indexable page. In Phoenix this lives in priv/static/sitemap.xml and gets served by Plug.Static. I give the how-it-works page a higher priority than register/sign-in since it has real content worth ranking:\n\u0026lt;urlset xmlns=\u0026#34;http://www.sitemaps.org/schemas/sitemap/0.9\u0026#34;\u0026gt; \u0026lt;url\u0026gt; \u0026lt;loc\u0026gt;https://wishlistpalace.com/\u0026lt;/loc\u0026gt; \u0026lt;priority\u0026gt;1.0\u0026lt;/priority\u0026gt; \u0026lt;/url\u0026gt; \u0026lt;url\u0026gt; \u0026lt;loc\u0026gt;https://wishlistpalace.com/how-it-works\u0026lt;/loc\u0026gt; \u0026lt;priority\u0026gt;0.8\u0026lt;/priority\u0026gt; \u0026lt;/url\u0026gt; \u0026lt;url\u0026gt; \u0026lt;loc\u0026gt;https://wishlistpalace.com/register\u0026lt;/loc\u0026gt; \u0026lt;priority\u0026gt;0.5\u0026lt;/priority\u0026gt; \u0026lt;/url\u0026gt; \u0026lt;url\u0026gt; \u0026lt;loc\u0026gt;https://wishlistpalace.com/sign-in\u0026lt;/loc\u0026gt; \u0026lt;priority\u0026gt;0.3\u0026lt;/priority\u0026gt; \u0026lt;/url\u0026gt; \u0026lt;/urlset\u0026gt; Submit this to Google Search Console and Bing Webmaster Tools. Bing is maybe also worth it because the alternative search engines often source crawl results from Bing in some form or fashion.\nJSON-LD structured data Schema.org markup embedded in every page as a \u0026lt;script type=\u0026quot;application/ld+json\u0026quot;\u0026gt; tag tells Google explicitly what kind of thing this is. For a web app, SoftwareApplication is the right type:\n{ \u0026#34;@context\u0026#34;: \u0026#34;https://schema.org\u0026#34;, \u0026#34;@type\u0026#34;: \u0026#34;SoftwareApplication\u0026#34;, \u0026#34;name\u0026#34;: \u0026#34;Wish List Palace\u0026#34;, \u0026#34;url\u0026#34;: \u0026#34;https://wishlistpalace.com\u0026#34;, \u0026#34;applicationCategory\u0026#34;: \u0026#34;LifestyleApplication\u0026#34;, \u0026#34;operatingSystem\u0026#34;: \u0026#34;Web\u0026#34;, \u0026#34;description\u0026#34;: \u0026#34;Coordinate family gift giving without spoiling surprises. Share wish lists, claim items secretly, and avoid duplicate gifts.\u0026#34;, \u0026#34;offers\u0026#34;: { \u0026#34;@type\u0026#34;: \u0026#34;Offer\u0026#34;, \u0026#34;price\u0026#34;: \u0026#34;0\u0026#34;, \u0026#34;priceCurrency\u0026#34;: \u0026#34;USD\u0026#34; } } This can unlock app-style rich results in search. It\u0026rsquo;s also increasingly read by AI-powered search tools as a structured signal about what a site does. If you later add a review system, an aggregateRating property qualifies you for star ratings in search results.\nLLM discoverability with llms.txt The llmstxt.org standard is a convention for helping LLM-powered tools — AI chatbots, AI search engines, coding assistants — understand what a site is and how to use it. The idea is simple: serve a markdown file at /llms.txt that summarises the site and links to deeper content.\nI serve two files:\n/llms.txt — the index, following the spec format:\n# Wish List Palace \u0026gt; Wish List Palace is a free wish list app for families and friends... ## Docs - [Full guide](https://wishlistpalace.com/llms-full.txt): Complete guide covering all features ## Pages - [How it works](https://wishlistpalace.com/how-it-works): Step-by-step walkthrough - [Home](https://wishlistpalace.com/): Landing page - [Register](https://wishlistpalace.com/register): Create a free account /llms-full.txt — a comprehensive markdown guide covering every feature: creating lists, adding items (with links, priorities, and tags), sharing, and how gift claiming works privately.\nIn Phoenix, these are static files in priv/static/. The only configuration needed is adding them to the static_paths/0 allowlist so Plug.Static serves them:\ndef static_paths, do: ~w(assets fonts images favicon.ico robots.txt sitemap.xml llms.txt llms-full.txt) Search ranking strategy Here is generally how I am thinking about improving the ranking of wishlistpalace. Trying to get ranked on queries like \u0026ldquo;wishlist app\u0026rdquo; which are dominated by Amazon, MyRegistry, and Giftster is probably not worth it on my budget. These sites have years of domain authority and thousands of backlinks. Competing directly for those terms is probably worthless, even in the long run.\nInstead I kind of want to show up for the long tail of queries. These have far less competition and are better intent-matched:\n\u0026ldquo;wish list app where others can claim gifts\u0026rdquo; \u0026ldquo;how to share a christmas list without spoilers\u0026rdquo; \u0026ldquo;wish list app no duplicates\u0026rdquo; \u0026ldquo;alternative to amazon wish list\u0026rdquo; Someone searching those phrases has exactly the problem this app solves. Ranking page 1 for five specific long-tail queries beats ranking page 4 for a head term.\nI can hope to have some domain authority built through backlinks from trusted external sites over time. One-time directory listings (AlternativeTo, SaaSHub, Product Hunt) and community posts (Hacker News Show HN, relevant subreddits) are what I aim for though I\u0026rsquo;m waiting to finish some more features before engaging with those. But even a few backlinks over time can compound.\n","permalink":"https://jsphwrkshp.com/posts/seo-and-llm-discoverability-for-phoenix-web-apps/","summary":"\u003ch1 id=\"how-i-set-up-seo-and-llm-discoverability-for-my-phoenix-app\"\u003eHow I set up SEO and LLM discoverability for my Phoenix app\u003c/h1\u003e\n\u003cp\u003eI recently shipped the discoverability layer for \u003ca href=\"https://wishlistpalace.com\"\u003eWish List Palace\u003c/a\u003e,\na free wish list app for coordinating family gift giving.\nThis post covers everything I put in place: standard search engine SEO, structured data,\nand the newer \u003ccode\u003ellms.txt\u003c/code\u003e standard for getting picked up by AI tools and training crawlers.\nI hope people stumble upon this site. People who for whatever reason have a need for it, but I also\ndefinitely didn\u0026rsquo;t want to buy ads or try to exploit SEO. The wishlist app space is already super\ncrowded so I don\u0026rsquo;t think any of those strategies would help much but making it easier for crawlers\nand LLMs to understand what the app is and what it does was the goal.\u003c/p\u003e","title":"SEO and LLM Discoverability for Phoenix Web Apps"},{"content":"Recently I started hosting wishlist palace on a Hetzner CX23 VPS (that has 4 GB of ram and 2 vcpu). At work usually I package software into a container before deploying it. One of the reasons I chose Elixir and Phoenix as the tech stack for wishlist palace is that I wanted to try out mix releases which prepare binaries.\nOS and chip architecture Originally I was just going to compile on my local machine (A thinkpad T480) and upload to the server. But this didn\u0026rsquo;t work because the VPS I had provisioned was running ubuntu 24.04 LTS and my local machine is on EndevousOS (a flavor of Arch by-the-way). So rather than local build and push, I opted to get claude to build a series of github actions that would build on a worker that was running ubuntu. This had the added benefit of basically completely setting up a basic CI loop so that when a release is cut we build a new binary and deploy it on the server.\nElixir\u0026rsquo;s mix release creates a self-contained binary that bundles the Erlang VM along with the compiled application. The server needs no Elixir or Erlang installed (just a matching Linux architecture which as I said before tripped me up a bit).\nRelease Strategy The release is pushed to the server with rsync, which only transfers changed files:\nrsync -avz --delete _build/prod/rel/wish_list/ deploy@$VPS_IP:/opt/wish_list/ Process management with systemd The phoenix app runs as a systemd service so one uses systemctl to interact with processes under its control. In the future I might setup something more like a blue-green deploy but for now I just restart the service after rsync updates the binary. The github action below restarts the service to pick up the changes.\nMigrations Of course I also have a postgreSQL database running on the VPS so I need to do migrations from time to time. Migrations are run via the release\u0026rsquo;s eval command, calling a specific release command within my application code and run directly against the production database. For me that looks like\n/opt/wish_list/bin/wish_list eval \u0026#34;WishListDomain.Release.migrate()\u0026#34; CI/CD: GitHub Actions on Release Deployments are triggered by publishing a GitHub Release. I like to have some testing before deploy just to catch catastrophic failures on my part so the first step runs tests. Then if tests are green we can build, compile, deploy, migrate, and restart the service.\nJob 1 — Test Spins up a Postgres 16 service container, installs Elixir 1.19 / OTP 27, runs migrations, and executes the test suite.\nname: Deploy on: release: types: [published] jobs: test: name: Test runs-on: ubuntu-24.04 services: postgres: image: postgres:16 env: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: wish_list_test ports: - 5432:5432 options: \u0026gt;- --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 env: MIX_ENV: test DATABASE_URL: ecto://postgres:postgres@localhost/wish_list_test TOKEN_SIGNING_SECRET: test_token_signing_secret steps: - uses: actions/checkout@v4 - name: Set up Elixir uses: erlef/setup-beam@v1 with: elixir-version: \u0026#34;1.19\u0026#34; otp-version: \u0026#34;27\u0026#34; - name: Install deps run: mix deps.get - name: Compile run: mix compile --warnings-as-errors - name: Run migrations run: mix ecto.migrate --repo WishListDomain.Repo - name: Run tests run: mix test Job 2 — Build \u0026amp; Deploy (runs only after test passes) Builds the production release, opens an SSH connection to the Hetzner VPS, rsyncs the release binary, runs migrations, restarts the systemd service, and verifies it came up:\nbuild-and-deploy: name: Build \u0026amp; Deploy runs-on: ubuntu-24.04 needs: test env: MIX_ENV: prod steps: - uses: actions/checkout@v4 - name: Set up Elixir uses: erlef/setup-beam@v1 with: elixir-version: \u0026#34;1.19\u0026#34; otp-version: \u0026#34;27\u0026#34; - name: Install deps run: mix deps.get --only prod - name: Build assets run: cd apps/wish_list_web \u0026amp;\u0026amp; mix assets.deploy - name: Build release run: mix release wish_list - name: Set up SSH run: | mkdir -p ~/.ssh echo \u0026#34;${{ secrets.SSH_PRIVATE_KEY }}\u0026#34; \u0026gt; ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 ssh-keyscan -H ${{ secrets.VPS_IP }} \u0026gt;\u0026gt; ~/.ssh/known_hosts - name: Sync release to VPS run: | rsync -az --delete \\ _build/prod/rel/wish_list/ \\ deploy@${{ secrets.VPS_IP }}:/opt/wish_list/ - name: Run migrations run: | ssh deploy@${{ secrets.VPS_IP }} \\ \u0026#39;set -a \u0026amp;\u0026amp; source /etc/wish_list.env \u0026amp;\u0026amp; set +a \u0026amp;\u0026amp; /opt/wish_list/bin/wish_list eval \u0026#34;WishListDomain.Release.migrate()\u0026#34;\u0026#39; - name: Restart service run: | ssh deploy@${{ secrets.VPS_IP }} \\ \u0026#39;sudo systemctl restart wish_list\u0026#39; - name: Verify service is running run: | ssh deploy@${{ secrets.VPS_IP }} \\ \u0026#39;sudo systemctl is-active wish_list\u0026#39; Two GitHub Actions secrets are required: SSH_PRIVATE_KEY (the private key for the deploy user) and VPS_IP (the server\u0026rsquo;s IP address).\n","permalink":"https://jsphwrkshp.com/posts/github-actions-for-phoenix-app-deployment-to-hetzner/","summary":"\u003cp\u003eRecently I started hosting \u003ca href=\"https://wishlistpalace.com/\"\u003ewishlist palace\u003c/a\u003e on a Hetzner CX23 VPS\n(that has 4 GB of ram and 2 vcpu). At work usually I package software into a container\nbefore deploying it. One of the reasons I chose Elixir and Phoenix as the tech stack\nfor wishlist palace is that I wanted to try out \u003ccode\u003emix\u003c/code\u003e releases which prepare binaries.\u003c/p\u003e\n\u003ch2 id=\"os-and-chip-architecture\"\u003eOS and chip architecture\u003c/h2\u003e\n\u003cp\u003eOriginally I was just going to compile on my local machine (A thinkpad T480) and upload\nto the server. But this didn\u0026rsquo;t work because the VPS I had provisioned was running ubuntu\n24.04 LTS and my local machine is on EndevousOS (a flavor of Arch by-the-way). So rather\nthan local build and push, I opted to get claude to build a series of github actions that\nwould build on a worker that was running ubuntu. This had the added benefit of basically\ncompletely setting up a basic CI loop so that when a release is cut we build a new binary\nand deploy it on the server.\u003c/p\u003e","title":"Github Actions for Phoenix App Deployment to Hetzner"},{"content":"I was very intimitaded about using a VPS outside a VPC my web apps. I had never used a stand alone VPS without some kind of walled garden around it. At work everything is usually behind a VPC. And I have always worked with awesome security people to double check things! I don\u0026rsquo;t have to worry so much about bots or people constantly trying to exploit my service (of course we follow guidence from our excellent security colleagues). But when you turn on your new VPS it immediately can be discovered and bots will immediately try to exploit vulnerabilities.\nRecently I launched wishlistpalace.com which is running on a Hetzner VPS and I have come to find out that things are not quite a dire or dangerous as I had thought.\nSSH vulnerabilities One flavor of exploit that bots try against your VPS is to try a bunch of passwords to try to be able to ssh into your new VPS and do whatever (maybe start mining bitcoin or installing malware). Thankfully, VPS providers don\u0026rsquo;t just spin up your box with weak passwords and call it a day. In fact it\u0026rsquo;s even better than that on Hetzner. They let you explicit disable ssh password authentication so this exploit simply won\u0026rsquo;t happen to your new box.\nBut then you might ask, how do I get into my box then? With the key of course. By default the setup wizard on the Hetzner site for new VPS asks you to provide a public ssh key. You can use\nssh-keygen -t ed25519 -f ~/.ssh/name_of_key -C \u0026#34;your new hetzner box\u0026#34; to generate a public and private key pair. Then during the setup flow you upload the PUBLIC key.\nLater once your box is up you will be able to get the IP for the VPS. Shelling into your box can be made super simple by setting up your ssh config. Add an entry to ~/.ssh/config so SSH uses it automatically:\nHost someNameOfYourBox HostName \u0026lt;your-vps-ip\u0026gt; User root IdentityFile ~/.ssh/name_of_key Just replace the place holder values above of course!\nBot protection Another probably unfounded fear was that as soon as I turned on my VPS there would be a DDoS or some other overwhelm attack. That I thought this probably means I think a little too highly of myself sure there will be pokes at the new IP but probably not a DDoS right out of the gate. Never-the-less I learned about a few bot protection measures.\nCloudflare This is probably obvious to most, but if you are really worried about bots, the cloudflare is the way the go. And they have a free tier. I won\u0026rsquo;t list the full instructions on how to setup here, but there are lots of good tutorials I found on line, and Claude was helpful in getting this setup.\nI chose also to use nginx in front of my app so I needed to configure the handshake between cloudflare and nginx.\nfail2ban Something you can run on the new VPS is fail2ban which monitors login attempts and temporarily bans IPs that fail too many times. It\u0026rsquo;s kind of fun to use because after a few days you can the thousands of failed attempts to get into your machine from bots.\nThe VPS I set up is using Ubuntu 24.04 LTS and setting up fail2ban is as simple as\napt install fail2ban After about a week after I started the VPS here\u0026rsquo;s what I see when I check in on fail2ban with sudo fail2ban-client status sshd to check attacks against ssh.\nStatus for the jail: sshd |- Filter | |- Currently failed: 1 | |- Total failed: 3487 | `- Journal matches: _SYSTEMD_UNIT=sshd.service + _COMM=sshd `- Actions |- Currently banned: 0 |- Total banned: 164 `- Banned IP list: Wow! I\u0026rsquo;m so thankful bots wanted to try to shell into my VPS!\nFirewall Ubuntu has a firewall utility called ufw and is a quick way to help protect the service you want to run on the VPS. After all I wanted to host wishlist palace the application on the VPS that was the whole point. I chose Elixir\u0026rsquo;s Phoenix framework as the web service part of the app and it exposes the port 4000. But as soon as I spin it up it is possible for people to try some exploit against this port.\nBut with a firewall and using cloudflare and nginx we can really lock down direct access to the app. The desired state would ensure that the only traffic to the app has to travel through our protective layer above, i.e., cloudflare and nginx.\ngraph LR User --\u003e|\":443 HTTPS\"| Cloudflare Cloudflare --\u003e|\":443 HTTPS\"| nginx nginx --\u003e|\":4000 HTTP\"| Phoenix nginx --\u003e|\":80 HTTP redirect\"| Cloudflare To achieve this we can setup the firewall to limit to only the ports we need for this desired access pattern. With a few invocations of ufw you can lock access down. But it is important to leave the ssh port open so you can get back in.\nufw allow 22 # SSH — do this FIRST or you\u0026#39;ll lock yourself out ufw allow 80 # HTTP — needed for Certbot\u0026#39;s verification step ufw allow 443 # HTTPS — your app\u0026#39;s public port ufw enable ufw status # confirm rules are active This basically sets up an allow list then locks every other port down.\nMaybe not so scary after all That\u0026rsquo;s all I did in the first week of having my VPS and so far it hasn\u0026rsquo;t crashed so maybe I was wrong to be worried. I have no doubt there are other important security techniques I need to learn about but I wanted to share this setup.\nI think I might follow up with more details about the cloudflare nginx setup in another post.\n","permalink":"https://jsphwrkshp.com/posts/how-to-protect-your-new-vps/","summary":"\u003cp\u003eI was very intimitaded about using a VPS outside a VPC my web apps. I had never used\na stand alone VPS without some kind of walled garden around it.\nAt work everything is usually behind a VPC. And I have always worked with awesome\nsecurity people to double check things! I don\u0026rsquo;t\nhave to worry so much about bots or people constantly trying to exploit my service (of course\nwe follow guidence from our excellent security colleagues). But when you turn on your new VPS\nit immediately can be discovered and bots will immediately try to exploit vulnerabilities.\u003c/p\u003e","title":"How to Protect Your New Vps"},{"content":"I recently launched wishlist palace which is a web app to help share information with friends and family about birthday lists and christmas lists. This app is my first exploration into using Augemented coding (which is a term I prefer over vibe coding).\nWhen I first heard of vibe coding, I wasn\u0026rsquo;t particularly interested in engaging with it as a mode of production I use myself. I enjoy the problem solving aspect of software engineering and at face value much of that process falls into the lap of the LLM when doing vibe coding. And it\u0026rsquo;s not only the solution of the problem at hand that is of interest to me but directly engaging and phrasing that problem in the formalisms of programming languages scartches an itch in the same way I image poets feel when they want to express themselves in poetry. The trouble with the situation we (as tech folk) are in now is that the terms (like vibe and augmented coding) are highly overloaded and are used to described vastly different development cycles from the one shot prompt of 100 words attempting to get a polished app to the very detailed prompt to obtain the 10 line fix you requested in a few hundred words.\nAccompanying these observations are claims that LLMs are unlocking (insert large integer) times speed up in product development and claims that the landscape of software development has fundamentally shifted and there will be no jobs and we are on the cusp of fully automating the production of software for all use cases. Then there are people I respect deeply saying they will never touch LLMs and will categorically reject any code which smells as if it was touched by generative AI. Not to mention important ethical considerations that have been raised about AI use. All this conflicting information has left me with a bit of confusion.\nRather than try to parse what is globally true about LLMs and their use to generate software, I thought I\u0026rsquo;d see how I could use to solve a problem I have (and a somewhat mundane problem at that). Then with this as at least one data point I can start to see where I land in the vast spectrum of AI/LLM assessment.\nChoosing frameworks The choice of tech stack will have a big impact on what you can expect from the LLM. For wishlist palace I went with technologies I have some knowledge of and also that I like the philosophy of\nElixir mix build automation tool and functional programming Ash Framework for domain modeling and also for it\u0026rsquo;s ash_authentication library Pheonix for the web server and to use it\u0026rsquo;s LiveView for realtime updates to wish lists In theory an LLM could generate for you a bespoke programming language for your project. But just as humans often choose to leverage what has already worked because they can benefit from what other\u0026rsquo;s have developed so too there is obvious benefit of choosing what has been proven to work when doing augmented coding. Since the popularity of a framework or language is a proxy for how much training data the LLM had access to, I think it\u0026rsquo;s also important to make a choice based on systems you like to work with. For me that\u0026rsquo;s functional programming. I have learned some elixir doing some side projects but I\u0026rsquo;ve never released a web app in the language. I chose elixir because I am intereseted in the BEAM virtual machine and it\u0026rsquo;s cool features like hot code loading and it\u0026rsquo;s concurrency features. So I was a bit familiar with Elixir and have used the webframework Phoenix a bit before (but never in production) so they were reasonable candidates for the prospect of evaluating the generated output from the LLM.\nThere is a big difference between generating code in a language or framework that you have close to zero context yourself in and generating it in a context in which you have deep knowledge. In my professional work I use python primarily and work on backend systems. I feel much more confident in that scenario when evaluating LLM generated plans and code given that I just have much more experience building with. I have much less experience building front end features. I\u0026rsquo;m still a bit scared to modify css files and JS is not a strong suite of mine. So I knew I was going to have a harder time evaluating the quality of the front end components generated by an LLM. But Pheonix has HTML HEEx (HTML + Embedded Elixir) which is not such a stretch for me, I do know some HTML (certainly I don\u0026rsquo;t know all of the features of HTML though).\nStart with core data structures A strategy I think is helpful is to first build the core data structures and transformations on these data strucutres that you app will require. This way you can reason about if you have the right data strucutures before jumping into designing the user experience.\nThis strategy fits well with the philosophy of Ash Framework which is well suited to domain driven design. I like Ash because it gives you an easy way to declare what the shape of the data looks like (as attributes), the transformations that can be applied to them (as actions), and how it will be persisted (with Ash\u0026rsquo;s Repo abstraction).\nSo I built first the concepts of List and Item which are funnily enough very similar to the classic TODO list app that is usually the subject of alot of language and framework tutorials!\nFor the key actions that need to be applied to lists there are the classic CRUD ones, but also I wanted to add the notion of having a user \u0026ldquo;claim\u0026rdquo; an item. This is important for birthday and christmas lists so that who gift givers don\u0026rsquo;t get the same gift. This was the first action and attributes for these items which depart from bog standard CRUD operations on data.\nPrompt for small features The ideal time to introduce an LLM tool to develop features is after you have the core data structures and how to manipulate at least somewhat complete. The data structures and the actions you want to take on them may evolve overtime, but it\u0026rsquo;s difficult to describe both a desired feature and a proper data model in a single prompt so that\u0026rsquo;s why I like to do it in this order.\nThen in my experience it is best not to try to prompt to jump straight to the finished product you have in mind. Try to break up the jump to your vision of the web app into smaller chunks. This is of course no surprise to people who have been developing software for a while and is a best practice not because it is written in a book somewhere but because it makes each change easier to reason about for both humans and for machines.\nBut just because you want to break up the changes into discrete steps doesn\u0026rsquo;t mean they have to be tiny in terms of line count or even in terms of impact. Just conceptually smallish! For my case one of the first additional features I wanted to develop after the data foundation had been laid was to add users and the pheonix views to be able to create lists and add items.\nOn the one hand this is a big change from what I already had, I didn\u0026rsquo;t set up Phoenix yet, I didn\u0026rsquo;t have users abstraction, and I didn\u0026rsquo;t have any of the front end templates setup. But the quality of the current models is such that you can prompt in a way that leverages the frameworks you have chosen. Ash framework and Phoenix are known to work well together and Phoenix is very much ready to support the notion of users and users wanting to do CRUD actions on data. So even though there were quite of few lines that need to be written conceptually this was not a large jump and the model handled it well.\nTest as you go After you have a chunk of functionality up using classic testing practices is a good way to verify things are going well. I used a mix of unit testing and \u0026ldquo;integration\u0026rdquo; tests against a locally running db to make sure the functional behavior was correct. In addition Phoenix has excellent tooling for running the app locally so it\u0026rsquo;s easy to very user workflows from the locally running app in your own browser.\nI don\u0026rsquo;t think there is too much difference in how to test for hand written versus augmented coding techniques. The main question is how much you rely on the model to write the tests. I find that it\u0026rsquo;s best to really interrogate the model about the usefulness of the test as they tend to write alot of tests that don\u0026rsquo;t really test any meaningful behavior of the system. Fewer but more impactful tests is better than 100 tests that don\u0026rsquo;t really catch regressions or are annoying to update. Again this a classic insight from software engineering that is probably widely known.\nLearning by doing? One of the goals I had this with project was to teach myself more about the front end bits of pheonix. The classic approach to learning a new technology is to build something with it. This naturally takes you on a journey to discover how to use the thing. But with LLMs, I notice that the learning by doing is much less impactful than doing something by hand. I think this is a large trade-off. Of course I ended with a functional program much faster with LLM usage, but I don\u0026rsquo;t feel deeply knowledgable about HTML HEEx yet. I know more than I did to start with but I feel not as much as if I had done it \u0026ldquo;the old fashioned way.\u0026rdquo; So learning outcomes of building this project were not as good as other methods.\n","permalink":"https://jsphwrkshp.com/posts/how-to-use-augmented-coding-to-build-a-web-app/","summary":"\u003cp\u003eI recently launched \u003ca href=\"https://wishlistpalace.com\"\u003ewishlist palace\u003c/a\u003e which is a web app to help share\ninformation with friends and family about birthday lists and christmas lists. This app is my first\nexploration into using Augemented coding (which is a term I prefer over vibe coding).\u003c/p\u003e\n\u003cp\u003eWhen I first heard of vibe coding, I wasn\u0026rsquo;t particularly interested in engaging with it as a mode of\nproduction I use myself. I enjoy the problem solving aspect of software engineering and at face\nvalue much of that process falls into the lap of the LLM when doing vibe coding. And it\u0026rsquo;s not only the\nsolution of the problem at hand that is of interest to me but directly engaging and phrasing that problem\nin the formalisms of programming languages scartches an itch in the same way I image poets feel when they\nwant to express themselves in poetry. The trouble with\nthe situation we (as tech folk) are in now is that the terms (like vibe and augmented coding) are highly overloaded\nand are used to described vastly\ndifferent development cycles from the one shot prompt of 100 words attempting to get a polished app\nto the very detailed prompt to obtain the 10 line fix you requested in a few hundred words.\u003c/p\u003e","title":"How to Use Augmented Coding to Build a Web App"},{"content":"Content generation This is a static site generated with hugo with the PaperMod theme. I wanted an easy to use static site generator. I considered Jekyll and believe it to be a good choice for static sites. There seemed to be slightly more themes I liked with hugo so I went with that. That\u0026rsquo;s a pretty superficial choice but I also don\u0026rsquo;t plan on hacking on the site generation itself so I was agnostic to the Go versus Ruby choice.\nDomain hosting This site uses porkbun for a domain host. I chose it not least because I do enjoy porkbuns. They also listed static site hosting as a service which suited this site well.\nPorkbun link-in-bio versus static hosting By the time I wanted to host this site, I either made the choice without remembering or it is a default setting to have new sites use the \u0026ldquo;link in bio\u0026rdquo; hosting plan (which is free). But I need to pay their small fee to host a static site. I then found porkbun\u0026rsquo;s helpful FAQ, which helped me change out of link in bio mode to static hosting mode.\nGithub Integration If you don\u0026rsquo;t want to upload your files directly from your computer Porkbun offers GitHub connect to automatically publish changes to the site. But I had some confusion about how the generated site should sit in the directory structure. The integration let\u0026rsquo;s you pick a repository and a branch on that repository to watch.\nFile structure Porkbun expects I first chose main, but the integration didn\u0026rsquo;t appear to work. The issue I think is the strucuture of the files for the static site that Porkbub accepts. By default hugo exports the generated static files to a directory public. The file hierarchy roughly looks like the following after you create a new project and render the files:\n. ├── archetypes │ └── default.md ├── assets │ └── css ├── content │ └── posts ├── data ├── hugo.toml ├── i18n ├── layouts ├── public │ ├── 404.html │ ├── assets │ ├── categories │ ├── index.html │ ├── index.xml │ ├── page │ ├── posts │ ├── sitemap.xml │ └── tags ├── static └── themes └── PaperMod We can see that the public directory contains all the files and directories for the site.\nSome other static file hosting servies let you point to a directory that contains the files for the static site, but it appears that Porkbun expects that these files be at the root of the github repo and branch you point it. Rather than overwrite main to just have the contents of public we can create another branch that contains only what we need.\nSetting up a deploy branch I had Claude generate a github action to create the generated files in a different branch deploy. Something like .github/workflows/deploy.yml\nname: Deploy on: push: branches: - main jobs: build-and-deploy: runs-on: ubuntu-latest permissions: contents: write steps: - uses: actions/checkout@v4 with: submodules: true - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: hugo-version: \u0026#39;latest\u0026#39; - name: Build run: hugo --minify - name: Deploy to deploy branch uses: peaceiris/actions-gh-pages@v4 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./public publish_branch: deploy force_orphan: true Then I set the branch to watch to deploy in the porkbun UI and that did the trick. There were a few error messages but it seemed to not matter because now you are reading this and so it worked.\n","permalink":"https://jsphwrkshp.com/posts/how-to-host-static-sites-on-porkbun/","summary":"\u003ch2 id=\"content-generation\"\u003eContent generation\u003c/h2\u003e\n\u003cp\u003eThis is a static site generated with \u003ca href=\"https://gohugo.io/getting-started/quick-start/\"\u003ehugo\u003c/a\u003e with the\nPaperMod theme. I wanted an easy to use static site generator. I considered \u003ca href=\"https://jekyllrb.com/\"\u003eJekyll\u003c/a\u003e\nand believe it to be a good choice for static sites. There seemed to be slightly more themes I liked with\nhugo so I went with that. That\u0026rsquo;s a pretty superficial choice but I also don\u0026rsquo;t plan on hacking on the\nsite generation itself so I was agnostic to the Go versus Ruby choice.\u003c/p\u003e","title":"Setting up a hugo static site hosted with Porkbun"}]