<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: 天下围</title>
    <description>The latest articles on DEV Community by 天下围 (@_6d423a7ceb19e0f5370c8).</description>
    <link>https://dev.to/_6d423a7ceb19e0f5370c8</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4283959%2F6431e06f-8944-491f-9ee9-c0bb476d33ee.png</url>
      <title>DEV Community: 天下围</title>
      <link>https://dev.to/_6d423a7ceb19e0f5370c8</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_6d423a7ceb19e0f5370c8"/>
    <language>en</language>
    <item>
      <title>How I Built an AI Writing Studio for Long-Form Fiction with Next.js</title>
      <dc:creator>天下围</dc:creator>
      <pubDate>Sun, 06 Dec 2026 01:45:25 +0000</pubDate>
      <link>https://dev.to/_6d423a7ceb19e0f5370c8/how-i-built-an-ai-writing-studio-for-long-form-fiction-with-nextjs-7j5</link>
      <guid>https://dev.to/_6d423a7ceb19e0f5370c8/how-i-built-an-ai-writing-studio-for-long-form-fiction-with-nextjs-7j5</guid>
      <description>&lt;p&gt;Writing a short paragraph with AI is easy.&lt;/p&gt;

&lt;p&gt;Writing an entire book is a different problem.&lt;/p&gt;

&lt;p&gt;When I started building StoryForge AI, I quickly realized that the hardest part was not generating text. The harder parts were keeping chapters organized, continuing from the right point, revising earlier drafts, and exporting the final manuscript into a usable format.&lt;/p&gt;

&lt;p&gt;That led me to build StoryForge AI, an AI writing workspace for novelists, web fiction writers, and independent authors.&lt;/p&gt;

&lt;p&gt;You can try it here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.yourdomain.shop/" rel="noopener noreferrer"&gt;https://www.yourdomain.shop/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The problem with using a chat window for book writing&lt;br&gt;
A chat interface works well for brainstorming or generating a few paragraphs. It becomes less convenient when the project grows.&lt;/p&gt;

&lt;p&gt;A long-form writing project usually includes:&lt;/p&gt;

&lt;p&gt;A story concept&lt;br&gt;
An outline&lt;br&gt;
Characters&lt;br&gt;
Multiple chapters&lt;br&gt;
Revisions&lt;br&gt;
Different drafts&lt;br&gt;
Notes and plot points&lt;br&gt;
A final export format&lt;br&gt;
When all of this stays inside a single chat thread, it becomes difficult to find older content or continue the story consistently.&lt;/p&gt;

&lt;p&gt;A writer may remember that an important event happened several chapters earlier, but the AI may not have enough context to use it correctly. Copying the entire manuscript into every request is also impractical.&lt;/p&gt;

&lt;p&gt;I wanted to build something closer to a writing workspace than a chatbot.&lt;/p&gt;

&lt;p&gt;The workflow&lt;br&gt;
StoryForge AI is organized around a simple writing process:&lt;/p&gt;

&lt;p&gt;Idea → Outline → Chapters → Revision → Manuscript → Export&lt;br&gt;
The goal is not to automate every creative decision. The goal is to make the repetitive parts of long-form writing easier to manage.&lt;/p&gt;

&lt;p&gt;A writer can start with an idea, create an outline, generate chapters, revise selected sections, and export the completed manuscript.&lt;/p&gt;

&lt;p&gt;Features I focused on first&lt;br&gt;
Chapter generation&lt;br&gt;
A writer can provide a story setup, chapter requirements, characters, tone, and other instructions. The system then generates a draft chapter that can be reviewed and edited.&lt;/p&gt;

&lt;p&gt;The result is treated as a draft, not a final answer. The author still decides what should remain in the manuscript.&lt;/p&gt;

&lt;p&gt;Continuing from an existing chapter&lt;br&gt;
Long-running projects often stop in the middle of the process. The writing workflow needs to support returning to a book later.&lt;/p&gt;

