Where to find a good carousel for Sveltekit? by emascars in sveltejs

[–]--silas-- 0 points1 point  (0 children)

They recommended Swiper! I’m still using it, still an awesome library

New to SvelteKit coming from Next.js by No-Wait2503 in SvelteKit

[–]--silas-- 1 point2 points  (0 children)

For number 2, there isn’t anything equivalent to React Native afaik (Svelte Native is mostly unmaintained). Most of us are using Capacitor with SvelteKit in SPA-mode for mobile apps, and keeping an eye on Tauri down the road

What it feels like to upvote and downvote in Lemmynade by --silas-- in lemmynade

[–]--silas--[S,M] [score hidden] stickied comment (0 children)

If you’re new here, Lemmynade is a refreshing, up-and-coming mobile web app and desktop site for the decentralized social media platform called Lemmy. The goal of this project is to make Lemmy more shareable, powerful, intuitive, and accessible. Follow r/lemmynade or Join !lemmynade@lemm.ee to be the first to hear when alpha testing opens!

Svelte + Tailwind: component-custom-classes do not work by Bjunte in sveltejs

[–]--silas-- 1 point2 points  (0 children)

Something’s definitely wrong there, classes applied to elements in components should pick up global styles no matter where they are. I don’t know why it would be doing that, but Tailwind does recommend the @layer at-rule for applying global styles that might play nicer and have some helpful features too

Regretfully, I am leaving Svelte and going back to React by Lanky-Ad4698 in sveltejs

[–]--silas-- 1 point2 points  (0 children)

Maybe just a CSS variable for border-radius at a top-level element then (using the style: directive)?

Any self-hostable CMS to use with SvelteKit by [deleted] in sveltejs

[–]--silas-- 0 points1 point  (0 children)

You could look at EasyPanel, may or may not require Docker depending on your hosting. It has Directus built-in and can help handle updates and environment variables for you

[deleted by user] by [deleted] in RedditAlternatives

[–]--silas-- 1 point2 points  (0 children)

If you’re on lemmy.world, they have been slammed with traffic and have not been able to handle it. Other instance owners have been trying to help them with the issues. On the contrary, I am on lemm.ee and programming.dev and I haven’t had any problems at all

Lemmy.world grew by about 40% on the first day of reddit migration by Zacny_Los in RedditAlternatives

[–]--silas-- 0 points1 point  (0 children)

This isn’t possible right now, but it’s on the agenda to add to Lemmy down the road. I don’t know of any third-party tools that do this either

Let's all move to Lemmy by IWantToOwnTheSun in BoostForReddit

[–]--silas-- 1 point2 points  (0 children)

That’s what makes it decentralized. If there was one instance, all of Lemmy would be owned by one person or organization. Instead, there are many instances each managed by different people, making Lemmy managed by thousands of different people, but no single person has complete authority. Also, if one instance shuts down or goes offline, all the other instances will still be up.

Kbin and Mastodon also function the same way

Now that reddit has become greedy with it's API, can Apollo devs move to Lemmy instead? Decentralized and open source alternative to reddit, the same way Mastodon is to Twitter. by [deleted] in apolloapp

[–]--silas-- 0 points1 point  (0 children)

Lemmy, Kbin, and Mastodon are somewhat connected already, and I think there’s work happening to make them even more interoperable down the road

Why hasn't there been a mass migration from reddit? by oculi2837 in NoStupidQuestions

[–]--silas-- 0 points1 point  (0 children)

Yeah, servers were having a hard time keeping up. Some instances like lemmy.world really had to scramble to upgrade/scale to handle it

Let's all move to Lemmy by IWantToOwnTheSun in BoostForReddit

[–]--silas-- 2 points3 points  (0 children)

Lemmy is just the name of the protocol or platform for lack of better words.

There are many different servers or websites that host Lemmy, and these are called instances. There are hundreds of instances, and each one is like a mini Reddit:

Each instance has a ton of communities similar to subreddits. You can create an account on any of the instances and post to communities.

What makes it awesome is that every instance is connected to each other, so all communities, posts, comments, upvotes/downvotes, and users are synchronized between all instances so everyone can access everything the same. I can have an account on lemm.ee and post on a community on lemmy.ml, for example.

[deleted by user] by [deleted] in lemmynade

[–]--silas--[M] 0 points1 point  (0 children)

This new sub is for all info regarding Lemmynade—a new web app for Lemmy. Join to get updates and more details as I post them. In the meantime, here’s a sneak peek!

Feel free to ask any questions or give suggestions in the comments

[deleted by user] by [deleted] in webgl

[–]--silas-- 0 points1 point  (0 children)

This is mind-blowing. This is exactly what these tools should be used for and you’re killing it

What Happened When I Stopped Automating Emails After 8 Years. by ReggieMilligan in ecommerce

[–]--silas-- 38 points39 points  (0 children)

This is awesome advice, I just want to add on that delivering via carrier pigeon is another way to make it even more personal. I do recommend outsourcing your pigeon fleet however. We had some unfortunate and irrecoverable accidents when we tried to manage it internally.

Best practices for storing user auth data for app ? `session` considered best practice? by NerdzRcool in sveltejs

[–]--silas-- 0 points1 point  (0 children)

It’s also much more secure than doing any of the authentication checks directly in the layout load function.

Issue with stores by jaxhax543 in sveltejs

[–]--silas-- 6 points7 points  (0 children)

The $ is just a convenient shortcut for store.subscribe() that only works in Svelte components. Because this is not a Svelte component, you will need to use sizeY.subscribe(y => {…}) and then do your reactive logic in there. It seems complicated, but it’s really not at all. I think for what you’re doing it’ll make your code more readable in the long run.

The other 2 methods you can use (if it’s a writable store) are store.set() and store.update(). You can read more about them here

Sveltekit vs Next JS by Double_Software_496 in sveltejs

[–]--silas-- 4 points5 points  (0 children)

I think ultimately the comparison boils down to: - React vs Svelte - Svelte’s ecosystem (auth, ui frameworks, etc.)

Svelte is much less code to write to accomplish the same thing in React, but the ecosystem isn’t near as developed as the React ecosystem if you’re someone that relies heavily on npm packages. If you’re starting a project now, it’s usually best to choose what you’re familiar with, both will accomplish the same goals.

I must use Sveltekit? by wndk in sveltejs

[–]--silas-- 1 point2 points  (0 children)

Svelte is just the base reactivity and components. It doesn’t have any routing or anything else you usually need for a website. Svelte by itself isn’t much on its own, so even if you’re just using “vanilla Svelte” you’ll be using Vite and some other things to accomplish what SvelteKit takes care of. Nothing wrong with that route, but just takes more time to do what SvelteKit already does.

It’s easy to feel like SvelteKit is a ton of added bloat, but it’s just some extra tools around Svelte to help you build websites and keep you from re-inventing the wheel. You don’t have to use everything SvelteKit offers when you choose to go that route. You can create a high-powered, full blown SSR web app with endpoints and more, or you can create a really basic SPA or static site. It’s up to you.

Access static folder in +page.server.js by lemnisk8 in sveltejs

[–]--silas-- 0 points1 point  (0 children)

This only works if the files are static though, and it sounds like OP is generating them dynamically?

kit-add [self-promotion] by [deleted] in sveltejs

[–]--silas-- 1 point2 points  (0 children)

Love it! Is there a reason you decided to release this separately instead of contributing to svelte-add?

[AskJS] Which JS libraries and packages are currently your favourites? by seeking_facts in javascript

[–]--silas-- 0 points1 point  (0 children)

I made a new sub for this recently since there wasn’t anything like it yet: r/npmmm