-
Notifications
You must be signed in to change notification settings - Fork 47
Code Link Docs & Folder UX #553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+87
−46
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b38dc34
Update readme
huntercaron 5b4a0c1
Add logging for folder info
huntercaron 95e0721
Polish
huntercaron 559b36d
Publish
huntercaron 89b5ee4
Do not shorten directory to dir in names
huntercaron e7e9622
Rename variable
huntercaron 93c3164
Fix log for running in cwd
huntercaron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,30 @@ | ||
| # Framer Code Link | ||
|
|
||
| Plugin that syncs code files between Framer and your local filesystem via the Code Link CLI. | ||
| Two-way sync between Framer code components and your local filesystem. | ||
|
|
||
| **By:** @huntercaron | ||
| **By:** [@huntercaron](https://github.com/huntercaron) | ||
|
|
||
|  | ||
| <img src="../../assets/code-link.png" width="600" alt="Code Link"> | ||
|
|
||
| ## Usage | ||
| ## Features | ||
|
|
||
| 1. Open the Plugin in Framer | ||
| 2. Copy the CLI command shown in the Plugin | ||
| 3. Run the command in your terminal to start syncing | ||
| - **Instant two-way sync** — Edits in locally instantly appear in Framer, and vice-versa | ||
| - **Automatic types** — TypeScript types for `framer`, `framer-motion`, `react` are automatically installed | ||
| - **Smart conflict resolution** — Auto-resolves when safe, prompts you to choose when both sides change | ||
| - **Zero config** — Creates config files on first run; re-run with just `npx framer-code-link` | ||
| - **AI skill** — Installs Framer component best-practices skill for Cursor, Claude, etc | ||
|
|
||
| ## Quick Start | ||
|
|
||
| 1. Open the **Code Link** Plugin in your Framer project | ||
| 2. Copy the CLI command from the Plugin, eg. `npx framer-code-link (hash)` | ||
| 3. Paste and run the command in your terminal | ||
| 4. Edit files in `{project}/files/` — changes sync to Framer | ||
|
|
||
| ## CLI Options | ||
|
|
||
| | Flag | Description | | ||
| | --- | --- | | ||
| | `-n, --name <name>` | Project name for the created directory | | ||
| | `-d, --dir <directory>` | Target project directory | | ||
| | `-v, --verbose` | Enable debug logging | | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.