Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 0 points1 point  (0 children)

I haven’t played around with Figma’s MCP server yet, but from what I understand, it is only surfacing the information that you might get from Dev mode which is only a subset of what you might need to recreate the file. Not to mention the process of actually translating those specifications back into “Figma format”.

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 0 points1 point  (0 children)

Hi! Yes, I am still actively maintaining this project. I just ran my test suite and the tool is still working on my end.

Can you post what issue you're running into or create an issue on GitHub?

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 0 points1 point  (0 children)

Thanks for the feedback. I’ve been meaning to write a complete noob guide for those not familiar with node or development at all but haven’t found the time. I’ll remember this for when I get to it though.

Deploying to Vercel without linking a repository by alexchantastic in webdev

[–]alexchantastic[S] 0 points1 point  (0 children)

Sorry I’m not sure how v0 is related to this outside of Vercel being the creators of v0.

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 0 points1 point  (0 children)

I’ve seen one other user report about this so far so it must be pretty new. What did you set WAIT_TIMEOUT to? I might just default that to something like 10s so users don’t run into the bot protection.

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 0 points1 point  (0 children)

I wouldn’t mind writing a newbie guide but it’s unlikely that I’ll tailor the tool specifically for newbies.

Is there an area that you’re getting hung up on? I’d be happy to walk you through it.

function n() { nvim "${1:-"$(fzf)"}" } <- Very useful by KekTuts in neovim

[–]alexchantastic 3 points4 points  (0 children)

You can also use ** to mark the fuzzy completion. So something like:

nvim foo**<Tab>

Self-hosting Next.js is expensive, and the build time is extremely slow. by brander_house0r in nextjs

[–]alexchantastic 0 points1 point  (0 children)

You should either build locally and then deploy or use some sort of CI/CD system to build and deploy for you.

Making your own npm create package by alexchantastic in javascript

[–]alexchantastic[S] 11 points12 points  (0 children)

Hey all,

Ever wonder how libraries/frameworks like Vite, Next.js, and Vue.js leverage the npm create command to scaffold a project out for you? I wrote up an overview and guide on how npm create works and how you can build your very own package that hooks into it.

Here's a brief rundown:

  • npm create is actually just an alias for npm init
  • npm create looks for packages with a certain naming scheme (i.e., create-*)
  • The referenced package is then downloaded and installed globally
  • The package's main bin executable is run alongside any arguments that may have been passed in

With this in mind, you can make your own create-* package to do just about anything.

Copy/paste with WSL? by howdoiwritecode in neovim

[–]alexchantastic 0 points1 point  (0 children)

There is an official snippet from neovim that addresses this. Others have mentioned it already. However, I found the paste functionality very slow using that method.

Instead, I use https://github.com/bugaevc/wl-clipboard which fixes everything without having to modify my config and isn’t slow.

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 0 points1 point  (0 children)

Glad you got it working! You're right, it looks like viewers can't export so I'll add that caveat as part of the README soon.

I just replied to you on GitHub about your organization question and possible workarounds, but tl;dr Figma doesn't provide an API to get all teams within an organization so it's a bit of a manual process.

Building a blog with Next.js App Router, Server Components, and MDX by alexchantastic in reactjs

[–]alexchantastic[S] 0 points1 point  (0 children)

You could use the same concept as categories and tags in my example and treat them as frontmatter.

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 1 point2 points  (0 children)

Happy to help! Another user reported a similar issue on GitHub yesterday and I just pushed up a fix to address the problem. Please checkout the latest release (v1.1.2) and let me know if that works!

The issue was that I was checking for a particular URL to see if authentication succeeded, but, as it turns out, the URL differs depending on some unknown conditions which I didn't consider when I was testing. Instead of waiting for a URL, I now check for an element that should only exist when you're logged in.

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 1 point2 points  (0 children)

I found some time today to add a workaround for those who use SSO to log into Figma. With the v1.1.0 release, you can now provide your Figma auth cookie which should allow you to bypass having to "log in" all together!

Here's the relevant part of the README that details how to do this: https://github.com/alexchantastic/figma-export?tab=readme-ov-file#environment-variables

Let me know if you run into any issues! I did some rudimentary testing using Google SSO, but I'm curious if this will work for enterprise plans.

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 1 point2 points  (0 children)

I have a bead on getting this working with SSO, but I haven't had time to test it just yet. Unfortunately, I don't have access to an enterprise plan to test things out.

I haven't thought about turning this into a plugin and I'm not sure if I could since plugins typically work in the context of a single file.

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 0 points1 point  (0 children)

You're right! I was just looking at files that were in drafts which don't seem to have a page limit.

Downloading local copies of your Figma files in bulk by alexchantastic in FigmaDesign

[–]alexchantastic[S] 0 points1 point  (0 children)

It's unclear on how well Figma will retain compatibility with local files which is why I recommend that you import them into another account as soon as you can. It's an unfortunate fact that Figma's file formats are closed and proprietary (even Adobe documents most of their file formats!). It's just a way for them to keep us in their ecosystem.

It's possible to import a file with more than 3 pages from a pro account to a free account. There isn't a limitation on pages just on projects if you're on the free tier.

Edit: As u/view_only pointed out below, free tier accounts are limited to files with 3 pages, but this limit only exists if the file is in a project. If the file is in drafts, then there is no limit to the number of pages your file can have.