&lt;p&gt;StoryForge AI stores the work as a collection of stories and chapters, which makes it possible to continue from the latest completed section instead of starting over.&lt;/p&gt;

&lt;p&gt;Rewriting and editing&lt;br&gt;
The writing process is not only about generating new text.&lt;/p&gt;

&lt;p&gt;A section may need to be:&lt;/p&gt;

&lt;p&gt;Rewritten in a different style&lt;br&gt;
Expanded with more detail&lt;br&gt;
Condensed&lt;br&gt;
Polished&lt;br&gt;
Given a different title&lt;br&gt;
Adjusted to include a planned plot point&lt;br&gt;
These operations are handled separately so that the writer can revise a selected part without regenerating the entire book.&lt;/p&gt;

&lt;p&gt;Book generation&lt;br&gt;
For users who already have an outline, StoryForge AI can help move through the outline chapter by chapter.&lt;/p&gt;

&lt;p&gt;Long-running generation needs to account for interruptions. If a process stops, it should be possible to continue from the last completed chapter rather than losing all progress.&lt;/p&gt;

&lt;p&gt;Organization&lt;br&gt;
A writing tool needs more than a text generation button.&lt;/p&gt;

&lt;p&gt;StoryForge AI includes areas for managing:&lt;/p&gt;

&lt;p&gt;Works&lt;br&gt;
Chapters&lt;br&gt;
Tags&lt;br&gt;
Covers&lt;br&gt;
Drafts&lt;br&gt;
Favorites&lt;br&gt;
Reading views&lt;br&gt;
This structure becomes more important as the number of projects grows.&lt;/p&gt;

&lt;p&gt;Export&lt;br&gt;
A manuscript is usually used outside the application.&lt;/p&gt;

&lt;p&gt;StoryForge AI supports exporting content to:&lt;/p&gt;

&lt;p&gt;TXT&lt;br&gt;
Word&lt;br&gt;
PDF&lt;br&gt;
EPUB&lt;br&gt;
Different formats serve different purposes. TXT is useful for simple text processing, Word is convenient for editing, PDF is suitable for review and sharing, and EPUB is useful for ebook workflows.&lt;/p&gt;

&lt;p&gt;The technical stack&lt;br&gt;
The application is built with:&lt;/p&gt;

&lt;p&gt;Next.js&lt;br&gt;
React&lt;br&gt;
TypeScript&lt;br&gt;
Supabase&lt;br&gt;
Clerk&lt;br&gt;
DeepSeek through an OpenAI-compatible API&lt;br&gt;
Tailwind CSS&lt;br&gt;
PDFKit&lt;br&gt;
JSZip&lt;br&gt;
Vitest&lt;br&gt;
Next.js provides the application structure and server-side API routes. React handles the writing workspace and interactive editor views.&lt;/p&gt;

&lt;p&gt;Clerk manages authentication, while Supabase stores the application data. The AI layer uses DeepSeek through an OpenAI-compatible interface, which keeps the integration relatively straightforward.&lt;/p&gt;

&lt;p&gt;The application does not expose API keys to the browser. AI requests are handled through server-side routes, where authentication and usage checks can be applied before a request is sent to the model provider.&lt;/p&gt;

&lt;p&gt;Handling long-running generation&lt;br&gt;
Generating a single chapter is relatively simple. Generating a complete book requires more careful state management.&lt;/p&gt;

&lt;p&gt;A book-generation workflow needs to know:&lt;/p&gt;

&lt;p&gt;Which book is being generated&lt;br&gt;
Which chapter should be processed next&lt;br&gt;
Which chapters have already been completed&lt;br&gt;
Whether the current request failed&lt;br&gt;
Whether the user wants to continue later&lt;br&gt;
How to avoid creating duplicate chapters&lt;br&gt;
Instead of treating the process as one large request, the application can process the book in smaller steps.&lt;/p&gt;

