Nik Elsnik Profile Banner
Nik Elsnik Profile
Nik Elsnik

@nikelsnik

639
Followers
167
Following
60
Media
853
Statuses

oss · prev @whopio @spacedriveapp @osirisrafflebot

Slovenia
Joined August 2018
Don't wanna be here? Send us removal request.
@nikelsnik
Nik Elsnik
14 days
My go-to method for handling forms in @nextjs * react-hook-form -> form handling 📋 * zod -> validation ✅ * shadcn/ui -> UI components 🧱 * next-safe-action -> server actions ☁️ * sonner -> success/error toast messages 🍞
Tweet media one
18
41
718
@nikelsnik
Nik Elsnik
1 month
Reduce your @shadcn <FormField /> boilerplate
Tweet media one
14
33
639
@nikelsnik
Nik Elsnik
27 days
Small reusable `search-input` component I like to use - Store query in search params with `nuqs` 🔗 - Delay the update with `use-debounce` ⏱️
Tweet media one
3
22
332
@nikelsnik
Nik Elsnik
1 month
Rate limit with ease, thanks to @upstash
Tweet media one
1
9
139
@nikelsnik
Nik Elsnik
1 month
Suggested VAT rates based on product names using Vercel AI SDK ✨ Inspired by @pontusab
3
3
47
@nikelsnik
Nik Elsnik
1 month
My go-to approach for forms in @nextjs react-hook-form + zod = useZodForm()
Tweet media one
2
1
29
@nikelsnik
Nik Elsnik
16 days
I'm really liking this @nuqs47ng abstraction for managing my searchParams * Reusable throughout the app ♻️ * Validated & type-safe ✅
Tweet media one
2
2
28
@nikelsnik
Nik Elsnik
1 month
Turn your zod union schema into select options
Tweet media one
2
2
20
@nikelsnik
Nik Elsnik
26 days
npx shadcn init sidebar-01
Tweet media one
1
1
19
@nikelsnik
Nik Elsnik
28 days
Check out next-safe-action if you're using @nextjs server actions. Here you can see: - End-to-end type safety 🔗 - Input validation using Zod ✅ - Auth middleware with @nextauthjs 🔐 - Server error handling ✋
Tweet media one
Tweet media two
Tweet media three
2
3
19
@nikelsnik
Nik Elsnik
13 days
Small enhancement to my `search-input` component using `react-hotkeys-hook`: * ⌘/Ctrl + F to focus the input and select its text * Esc to blur the input
Tweet media one
@nikelsnik
Nik Elsnik
27 days
Small reusable `search-input` component I like to use - Store query in search params with `nuqs` 🔗 - Delay the update with `use-debounce` ⏱️
Tweet media one
3
22
332
2
1
20
@nikelsnik
Nik Elsnik
25 days
Small `submit-button` component I like to use with `react-hook-form`
Tweet media one
0
0
17
@nikelsnik
Nik Elsnik
1 month
virtual-grid has reached 30 ⭐️ I built it as I found myself virtualizing grids using TanStack Virtual and wanted to simplify the process
Tweet media one
2
1
16
@nikelsnik
Nik Elsnik
17 days
Capturing nextjs app errors with @getsentry
Tweet media one
1
1
16
@nikelsnik
Nik Elsnik
18 days
gnip now uses `nuqs`
Tweet media one
1
1
13
@nikelsnik
Nik Elsnik
21 days
Introducing gnip - a free, open-source tool for creating snippets for your GitHub repositories. Heavily inspired by @raycastapp 's ray(.)so Link ⬇️
Tweet media one
1
3
11
@nikelsnik
Nik Elsnik
1 month
Tooltip is another shadcn component I like to modify
Tweet media one
1
0
11
@nikelsnik
Nik Elsnik
23 days
Next.js i18n based on the user's location using @vercel
Tweet media one
0
2
11
@nikelsnik
Nik Elsnik
1 month
Prevent your parent loading.tsx from applying to child pages by using @nextjs route groups 1. Create a new folder called (folder_name) 2. Move your loading.tsx and page.tsx files inside the folder Now, the loading.tsx file will only apply to your parent page
Tweet media one
1
2
10
@nikelsnik
Nik Elsnik
1 month
Personally, I prefer Valtio over Zustand
Tweet media one
Tweet media two
1
0
10
@nikelsnik
Nik Elsnik
12 days
Y'all are not ready for @tailwindcss v4.0
Tweet media one
1
1
10
@nikelsnik
Nik Elsnik
14 days
@nikelsnik
Nik Elsnik
1 month
My go-to approach for forms in @nextjs react-hook-form + zod = useZodForm()
Tweet media one
2
1
29
1
0
8
@nikelsnik
Nik Elsnik
2 months
🥂
Tweet media one
1
0
7
@nikelsnik
Nik Elsnik
1 month
I love using react-hotkeys-hook for creating keyboard shortcuts ⌨️
Tweet media one
0
0
7
@nikelsnik
Nik Elsnik
4 years
@magentoshit There's no way you can see the tv from that far away
1
0
7
@nikelsnik
Nik Elsnik
20 days
Open source keeps on getting better and better
@polar_sh
Polar
21 days
Dear builders, Today, we're announcing Polar v1.0. An open source alternative to Lemon Squeezy with 20%+ lower fees. Designed for builders, indie hackers and open source maintainers. You push the world forward. It's time you got paid coding on your passion.
117
206
2K
0
0
6
@nikelsnik
Nik Elsnik
2 months
GM ☀️ Make the day count
Tweet media one
1
0
5
@nikelsnik
Nik Elsnik
2 months
GM ☀️ Hope you have a productive day!
Tweet media one
2
0
5
@nikelsnik
Nik Elsnik
17 days
@pontusab @honojs @Cloudflare and then you have me using react-pdf 😄
1
0
5
@nikelsnik
Nik Elsnik
1 month
Makes for an incredible way to build type-safe forms
Tweet media one
0
0
5
@nikelsnik
Nik Elsnik
1 month
quick preview of what's possible
1
0
5
@nikelsnik
Nik Elsnik
2 months
GM ☀️☕️ Hope you have an amazing Tuesday
Tweet media one
1
0
4
@nikelsnik
Nik Elsnik
1 month
and it doesn't take much
Tweet media one
0
0
4
@nikelsnik
Nik Elsnik
21 days
1
0
4
@nikelsnik
Nik Elsnik
15 days
@marc_louvion @iwahabshaikh Check out for all sorts of rules
@pontusab
Pontus Abrahamsson — oss/acc
1 month
Introducing @cursor_ai Directory - Optimized Rules for Your Framework and Language. Go ahead and add yours now! Link ⬇️
Tweet media one
57
82
1K
0
0
4
@nikelsnik
Nik Elsnik
21 days
One of my recent favorite repositories - v1, built by @pontusab
Tweet media one
2
0
4
@nikelsnik
Nik Elsnik
4 months
Can’t catch a break
@benjaminakar
Benjamin Akar
4 months
literally cannot bring devs anywhere
Tweet media one
0
0
31
0
0
3
@nikelsnik
Nik Elsnik
2 years
@opensea go broke
0
0
3
@nikelsnik
Nik Elsnik
21 days
@pontusab Can't forget `nuqs`, built by @fortysevenfx
Tweet media one
1
0
4
@nikelsnik
Nik Elsnik
2 years
@DaoKwonDo gm books
1
1
3
@nikelsnik
Nik Elsnik
13 days
@ameerashhab97 It's amazing, one of my new favorites
0
0
3
@nikelsnik
Nik Elsnik
2 months
GM ☀️ new day, new opportunities
Tweet media one
2
0
3
@nikelsnik
Nik Elsnik
2 years
@JA50Neth gm Jason have a beautiful weekend 🫡
1
0
3
@nikelsnik
Nik Elsnik
2 months
Evening hike 🥾 Need to work on the pace 😅
Tweet media one
Tweet media two
1
0
3
@nikelsnik
Nik Elsnik
2 years
@MrMimiEth Gm mimi
1
0
2
@nikelsnik
Nik Elsnik
14 days
@Mahmut_Jomaa @sujjeeee @nextjs In my case <fieldset disabled={formState.isSubmitting}> handles that
0
0
3
@nikelsnik
Nik Elsnik
25 days
0
0
3
@nikelsnik
Nik Elsnik
8 months
@zeddotdev extensions soon? 👀
0
0
3
@nikelsnik
Nik Elsnik
2 years
@Awhbit gm kylah
1
0
1
@nikelsnik
Nik Elsnik
2 years
@DiscoverXnft Some people just need to feed their ego
0
0
3
@nikelsnik
Nik Elsnik
5 months
@trunarla that view 😮
0
0
3
@nikelsnik
Nik Elsnik
2 years
@DaoKwonDo gm Books
0
1
3
@nikelsnik
Nik Elsnik
4 years
@jamiepine We as in Tim 😁
1
0
3
@nikelsnik
Nik Elsnik
2 years
@PuffYatty gm puff
0
0
3
@nikelsnik
Nik Elsnik
2 months
GM ☕️ Have a wonderful Saturday!
Tweet media one
1
0
3
@nikelsnik
Nik Elsnik
25 days
@pontusab @middayai another successful weekend in the books
1
0
3
@nikelsnik
Nik Elsnik
29 days
@pontusab Y’all killed it with this one
1
0
3
@nikelsnik
Nik Elsnik
2 years
@Striker5962 gm striker
1
0
1
@nikelsnik
Nik Elsnik
4 years
@jamiepine new vlog 😲 I really enjoyed the last one
0
0
2
@nikelsnik
Nik Elsnik
1 month
@pontusab congrats!
1
0
2
@nikelsnik
Nik Elsnik
2 years
1
0
2
@nikelsnik
Nik Elsnik
2 years
@NFTHawks gm Hawks 🫡
1
0
2
@nikelsnik
Nik Elsnik
2 years
@PuffYatty Can't be me
1
0
2
@nikelsnik
Nik Elsnik
2 years
@JA50Neth gm jason 🫡
1
0
2
@nikelsnik
Nik Elsnik
4 years
@Delmo_dev build your own dreams not someone else's
0
0
2
@nikelsnik
Nik Elsnik
2 years
@JA50Neth Congrats 🎉
1
0
2
@nikelsnik
Nik Elsnik
5 years
@iNcizzle @blastbots i don't regret it
0
0
2
@nikelsnik
Nik Elsnik
2 years
@getblaised Perfect combination
1
0
2
@nikelsnik
Nik Elsnik
2 years
@DaoKwonDo gm books
1
0
2
@nikelsnik
Nik Elsnik
2 years
@trunarla I see you're taking custom kbs to another level
0
0
2
@nikelsnik
Nik Elsnik
2 months
0
0
2
@nikelsnik
Nik Elsnik
3 years
0
0
2
@nikelsnik
Nik Elsnik
2 years
@PuffYatty gm puff
0
0
2
@nikelsnik
Nik Elsnik
2 years
0
0
2
@nikelsnik
Nik Elsnik
14 days
@geoff_l @nextjs no formik indeed :)
0
0
2
@nikelsnik
Nik Elsnik
2 years
@PuffYatty GM Puff. I'm not ready yet, can you delay it for a bit more?
0
0
2
@nikelsnik
Nik Elsnik
2 months
@benjaminakar gm fam 🫰
1
0
2
@nikelsnik
Nik Elsnik
14 days
@sujjeeee @nextjs <fieldset disabled={...}> and <SubmitButton />
@nikelsnik
Nik Elsnik
25 days
Small `submit-button` component I like to use with `react-hook-form`
Tweet media one
0
0
17
1
0
2
@nikelsnik
Nik Elsnik
1 month
@pontusab @nextjs I wouldn't consider controlled inputs to be the "best way"
1
0
2
@nikelsnik
Nik Elsnik
1 month
1
0
2
@nikelsnik
Nik Elsnik
2 years
@floorpapi gm Papi
0
0
2
@nikelsnik
Nik Elsnik
1 month
@pontusab I'm adding this to my package.json. Why did no one mention this package earlier?
1
0
2
@nikelsnik
Nik Elsnik
2 years
@PuffYatty Puff with quality tweets
2
0
2
@nikelsnik
Nik Elsnik
2 years
@DaoKwonDo Gm books
0
1
2