u/chriswwweb

42 post karma · 507 comment karma · joined Nov 2015

chriswwweb

I’m sorry, just saw your comment now, yes it is on my blog, here: https://chris.lu/web_development/tutorials/js-deepseek-r1-local-rag, just be careful (as with any ai tutorial) those kind of blog posts tend to be outdated really quickly

chriswwweb

I wrote a tutorial about creating a blog using MDX and static Next.js pages (https://chris.lu/web_development/tutorials/next-js-static-first-mdx-starterkit), the advantage is that it can get hosted almost anywhere, from github pages, to a CDN, to your own dedicated server, the disadvantage is that the is no authentification, and no comment system, so depending on your requirements you might want to consider that approach

chriswwweb

To me using any CMS or even creating an admin section for a blog that should display articles with no comment section is over engineering

An alternative could be to create a fully static next.js project and use next/mdx to display MDX (markdown) documents, meaning no need for a login system and admin backend, no database connection needed

to edit the document you use vscode, the documents themself are static files in the project folder (either markdown .md or MDX .mdx files), you can use the markdown preview in vscode to make sure it looks right, after every edit you push the changes to your git repository, then you re-deploy using a CI/CD pipeline like github actions or use the fully managed service from vercel

the benefit is that as the page is static it can handle vast amounts of visits (no matter if it is hosted on vercel, an ec2 instance with cloudfront on aws or even a dedicated server you manage yourself)

this solution is great if the person publishing the content knows a little bit about authoring using vscode, if the person insists on having an online backend with a login and a wysiwyg editor, then this solution will not work

chriswwweb

Based on your feedback I added some info to the readme about where to find sources to make some tests: https://github.com/chrisweb/js-deepseek-r1-local-rag?tab=readme-ov-file#getting-started

chriswwweb

Haha, thank you very much ;)

chriswwweb

Thank you, yes sure, clone the repository, open the project in your IDE and then use the npm i command to install all the depencies, then download some documentation, as I mention in the tutorial I did some tests with docs from next.js or node.js or react (they are all markdown / MDX based documentation), put the docs into a /docs folder, then start the project using npm run dev

Hmmm I think thats it, if there is a problem let me know

chriswwweb

Haha thank you, took some time to find creative commons licensed songs that I could use in the jukebox

I'm not sure if you noticed, but on the right there is an eject icon ⏏️, if you click it the cassette will show up, it includes all the info, like song name, artist, license, link (click the artist name in the second row to open the external link to the artist website)

chriswwweb

I'm not sure I understand what you mean, there is a link in the tutorial to the github repository with the final source code, if you mean an example of this somewhere in production, no not really, this is a prototype I built for the tutorial

chriswwweb

Thank you 🙂

chriswwweb

Hello 👋, I wrote a tutorial about building a RAG pipeline that loads markdown documentation and then uses that knowledge to make the responses from the AI more accurate

It is a combination of different tools like next.js, ollama.js, langchain.js, postgresql as vector database

Full tutorial (and source code) on my blog:

https://chris.lu/web_development/tutorials/js-deepseek-r1-local-rag

Feel free to give me feedback or ask questions, either here, in the dicussions on github or on discord

chriswwweb

I wrote a tutorial about using next.js 15, react 19 and the ai SDK to build a chatbot 🤖 UI, I also used tools like ollama.js to query a deepseek-r1 model running locally 🏠 and finally build a RAG using tools like LangChain.js 🧠 to add content from my own markdown documentation to the AI prompts

It is not a deep dive into langchain but it shows the basics and it has examples of combining it with other tools written in javascript

chriswwweb

I have not enough time to check it out in depth rn, but I starred it .I had a quick look at the technology stack in the package.json and think that using next.js and socket.io as basis to create a multiplayer game on top are a great choice, at some point a bit more text in the README "about the project" would be nice ;)

chriswwweb

Hello, I built my blog https://chris.lu using the latest Next.js 14.x 🚀, while building it I also wrote a tutorial in which explain how I built it, it is now available at https://chris.lu/web_development

The pages are fully static MDX content, I used next/mdx and several rehype and remark plugins, like remark-gfm, rehype-github-alerts, remark-frontmatter, remark-table-of-contents and a bunch more

I tried to make the tutorial beginner friendly. I hope it will help other developers dig deeper into topics like, using next/image for best results, adding a CSP header, linting code but also the MDX content itself (using markdown lint), adding Metadata as well as Open Graph images and a dynamic sitemap

I also wanted to experiment with new CSS and 3D technologies like three.js, which is why I created an animated header using react-three-fiber (R3F), try it out by clicking on "press start" 😊

I plan on updating the tutorial based on feedback and also based on new releases like Next.js 15, React 19 with compiler and add more dynamic content like authentication as soon as Partial Prerendering (PPR) is stable

Feedback, suggestions, bug reports are all welcome, feel free to reply here or visit the https://github.com/chrisweb/chris.lu where you can use the discussions and issues

chriswwweb

Had the same problem in chrome

solution for now, use www.bricklink.com and NOT bricklink.com, the www. matters

this is why full links work, like https://www.bricklink.com/v2/main.page (works) but https://bricklink.com/ does NOT

chriswwweb

I had the same problem, at first I couldn't open chat at all

I however kept the game open and waited a little bit, after a while I saw several messages, something like "chat error connection", then I tried again to open it, this time I was able to open the chat and see the icon

the chats themself all had a spinning icon but I was able to click the top left icon which was enough to access the chat settings

chriswwweb

No, it empties just the local memory and immediatly repopulates it

when I did it myself, my chats immediatly had all messages again, the loading problems I had experienced for two days however were gone

chriswwweb

Always those "fucking" onions

chriswwweb

Haha me too

chriswwweb

Haha yes

chriswwweb

Google would say "Did you mean before" ;)

chriswwweb

Easy one

chriswwweb

If european he might have choose Michael Bublé instead ;)

chriswwweb

1929 + 88 = 2017 oh shit it also works for mine ;)

chriswwweb

Haha, better then the actual meme quote

chriswwweb

Stranger things is amazing, I love season 1, season 2 is ok but I prefer season 1