GitHub

jsrepo.json

Configuration for your project.

jsrepo.json holds the configuration for your project.

You can create a jsrepo.json by running the init command with the --project flag:

npx jsrepo init --project

$schema

$schema is tracked with the cli so you can use a specific version using unpkg:

{ "$schema": "https://unpkg.com/jsrepo@1.27.0/schemas/project-config.json" }

repos

repos allows you to specify different registries to install blocks from. All of the blocks from each registry will be listed when you run add.

{ "repos": [ "gitlab/ieedan/std", "github/ieedan/shadcn-phone-input-svelte" ] }

paths

Where to add specific categories in your project.

{ "paths": { // "*" is required as a fallback location if a category isn't mapped "*": "./src/blocks", "components": "$lib/components", "hooks": "$lib/hooks" } }

includeTests

Whether or not to include test files when installing blocks.

{ "includeTests": false }

watermark

Whether or not to add a watermark to installed blocks.

{ "watermark": true }

When true adds a watermark with the jsrepo version repository it was added from and the date it was added on.

/* jsrepo 1.27.0 Installed from github/ieedan/std 1-18-2025 */ export type Point = { x: number; y: number; };

formatter

The formatter to use when writing files in your project.

{ "formatter": "prettier" / "biome" / undefined }

jsrepo can format your files following your local config before adding them to your repository. Currently the only supported formatters are Prettier and Biome.