&lt;p&gt;A simplified version looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Load the book outline&lt;/li&gt;
&lt;li&gt;Find the next unfinished chapter&lt;/li&gt;
&lt;li&gt;Generate the chapter&lt;/li&gt;
&lt;li&gt;Save the result&lt;/li&gt;
&lt;li&gt;Mark the chapter as complete&lt;/li&gt;
&lt;li&gt;Continue with the next chapter
This approach makes recovery easier. If a request fails, the application can retry the unfinished step rather than restarting the whole book.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Keeping the author in control&lt;br&gt;
AI-generated writing still requires human review.&lt;/p&gt;

&lt;p&gt;A model can help with a draft, but it may introduce problems such as:&lt;/p&gt;

&lt;p&gt;Repeated descriptions&lt;br&gt;
Inconsistent character behavior&lt;br&gt;
Abrupt changes in tone&lt;br&gt;
Missing details from the outline&lt;br&gt;
Unwanted plot developments&lt;br&gt;
Repetitive sentence structures&lt;br&gt;
For that reason, StoryForge AI is designed as an assistant rather than an automatic publishing system.&lt;/p&gt;

&lt;p&gt;The author controls the outline, reviews the generated text, edits the manuscript, and decides when a chapter is ready.&lt;/p&gt;

&lt;p&gt;The application is meant to reduce repetitive work while keeping the creative decisions with the writer.&lt;/p&gt;

&lt;p&gt;What I learned while building it&lt;br&gt;
The biggest lesson was that an AI writing product is not only an AI integration.&lt;/p&gt;

&lt;p&gt;The model is one part of the system. The surrounding workflow matters just as much.&lt;/p&gt;

&lt;p&gt;A useful writing tool also needs:&lt;/p&gt;

&lt;p&gt;Clear project structure&lt;br&gt;
Reliable saving&lt;br&gt;
Recovery after interruptions&lt;br&gt;
Draft organization&lt;br&gt;
Authentication&lt;br&gt;
Usage limits&lt;br&gt;
Export tools&lt;br&gt;
A readable editing experience&lt;br&gt;
A generated paragraph may look impressive in isolation, but a writing product has to remain useful after the first generation request.&lt;/p&gt;

&lt;p&gt;That means thinking about what happens five minutes later, the next day, and after the project reaches fifty chapters.&lt;/p&gt;

&lt;p&gt;What comes next&lt;br&gt;
There are still many areas to improve.&lt;/p&gt;

&lt;p&gt;Some ideas I am considering include:&lt;/p&gt;

&lt;p&gt;Better character and world-building notes&lt;br&gt;
More consistent context across chapters&lt;br&gt;
Improved revision controls&lt;br&gt;
More export customization&lt;br&gt;
Better manuscript formatting&lt;br&gt;
Writing statistics&lt;br&gt;
More granular project settings&lt;br&gt;
Additional language support&lt;br&gt;
The main challenge is finding the right balance between automation and control. More automation can save time, but too much automation can make the author feel disconnected from the story.&lt;/p&gt;

&lt;p&gt;Try StoryForge AI&lt;br&gt;
StoryForge AI is available here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.yourdomain.shop/" rel="noopener noreferrer"&gt;https://www.yourdomain.shop/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is built for writers who want help with drafting, continuing, revising, organizing, and exporting long-form fiction.&lt;/p&gt;

&lt;p&gt;If you work on novels, web fiction, or self-publishing projects, I would be interested in hearing how you currently manage your writing workflow and which part takes the most time.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>nextjs</category>
      <category>saas</category>
      <category>writing</category>
    </item>
    <item>
      <title>How I Built a Marketplace Listing Generator with Next.js and DeepSeek</title>
      <dc:creator>天下围</dc:creator>
      <pubDate>Sat, 05 Dec 2026 05:15:29 +0000</pubDate>
      <link>https://dev.to/_6d423a7ceb19e0f5370c8/how-i-built-a-marketplace-listing-generator-with-nextjs-and-deepseek-4n8a</link>
      <guid>https://dev.to/_6d423a7ceb19e0f5370c8/how-i-built-a-marketplace-listing-generator-with-nextjs-and-deepseek-4n8a</guid>
      <description>&lt;h1&gt;
  
  
  How I Built a Marketplace Listing Generator with Next.js and DeepSeek
