AI 资讯
Svelte/SvelteKit Forms: The Fastest Path From ` ` to Inbox
Svelte/SvelteKit Forms: The Fastest Path From <form> to Inbox with onsubmit.dev (form backend) SvelteKit makes forms pleasant to build, but a contact form still needs somewhere to send its data. If all you want is “visitor fills out <form> → message arrives in my inbox,” building and operating another server-side handler can feel disproportionate. onsubmit.dev (form backend) provides a hosted form endpoint for that job, and its Svelte integration can keep the application code small. One naming detail is worth clearing up immediately: onsubmit.dev (form backend) is a service, while Svelte has its own on:submit event directive. They are unrelated. In this article, references to the product always mean onsubmit.dev (form backend), not Svelte's on:submit . The usual SvelteKit approach SvelteKit already has a solid answer for server-side form handling: form actions. A typical contact form can POST to a +page.server.ts action, where you validate the fields and then do something useful with them. Conceptually, that gives you: Svelte <form> ↓ SvelteKit form action ↓ validation ↓ email provider / database / notification service ↓ your inbox This is a good architecture when submitting the form kicks off application-specific business logic. For a simple portfolio, landing page, documentation site, or “contact us” form, however, you also inherit the less interesting parts of owning that pipeline: delivery integration, configuration, error handling, spam controls, and maintenance. That's where using a dedicated form backend can make sense. Using svelte-onsubmit The Svelte integration is svelte-onsubmit . Rather than reproducing package code that might drift as its API evolves, use the current installation and usage snippet from the official integration documentation: https://onsubmit.dev/integrations That documentation is the source of truth for wiring the package into your current Svelte/SvelteKit project. The resulting architecture is deliberately simpler: Svelte <form> ↓ host
科技前沿
Apple Upgrade vs. Verizon deals: which saves you the most money on an iPhone?
Verizon tempts new customers with "free" iPhone deals, but do you really save compared to Apple's own Upgrade program?
AI 资讯
Hold up, there’s a new Twitter in town
Coates said in a LinkedIn post that the company is not trying to recreate Twitter.
AI 资讯
AI’s memory crunch is coming for Android apps
Google is setting new memory-use limits for Android apps as AI data centers contribute to hardware shortages that could leave lower-cost phones with less memory.
科技前沿
Photoshop's new 'Markup' feature lets you draw on images to show what you want
Photoshop is getting new image-generation features and Lightroom-like controls that users have wanted for a long time.
AI 资讯
Is Slate Auto’s new electric truck the EV Americans need?
EVs account for under 10% of total new-vehicle sales in the US, and the numbers are declining. From a climate perspective, that’s pretty dismal, especially because the transportation sector is the single biggest source of greenhouse-gas emissions in the country. One thing that could help turn that around? Slate Auto’s new truck—a vehicle that seems…
AI 资讯
I Ran 89,479 WhatsApp Messages Through WAHA. Twilio: $604.
Last month my WhatsApp stack moved 89,479 messages. I got no invoice for any of them. That is not a brag, it is the setup for an honest accounting. Because "self-hosting is cheaper" is the least interesting sentence in infrastructure, and it is usually said by someone who has never been paged at 7am by a bot that went quiet at 2am. I want to put a real number on both sides of that trade: the money Twilio would have charged, and the money self-hosting quietly takes back. All the numbers below were pulled or fetched on August 27, 2026 . The rate cards move quarterly, so check yours. The traffic, measured rather than estimated Five WhatsApp inboxes, bridged from WAHA into a self-hosted Chatwoot. Thirty days: messages Total 89,479 Inbound (from users) 45,563 Outbound (from us) 43,916 Most benchmarks stop here, multiply by a per-message rate, and publish. That answer is wrong, because Meta does not charge per message. It charges per template sent outside an open customer service window. Multiplying my full 89,479 by a template rate overstates the Meta line by about 3x. Multiplying just the outbound half still overstates it by about 1.5x. Since November 1, 2024 non-template messages are free. Since July 1, 2025 utility templates answering a user inside an open 24-hour window are also free. So the only line that costs money is the outbound message that goes out when nobody has written to you in the last day. Which means the number you actually need is not "how many messages," it is "how many outbound messages had no inbound message from that contact in the preceding 24 hours." The query that produces the real bill Here it is against Chatwoot's schema. It uses a window function rather than a correlated NOT EXISTS , because on a messages table of any size the correlated version will happily eat your connection pool. WITH src AS ( SELECT m . conversation_id , m . created_at , m . message_type FROM messages m WHERE m . inbox_id IN ( 27 , 23 , 46 , 50 , 48 ) -- your WhatsApp in
科技前沿
Why is the Mac mini M5 Pro more expensive than the M6?
When it comes to Apple Silicon, a higher number doesn't necessarily mean a better chip.
开发者
GitHub Copilot app for Beginners: Automate Dependabot pull request triage
Managing library updates can be tedious at times. Learn how the GitHub Copilot app can handle this type of repetitive task. The post GitHub Copilot app for Beginners: Automate Dependabot pull request triage appeared first on The GitHub Blog .
AI 资讯
Google’s Gemini has a branding problem, and so does the rest of AI
Consumer AI apps need to stop making users learn their product architecture.
AI 资讯
The inside story on why OpenAI agents hacked Hugging Face
The models responsible for last month’s agent hack of Hugging Face had been inadvertently trained to cheat and to communicate with each other, according to an OpenAI technical report released today. The hack, which a group of agents undertook to find solutions for a cybersecurity test that they were stuck on, has confirmed some experts’…
产品设计
Flipboard acquires Graze, the feed builder working to monetize the open social web
Flipboard is acquiring Bluesky feed-building startup Graze, bringing its privacy-friendly ad technology and creator monetization tools into Flipboard’s growing open social web ecosystem.
AI 资讯
Apple Maps has ads now
Ads have started popping up in Apple Maps, following Apple's announcement in March that it would let businesses pay for top spots. They're appearing on my iPhone as the first entry in the "suggested places" section in search, but Apple says they'll also show up at the top of search results. According to 9to5Mac, the […]
AI 资讯
Apple is holding its iPhone launch event on September 9
The event is expected to be a notable one, as Apple is rumored to unveil its long-awaited foldable iPhone. It'll also be the first Apple event with John Ternus as CEO, who is scheduled to take the reins of the tech giant from Tim Cook on September 1.
科技前沿
Apple announces September 9 date for 'Surprise and shine' iPhone event
Is it finally time to see the foldable iPhone?
AI 资讯
Apple announces September iPhone launch event
Apple's next launch event will take place on September 9th at 1PM ET. Invites to the event, which has a "Surprise and shine" tagline, were sent out on Wednesday. The event will take place at the Steve Jobs Theater in Apple Park, but there will also be a livestream on Apple's website. September's show could […]
AI 资讯
Meta agrees to sweeping changes to restrict kids’ access to its apps as part of settlement with states
One of the most notable changes is that Meta plans to implement a daily two-hour time limit for teens that can only be disabled with parental permission.
科技前沿
Apple should make a Mac Neo to fill the void left by the more expensive Mac mini
A modest proposal for Apple to add a lower-cost option to its Mac lineup.
创业投融资
Ring introduces a new encryption standard, makes it the default for cloud features
Ring says users can still opt for end-to-end encryption.
创业投融资
Bluesky now lets you upload 10-minute long videos
Bluesky's new 10-minute video support includes faster upload speeds, too.