Skip to content
프로젝트

소개

SVGPS converts your icons into a single JSON file that is ready to use in your frontend or mobile projects.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

SVGPS

What is SVGPS?

SVGPS converts your icons into a single JSON file that is ready to use in your frontend or mobile projects.

Why do you need it?

Dealing with a large number of icon files, converting them into components or using them directly as SVGs can be frustrating. You can convert your icons into fonts, but unfortunately, it deprives us of the benefits of SVG format. That is why we found a way to store all our icons in a single JSON file and use them as SVGs!

How does it work?

Just import the icons that you want to use in your project! You can rename your icons, add new ones or remove them as you like. After creating a set of icons, SVGPS parses the data of that set and creates the single file you need. You can use that JSON file directly in your projects with the help of react-icomoon, vue-icomoon or svelte-icomoon packages.

What is Icomoon?

Icomoon is an icon management tool that allows you to convert your icon packs into many different formats. It produces a document for your packs, and SVGPS is built as an alternative to smooth the conversion process by allowing you to get a JSON file directly without feeling lost.

Supported Frameworks

Usage Example

Your Icon component and the JSON file you created are located in the same directory and combined with the help of *-icomoon packages previously mentioned.

Icon
|____ Icon.jsx
|____ selection.json
// Icon.jsx
import IcoMoon from "react-icomoon";
import iconSet from "./selection.json";

const Icon = (props) => <IcoMoon iconSet={iconSet} {...props} />;

export default Icon;

See react-icomoon or vue-icomoon for details on how to use the Icon component.


Development

Requires Node.js 22+ and pnpm (corepack enable picks up the pinned version). Copy .env.example to .env.local and fill in the Supabase keys; the store pages need them, the collection works without.

pnpm install
pnpm dev        # http://localhost:3000
Script What it does
pnpm check Lint and format with Biome, applying fixes
pnpm typecheck Generate Next.js types and run tsc
pnpm test Unit, snapshot and contract tests (Vitest)
pnpm build Production build
pnpm smoke Start the production build and check every route

The snapshot tests pin the exported selection.json format and SVG/JSX output. If a change alters them on purpose, update them with pnpm test -u in a separate, reviewed commit.


Become a sponsor to Core Maintainers 🥤

aykutkardas gizemnkorkmaz


Related Links

관련 프로젝트 살펴보기

불러오는 중…