Sketch Server

Creates a local web server for Sketch documents.

v1.6.3 is compatible with Sketch 3.0.0

forthebadge forthebadge forthebadge

Sketch Server 1.6.3

Sketch Server is plugin for Sketch that creates a local web server for your Sketch Documents.

Changelog | ------------- |

How to use it

Sketch Server adds two items to the Plugins Menu:

  • Start Server

    Starts a local server for the open document on a random available port.

  • Start Server on Port...

    Starts a local server on a port specified by you.

Each document can have its own port, so you will need to start a server for individual documents. After you've created a server instance for a given document, you can visit it using the URL Sketch Server gives you.

Previewing

By default, Sketch Server returns an HTML page containing your image, centered (when smaller than viewport). You can specify both page, artboard, scale, and what kind of content the server returns to you. For example:

 http://127.0.0.1:8888/?artboard=2&page=4&scale=2

Artboard and Page numbers are zero-based, so that will give you the 3rd artboard on page 5 of your document, scaled 2x. Omitting the page parameter will default to the current page open in that document.

If you'd like just the image (png), you can get it using the /image path:

 http://127.0.0.1:8888/image?artboard=2&page=4

There's also a retina boolean parameter, which only applies to HTML output. It will downsize your image to the size of the artboard. Useful for previewing on retina devices.


Join the discussion

Download v1.6.3
Usage Activity
400100

No Sketchpacks Relay integration found

Stats
  • 137 downloads all–time
  • 0 downloads this week
  • 0 downloads this month
About this plugin

matt-curtis published this plugin 3y ago.

v1.6.3 is the latest version.

Native updates are supported within Sketch.app.