AI 资讯
[Showoff Saturday] Built a circular habit tracker with animated Clockwork Orbit
Hey r/webdev , I recently built Cyclic Habits, a habit tracker that replaces traditional checklists with a living circular clock face where your habits appear as glowing orbit rings. This lets you see your daily momentum and balance at a glance in a more intuitive and visual way. It features an immersive Focus Mode, satisfying haptics, clean analytics, full offline support. The web app is live here: https://cyclichabits.vercel.app submitted by /u/A_J07 [link] [留言]
AI 资讯
🚨 CSS Specificity — The Hidden Reason Your UI Breaks
Most developers learn CSS specificity once. They remember: #id > .class > div Then move on. Until one day… Everything looks correct. The CSS is present. The selector is correct. The z-index looks higher. And yet the UI is broken. That’s when CSS specificity stops being a beginner topic and becomes a production debugging problem. The Production Incident That Started This Recently, I was working on a microfrontend application. Everything worked fine initially. I opened a page, launched a modal and the UI looked correct. Then I navigated to another microfrontend. Its CSS got loaded. After returning to the original microfrontend, suddenly: ❌ Modal appeared behind page content ❌ Overlay behaved incorrectly ❌ z-index looked correct but wasn't working DevTools showed my CSS rule still existed. Yet another CSS rule was winning. The culprit? CSS Specificity. 🧠 What is CSS Specificity? CSS specificity is the algorithm browsers use to decide: Which CSS rule wins when multiple rules target the same element. Browsers don't simply apply: "The last CSS rule." That's one of the biggest misconceptions. Specificity is calculated first. Only when specificity is equal does source order become important. ⚔️ Example .modal { z-index : 9999 ; } .some-library .modal { z-index : 100 ; } HTML: <div class= "some-library" > <div class= "modal" ></div> </div> Many developers expect: .modal to win because the value is larger. But CSS doesn't compare values first. It compares selectors. 🧮 How Specificity Works Specificity is usually represented as: ID - CLASS - TYPE Specificity Table Selector Specificity * 0-0-0 div 0-0-1 .modal 0-1-0 [type="text"] 0-1-0 :hover 0-1-0 #dialog 1-0-0 Inline Style Highest MDN defines specificity as the weight browsers calculate to determine which declaration gets applied when multiple selectors match the same element. Example Calculation Selector: button .primary Contains: button → 0 -0-1 .primary → 0 -1-0 Total: 0-1-1 Another selector: #header button .primary Contai
AI 资讯
Freelancers with small business clients - what's your stack?
I'm a frontend developer (react) with about 7 years experience working on design systems, component libraries, and static site generators integrated with CMS. I've been out of work for months now and am finding it really difficult to land interviews let alone job offers, and am considering going freelance with the aim of building basic websites for small businesses. I'll be targeting physio/wellness businesses, so wiring up contact us forms and integrating booking systems is about as complicated as it'll get on a technical level. The client should be able to make basic content updates like adding blog posts or updating employee profiles on a "meet the team" page. Even if I manage to get clients on retainer I want to do what's right by them, so while I'd be most at home building a site with Astro and hooking it up to Contentful, I doubt that's the most client-friendly offering. I've been playing around with WordPress but on first impressions it feels very cumbersome. So it got me thinking what other freelance developers use and feel works well for them and their clients. submitted by /u/TheCowardlyPickle [link] [留言]
开发者
stripeek: A TUI to record and inspect Stripe API traffic in real time
If you ever worked with complex Stripe integrations, this will save you hours of your life spent combing through multi-storey JSON payloads and tracing sequences of requests that Stripe libraries make. Works with any backend, no changes to application code needed. Webhook support is on the way! submitted by /u/progapandist [link] [留言]
开发者
Updated imagor 1.9.1 benchmark results for dynamic image processing
I’ve been improving imagor’s handling of streamed image sources and its libvips image loading path, and updated the benchmark page with current releases. If you work on image delivery, dynamic resizing, or URL-based image processing in web stacks, the updated benchmark summary is here: Benchmark page: https://docs.imagor.net/benchmarks imagor repo: https://github.com/cshum/imagor These results use released versions of imagor, imgproxy, and thumbor. The benchmark page includes summary charts, and the benchmark repo includes committed result summaries for anyone who wants to inspect the setup more closely. Happy to discuss the implementation changes, benchmark setup, or what additional scenarios would be useful to measure. submitted by /u/cshum [link] [留言]
开发者
I Finally Finished Schedio: Turning a 5-Day Hackathon MVP Into a Live Product
Created a Google Chrome extension that instantly turns any highlighted text on a webpage into a Google Calendar event
开发者
[Showoff Saturday] Sharing my Drake Equation interactive exploration: 3D galaxy, real-time sliders, vanilla JS
Just wanted to share this Drake Equation exploration I've been working on. You tweak the parameters and it updates the civilization count instantly, with a 3D Milky Way you can explore, charts, NASA exoplanet data, and bilingual EN/ES. Built with vanilla JS + Three.js, no frameworks. https://mendiak.github.io/drake.equation/ submitted by /u/mendiak_81 [link] [留言]
AI 资讯
Chrono Shift: Time Weaver - A Time-Bending Platformer Built with AI
What I Built I'm thrilled to present Chrono Shift: Time Weaver – a time-bending puzzle platformer that challenges players to manipulate time itself to overcome obstacles and solve environmental puzzles. The Concept Imagine being able to see two versions of the same level simultaneously – the past and the present. In Chrono Shift, you don't just play through a level once; you play through it twice, switching between timelines to create pathways that wouldn't exist in either timeline alone. A bridge that collapsed in the present might be intact in the past. A door that's locked now might be open in the past. By strategically shifting between eras, you create a path forward that exists only through your mastery of time. What Makes It Special Dual-Timeline Mechanics : Switch between past and present with the press of a button, watching as the world transforms around you 10 Unique Levels : Each level introduces new mechanics and challenges, gradually building your time-weaving skills Pixel Art Beauty : Vibrant, hand-crafted pixel art with parallax scrolling backgrounds that bring each era to life Collectible Time Crystals : Find hidden crystals in each level to unlock challenges and achievements Responsive Controls : Smooth platforming with jump, dash, and time-shift abilities that feel tight and satisfying Ambient Soundtrack : Era-reactive music that shifts with your timeline changes, immersing you deeper in the experience Mobile-Friendly : Touch controls mean you can weave time on any device The Journey This game was born from a simple question: what if platformers could teach us about perspective? By forcing players to see the same space from two different temporal viewpoints, Chrono Shift becomes more than just a game – it's a meditation on how our choices in the past shape our present, and how understanding both can unlock possibilities we never saw before. Play it here: https://lovable.dev/projects/bcaa0de3-f14c-4bad-9616-405c896d19bc Video Demo While there's no vi
AI 资讯
Day 26 - HashiCorp Vault & Secrets Management
Modern applications depend on secrets. Every application requires: Database Passwords API Keys SSH Keys TLS Certificates Cloud Credentials OAuth Tokens Service Account Keys The biggest question is: Where should we store them securely? Unfortunately many organizations still store secrets in: Git Repository Docker Image Application Config Files Environment Variables Shared Documents Excel Sheets This creates a massive security risk. This is why Secret Management platforms like HashiCorp Vault became critical in modern cloud-native environments. 🔗 Resources ** Support the Journey on GitHub: If you're following along, consider starring and forking the repo:** https://github.com/17J/30-Days-Cloud-DevSecOps-Journey What is a Secret? A secret is any sensitive piece of information used to authenticate or authorize access. Examples: Database Password AWS Access Key JWT Signing Key API Token TLS Certificate Private Key OAuth Secret If a secret gets exposed: Attacker ↓ Application Access ↓ Database Access ↓ Infrastructure Compromise What is Secrets Management? Secrets Management is the process of: Store Protect Rotate Control Audit sensitive credentials securely. A modern secrets management platform provides: Centralized storage Encryption Access control Secret rotation Audit logs Dynamic credentials Why Secrets Management Matters Imagine this scenario: database : username : admin password : Password123 committed into GitHub. Result: Developer Pushes Code ↓ GitHub Repository ↓ Credential Leak ↓ Database Breach This happens more often than people realize. The Problem with Traditional Secret Storage Many teams use: .env Files Kubernetes Secrets Configuration Files Hardcoded Passwords Problems: Difficult rotation No audit trail Poor access control Risk of accidental exposure Compliance failures What is HashiCorp Vault? HashiCorp Vault is a centralized secrets management platform designed to securely store, access, and manage secrets. Think of Vault as: Central Secret Bank for you
AI 资讯
I built a free SQL practice game where you work at a fictional Singapore bank
I've been frustrated with SQL learning resources for a while. Most are either: Dry reference docs Toy exercises with no context ("SELECT * FROM employees") Paid platforms with paywalls after level 3 So I built SQLwak — a free, browser-based SQL game where you're hired as a Graduate Analyst at Lion City Bank , a fictional Singapore bank. How it works Instead of abstract exercises, every challenge is a real business request from a colleague: "The Operations team needs all Central region branches for an upcoming audit." "Risk wants customers with credit scores below 600 who have active loans." "Finance needs vessels ranked by cargo revenue — use window functions." You write actual SQL against a realistic 9-table banking database and get immediate feedback. 57 levels across 4 tiers Tier Skills 🟢 Foundational SELECT, WHERE, ORDER BY, LIMIT 🟡 Intermediate JOINs, GROUP BY, HAVING, subqueries 🔴 Advanced CTEs, multi-table aggregations ⚫ Expert Window functions (RANK/DENSE_RANK OVER PARTITION BY), UNION ALL, compound CTEs The database schema Lion City Bank has two divisions: Retail Banking: customers, accounts, transactions, loans, branches, products Maritime Trade Finance (Advanced/Expert levels): vessels, cargo_shipments, trade_finance_facilities — covering voyages between Singapore, Port Klang, Bangkok, Jakarta, and Ho Chi Minh City. The maritime division exists because Singapore is a major trade hub. It makes the Expert levels genuinely interesting — you're ranking vessels by cargo revenue and analyzing trade finance utilisation rates, not just counting rows. Technical details Next.js 15 + TypeScript + Tailwind CSS SQLite via WebAssembly — all query execution is client-side, no backend needed Deployed on Vercel Fully open source: github.com/martinl5/sqlwak No signup. No download. Just SQL. Open the link and start writing queries: sqlwak.vercel.app Would love feedback on difficulty progression, new level ideas, or schema additions. What SQL concepts do you wish you'd pract
开发者
Optimized for large numbers of vertices. Nearly 400 commits milestone.🚩
submitted by /u/Sengchor [link] [留言]
开发者
[Showoff Saturday] Website where you can browse DJ sets by city on a map
Been DJing for years and always wanted a way to explore what people are playing in specific cities. Couldn't find anything like that, so I had a crack at it. Click a country, pick a city, and browse DJ sets recorded there. Uses Mixcloud sets and you can browse and play them in browser. https://setatlas.app Happy to hear any feedback or suggestions. submitted by /u/Leather_Catch2136 [link] [留言]
开发者
Finding a article about new algorithm on web rendering
Sorry to bother you guys, I just cannot remember or find about an article which about a developer find a new way to make thing faster on frontend (html or something) rendering about serveral months or last year. Anyone remember it? Please tell me. Thank you. submitted by /u/Full_Environment_205 [link] [留言]
AI 资讯
I made a website that let's you edit any supported image on the internet for free
I've been building an image editor that basically lets you edit images, on the fly. Just paste the URL, and you can start editing the image pretty much instantly. Essentially removing the need to download, upload etc. It's very convenient for those who want to quickly make edits. Completely free to use, no login or signup required to use. You can see it here: canvix.me I officially got approved for by google for my official chrome extension, which allows you to right-click any supported image on the internet (png jpg webp etc), Edit image with Canvix option. Right away, you can start editing the image. You can see how it works by screenshot posted on the chrome extension page https://chromewebstore.google.com/detail/edit-image-with-canvix/akjooicgafjjcnpjdfnaajkipciedbco I especially made this for users who constantly need to edit images like me. This in beta testing still, any feedback would be greatly appreciated to improve it. submitted by /u/Filerax_com [link] [留言]
AI 资讯
Building letterbookd
i deleted my earlier post because yeah, it sounded too ai/slop. fair criticism tbh. english is not my first language, so i used ai/translation to explain the project better, but it made the whole thing sound fake and too polished. my bad. so i’ll try to explain it myself this time. so, pardon the wording... i like tracking what i read. i like ratings, reviews, shelves, seeing what other people are reading, making lists, all that stuff. but goodreads always feels weird for me to use. not because the idea is bad, actually the idea is great, but the app/site feels old, messy and not really social enough for something that supposed to be about taste. so i started building my own book tracking app. it’s called Cilt (NOT CLIT!!!!!!!!) for now: https://cilt.app/ the basic idea is kind of “letterboxd for books”, but i know that sentence is overused as hell. what i mean is, i want logging books to feel simple and a bit fun, and after some time your profile should feel like an archive of your reading taste, not just random database list. right now / planned features are: - log the books you read -rate and review them -make shelves like reading, want to read, favorites etc. -create public lists -follow other readers -see what people with similar taste are reading -discover books from reviews/lists, not only generic ratings -track reading goals and stats -search books by title, author, isbn, publisher -have a profile that feels more personal i know there are already apps for this. i’m not saying i invented the wheel or anything. my problem is most alternatives either feels too old, too plain, or they don’t really have the social/taste part that makes letterboxd or even steam fun. also fyi: i didn’t use vibe coding for the whole project. i used it mostly on the frontend side, and when i use it i prefer to say it openly. it’s still very early, so feedback would be really useful. especially from people who still use goodreads even they hate it, or people who tried storygraph/fable
AI 资讯
Astro + Cloudflare Pages: 3 Deploy Bugs You'll Probably Hit
I've been building a static Astro site on Cloudflare Pages over the last few weeks. Sharing the 3 deployment bugs that cost me the most time, in case they save anyone else the same loop. Setup Astro 5 + Cloudflare Pages + Tailwind 4. Content lives in a few JSON files; each page is a dynamic route mapped over the data. Free-tier hosting, no backend. Standard static-first stack. Bug 1: Trailing-slash 307 chain I started with trailingSlash: 'never' in Astro config. Build output went to dist/foo/index.html . Result: Astro emitted canonical tags as /foo (no slash), but Cloudflare Pages served /foo/ (auto-adding the slash via 307). Google Search Console flagged pages as "Redirect error" because the canonical URL pointed at a redirect chain instead of a real 200. I first tried build.format: 'file' to get flat dist/foo.html output, hoping that would bypass the trailing slash. That made it worse — Cloudflare still 307-stripped, but now to a non-existent .html file → 404. Fix: stop fighting the platform. js // astro.config.mjs export default defineConfig({ trailingSlash: 'always', // ... }); trailingSlash: 'always' plus default directory build aligns the canonical URL with what Pages actually serves. The redirect errors resolved on next re-crawl. Bug 2: _redirects rejected at deploy I tried to do a www → apex 301 in public/_redirects : https://www.example.com/* https://example.com/:splat 301! Cloudflare rejected the deploy with three validation errors: Line 13: Only relative URLs are allowed. Line 22: Duplicate rule for path /foo. Line 23: Duplicate rule for path /bar. Pages tightened _redirects validation — absolute-URL sources aren't accepted anymore. The duplicate errors were because Astro's own redirects config in astro.config.mjs generates HTML meta-refresh files that Pages parses as implicit redirect rules — conflicting with my explicit ones. Fix: delete _redirects entirely. Use a Cloudflare Redirect Rule from the dashboard for cross-host 301s (Wildcard pattern,
AI 资讯
I Benchmarked Lynkr Against LiteLLM on the Same Backends.
I Benchmarked Lynkr Against LiteLLM on the Same Backends. Lynkr Was Cheaper for Tool-Heavy Workloads Founder disclosure: I built Lynkr, so take this as a technical benchmark write-up, not a neutral industry report. The numbers below come from the same backend providers on both gateways. If you're routing AI coding traffic through a gateway, just switching providers is not enough. The real savings come from reducing the tokens that ever reach the model in the first place. I ran Lynkr and LiteLLM against the same backends — Ollama locally, Moonshot, and Azure OpenAI — across 9 scenarios. On the scenarios that actually look like agentic coding work, Lynkr was cheaper because it does three things before forwarding the request upstream: smart tool selection, TOON compression, and semantic caching. The short version Lynkr was measurably better on the cost-sensitive parts of the workload: Smart tool selection: 53% fewer input tokens, 52% lower cost TOON JSON compression: 87.6% fewer billed tokens on a large tool result, 50% lower cost Semantic cache: 171ms cache-hit response vs 3,282ms on the repeat query path Tier routing: escalated hard prompts to stronger models instead of blindly sending everything to the cheapest route Area Lynkr result Why it mattered Tool selection 53% fewer tokens Removes irrelevant tool schemas TOON compression 87.6% fewer tokens Shrinks large JSON tool outputs Semantic cache 171ms cache hit Avoids repeat model calls Tier routing Escalates hard prompts Doesn’t over-optimize for cheapest path This matters if you're running Claude Code, Codex, Cursor, or similar agent workflows where tools, file reads, grep output, and repeated context dominate your token bill. Setup Same benchmark inputs, same providers, same request shape. Machine: macOS on Apple Silicon Lynkr: v9.3.2 on Node 20 LiteLLM: v1.87.1 on Python 3.12 Backends used: Ollama local, Moonshot, Azure OpenAI Scenarios: 9 total across simple prompts, tools, history, cache, and routing Each scena
AI 资讯
Launching a Website on AWS in 2026: The Complete Guide for All Skill Levels
Launching a fast, secure, and scalable website no longer requires thousands in upfront server costs or dedicated DevOps teams. As of 2026, AWS powers 32% of the global public cloud market, offering flexible hosting options for every use case: from a 1-page personal portfolio to a high-traffic enterprise e-commerce platform. Whether you’re a beginner building your first site or a senior developer launching a production SaaS app, AWS lets you pay only for resources you use, with built-in tools for global performance, security, and automated deployments. This guide breaks down every AWS website hosting option, walks you through step-by-step setup for the most cost-effective popular stack, shares security best practices, and includes a transparent cost breakdown to help you avoid unexpected bills. Table of Contents How to Choose the Right AWS Website Hosting Option for Your Use Case Step-by-Step Guide: Launch a Static Website on AWS (S3 + CloudFront + Route 53) Deploy Modern Web Apps Faster with AWS Amplify Hosting Dynamic Website Hosting Options on AWS Critical Security Best Practices for AWS-Hosted Websites AWS Website Hosting Cost Breakdown (2026) Common Mistakes to Avoid When Launching a Website on AWS Conclusion References How to Choose the Right AWS Website Hosting Option for Your Use Case First, classify your website to pick the most cost-effective, low-overhead stack: Static vs Dynamic Websites Static websites : Made of pre-built HTML, CSS, JS, and media files with no server-side processing. Ideal for portfolios, landing pages, blogs, documentation, and marketing sites. Dynamic websites : Process user input, serve personalized content, or connect to databases. Ideal for WordPress, e-commerce, SaaS apps, social platforms, and membership sites. Quick Use Case Mapping Website Type Recommended AWS Stack Small static site / portfolio S3 + CloudFront + Route 53 Modern React/Next.js/Vue app with CI/CD AWS Amplify Small WordPress / LAMP stack site Amazon Lightsail Custo
工具
Is there a tool that will easily let me show my work mocked up on a PC screen / mobile?
Having to do my portfolio for the first time In years. Back in the day I had to use Photoshop for this. Is there a tool now that people use specifically for this? I don't mind paying. Or do I need to reinstall Photoshop. submitted by /u/DatabaseMammoth9986 [link] [留言]
AI 资讯
Free DNS health checker, full audit in one query
I put together a DNS audit tool that checks NS redundancy, MX, SPF, DMARC, DKIM, DNSSEC chain, DNSBL blacklists, SSL cert and HTTP/2-3 support, all in a single query. Results are visual, no need to dig through command line output. No account needed. https://yenidns.com Feedback welcome, what would make this more useful for your workflow? submitted by /u/Acceptable_Voice500 [link] [留言]