MCPcopy Index your code
hub / github.com/aykutkardas/svgps.app

github.com/aykutkardas/svgps.app @v1.52.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.52.0 ↗ · + Follow
206 symbols 459 edges 82 files 0 documented · 0% updated 4mo agov1.52.0 · 2023-07-07★ 3212 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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.


Become a sponsor to Core Maintainers 🥤

aykutkardas gizemnkorkmaz


Related Links

Extension points exported contracts — how you extend this code

Hardal (Interface)
(no doc)
globals.d.ts
IconSetPreviewHeaderProps (Interface)
(no doc)
src/components/IconSetPreviewHeader.tsx
IDragDropContext (Interface)
(no doc)
src/context/DragDropContext.tsx
Response (Interface)
(no doc)
src/api/collection.ts
Window (Interface)
(no doc)
globals.d.ts
ButtonProps (Interface)
(no doc)
src/components/Button.tsx
IIconsContext (Interface)
(no doc)
src/context/IconsContext.tsx
Collection (Interface)
(no doc)
src/api/collection.ts

Core symbols most depended-on inside this repo

useAuthContext
called by 10
src/context/AuthContext.tsx
sendToApp
called by 5
src/utils/iconActions.ts
convertToSVG
called by 4
src/utils/convertToSVG.ts
copyName
called by 4
src/utils/iconActions.ts
selectCollection
called by 3
src/components/IconSetPreview.tsx
scaleIcon
called by 3
src/utils/scaleIcon.ts
convertToIconSet
called by 3
src/utils/convertToIconSet.ts
useDebounce
called by 3
src/hooks/useDebounce.ts

Shape

Function 179
Interface 24
Class 2
Method 1

Languages

TypeScript100%

Modules by API surface

src/components/IconSetPreviewFooter.tsx12 symbols
src/utils/iconActions.ts11 symbols
src/components/IconPreview.tsx10 symbols
src/components/IconSetPreviewInspect.tsx8 symbols
src/components/IconSetPreviewHeader.tsx8 symbols
src/pages/store/index.tsx7 symbols
src/components/ImportDropWrapper.tsx7 symbols
src/api/collection.ts7 symbols
src/components/IconSetPreviewContextMenu.tsx6 symbols
src/pages/collection/[id].tsx5 symbols
src/context/AuthContext.tsx5 symbols
src/components/IconSetPreview.tsx5 symbols

For agents

$ claude mcp add svgps.app \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page