&lt;/h1&gt;

&lt;p&gt;Writing one product listing is easy enough.&lt;/p&gt;

&lt;p&gt;Writing the same listing for Amazon, Shopify, and Etsy is a different problem. Each marketplace expects a different structure, and the same product information often needs to be rewritten several times.&lt;/p&gt;

&lt;p&gt;That repetitive work was the reason I started building ListingForge.&lt;/p&gt;

&lt;p&gt;It is an AI-assisted tool that turns basic product information into draft titles, bullet points, descriptions, and keywords for different ecommerce platforms.&lt;/p&gt;

&lt;p&gt;This article explains the technical choices behind the project and some of the problems I encountered.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;A seller usually starts with a collection of raw information:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product name&lt;/li&gt;
&lt;li&gt;Main features&lt;/li&gt;
&lt;li&gt;Materials&lt;/li&gt;
&lt;li&gt;Dimensions&lt;/li&gt;
&lt;li&gt;Target customer&lt;/li&gt;
&lt;li&gt;Use cases&lt;/li&gt;
&lt;li&gt;Brand tone&lt;/li&gt;
&lt;li&gt;Shipping or packaging details&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That information is rarely ready to publish.&lt;/p&gt;

&lt;p&gt;For example, an Amazon listing may need a concise title and structured bullet points. A Shopify product page usually needs a more readable description. An Etsy listing may need a different title style and a stronger focus on materials, occasion, or personalization.&lt;/p&gt;

&lt;p&gt;The product facts stay mostly the same. The format and writing style change.&lt;/p&gt;

&lt;p&gt;I wanted to build a workflow where a seller could enter the information once and generate several usable drafts from it.&lt;/p&gt;

&lt;p&gt;The output is still a draft. The seller remains responsible for checking product claims, compliance, measurements, and marketplace rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I chose Next.js
&lt;/h2&gt;

&lt;p&gt;I used Next.js because the project needed both an interactive frontend and server-side API routes.&lt;/p&gt;

&lt;p&gt;The frontend handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Product information forms&lt;/li&gt;
&lt;li&gt;Marketplace selection&lt;/li&gt;
&lt;li&gt;Generated content&lt;/li&gt;
&lt;li&gt;Copy and editing actions&lt;/li&gt;
&lt;li&gt;Loading and error states&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The server handles:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AI requests&lt;/li&gt;
&lt;li&gt;Environment variables&lt;/li&gt;
&lt;li&gt;Authentication-related logic&lt;/li&gt;
&lt;li&gt;Usage checks&lt;/li&gt;
&lt;li&gt;Health checks&lt;/li&gt;
&lt;li&gt;Payment and webhook integrations&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Keeping the application and API routes in one project made the first version faster to build. I did not need to maintain a separate frontend and backend deployment while I was still testing the product idea.&lt;/p&gt;

&lt;p&gt;The application is deployed on Vercel, with the production site available at:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://listingforge.vip" rel="noopener noreferrer"&gt;https://listingforge.vip&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Using an OpenAI-compatible API
&lt;/h2&gt;

&lt;p&gt;The application uses an OpenAI-compatible SDK interface, but the underlying provider is DeepSeek.&lt;/p&gt;

&lt;p&gt;That distinction is worth mentioning because an SDK name does not always tell you which model provider is handling the request.&lt;/p&gt;

&lt;p&gt;The relevant configuration looks like this:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
env
AI_PROVIDER=openai
AI_MODEL=deepseek-v4-flash
OPENAI_BASE_URL=https://api.deepseek.com
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>deepseek</category>
      <category>nextjs</category>
      <category>sideprojects</category>
    </item>
  </channel>
</rss>
