Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
459457a
✨ Initial commit with Sveltekit + format files
pheralb Aug 21, 2025
d326670
🎨 Improve eslint config structure
pheralb Aug 21, 2025
1abc7ee
🛠️ Fixed eslint errors
pheralb Aug 21, 2025
e49dae5
🛠️ Add prettier & eslint commands
pheralb Aug 21, 2025
0ef7c50
✨ Add initial shadcn configuration files and utilities
pheralb Aug 21, 2025
42d938a
🛠️ Add custom ts alias
pheralb Aug 21, 2025
257639c
🛠️ Fix import styles
pheralb Aug 21, 2025
e671ae8
📦 Add shadcn/ui dependencies
pheralb Aug 21, 2025
1eff7b8
🎨 Add new fonts
pheralb Aug 21, 2025
5d2ec85
⚙️ Add utility types for component props handling
pheralb Aug 21, 2025
c34d3bf
📦 Add bits-ui, @internationalized/date, @lucide/svelte & tailwind-var…
pheralb Aug 21, 2025
5d3a51b
🎨 Add input UI component
pheralb Aug 21, 2025
313a34c
🎨 Add button UI component
pheralb Aug 21, 2025
809d763
🎨 Add dialog UI component
pheralb Aug 21, 2025
e4641f0
🎨 Add tabs UI component
pheralb Aug 21, 2025
f53d541
🎨 Add popover UI component
pheralb Aug 21, 2025
6761716
⚙️ Create clipboard, download, downloadSvg & parse svg utilities
pheralb Aug 25, 2025
fdd100b
⚙️ Update ESLint rules, add @typescript-eslint/no-unused-vars
pheralb Aug 25, 2025
4317115
📦 Add fuse.js, jszip, mode-watcher & svgo dependencies
pheralb Aug 25, 2025
e1178a2
🎨 Add metatags + support for light/dark mode
pheralb Aug 25, 2025
502fab1
🎉 Initial homepage + layout
pheralb Aug 25, 2025
5a41f79
📦 Add boxes, heart, house & send moving icons
pheralb Aug 25, 2025
d563478
📦 Add angular, astro, github, react, svelte, svgl, twitter, vue & web…
pheralb Aug 25, 2025
110657a
🔧 Refactor getAstroCode function to use destructured parameters for i…
pheralb Aug 25, 2025
d78acff
🎨 Add sonner UI component
pheralb Aug 25, 2025
60fca6b
🎨 Add badge UI component
pheralb Aug 25, 2025
9038d92
🎨 Initial sidebar UI component
pheralb Aug 25, 2025
96ce627
🎨 Add radial button variant with custom styles
pheralb Aug 25, 2025
56d65c0
🎨 Add separator UI component
pheralb Aug 25, 2025
0da0ccf
🎨 Add new UI components: Container, Grid, Header, ModeToggle, Search,…
pheralb Aug 25, 2025
9c970c0
⚙️ Fix type assertion for svgsData to ensure correct typing as iSVG[]
pheralb Aug 25, 2025
cf39183
🛠️ Create custom globals config file with app data
pheralb Aug 25, 2025
da19647
✨ Create favorite store with localstorage
pheralb Aug 26, 2025
78cccd2
🛠️ Create custom utilityusing Fuse.js for efficient SVG title searching
pheralb Aug 27, 2025
1a3efea
🚀 Create directory page + fix page components + improve header & side…
pheralb Aug 27, 2025
ea5a0b9
🧹 Clean favorites utility logs
pheralb Aug 27, 2025
d7500fe
⚙️ Add ``apiGithubUrl`` property
pheralb Aug 27, 2025
1e414f9
🛠️ Fixed apollo SVG path
pheralb Aug 27, 2025
f3a179e
🛠️ Add shadcnCommand property
pheralb Aug 27, 2025
6c49a2b
📦 Add shadcn, swc & tsx dependencies + build:registry command
pheralb Aug 27, 2025
06040d1
🛠️ Create custom generate-registry script to convert SVGs to TSX + ge…
pheralb Aug 27, 2025
d008538
🧹 Delete tsconfig comments
pheralb Aug 27, 2025
879f8eb
✨ Create custom utility to parse SVG code with SWC
pheralb Aug 27, 2025
146e8fd
🛠️ Implement SVG optimization utility and update getSource function t…
pheralb Aug 27, 2025
c50181f
🛠️ Refactor SVG optimization and parsing in generate-registry script,…
pheralb Aug 27, 2025
43b6173
🛠️ Add build scripts for shadcn and production
pheralb Aug 27, 2025
b85cc58
🛠️ Update svgs/svgr API endpoint to use custom parseReact utility wit…
pheralb Aug 27, 2025
1ce0568
♻️ Organize SVGs components, create svgs folder
pheralb Aug 28, 2025
1fa52cc
🛠️ Fix class name in DialogPrimitive.Title component for consistency
pheralb Aug 28, 2025
33b8d1c
✨ Add ViewTransitions component to layout for improve navigation
pheralb Aug 28, 2025
2409996
🛠️ Create shiki utility with highlighter & rehype options
pheralb Aug 28, 2025
6ef7b23
📦 Add shiki & content-collections dependencies
pheralb Aug 28, 2025
a1d2b14
🙈 Add ``.content-collections`` to gitignore
pheralb Aug 28, 2025
914ee82
🎨 Add Shiki light/dark mode styles and line number formatting
pheralb Aug 28, 2025
62a6ddd
🛠️ Initial content-collections config + /docs/* route
pheralb Aug 28, 2025
09291b9
🛠️ Refactor sidebar link activation, enhance PageCard and PageHeader …
pheralb Aug 28, 2025
6ac5318
🎨 Add shadcn SVG component
pheralb Aug 28, 2025
c1f1b12
🎨 Improve download button styles and add brand assets link in SVG card
pheralb Aug 28, 2025
eb22a7c
📦 Add npm & npm-wordmark SVG logos
pheralb Aug 29, 2025
69215ee
🛠️ Add bun, npm, pnpm & yarn svelte components
pheralb Aug 29, 2025
47bcca1
🎨 Add select UI component
pheralb Aug 29, 2025
acabd32
⚙️ Refactor SVG filename parsing and replace toComponentName function
pheralb Aug 29, 2025
3e282c2
✨ Initial shadcn/ui integration + improve copySvg component + move ad…
pheralb Aug 29, 2025
b808f4f
🎨 Update popover content styling for improved responsiveness
pheralb Aug 29, 2025
595adb7
⚙️ Create pkgManager store for managing package manager selection
pheralb Aug 29, 2025
9d1a9c5
🎨 Update outline button variant to remove shadow for a cleaner appear…
pheralb Aug 29, 2025
9a9d044
⚙️ Upgrade pnpm version to 10 in workflows and standardize working di…
pheralb Aug 29, 2025
191b195
📄 Initial API docs without svelte components (working)
pheralb Aug 29, 2025
9651440
🛠️ Merge branch 'main' of github.com:pheralb/svgl into dev
pheralb Aug 29, 2025
e2c2ca9
📦 Add @sveltejs/adapter-node dependency + config
pheralb Aug 29, 2025
1844f6b
🛠️ Improve logging format for parseSvgFilename utility
pheralb Aug 29, 2025
dd503d4
📦 Delete unused dependencies
pheralb Aug 29, 2025
dc54f91
🛠️ Refactor parseReactSvgContent to improve SVG handling and formatting
pheralb Aug 29, 2025
de110ef
📦 Update packageManager field in package.json to specify pnpm version
pheralb Aug 29, 2025
2f3ef58
🛠️ Remove version specification for pnpm setup in workflows
pheralb Aug 30, 2025
85e6bb3
🛠️ Update pnpm setup to version 10 in deploy API workflow
pheralb Aug 30, 2025
26b8f0a
🛠️ Create custom svgl version component
pheralb Aug 30, 2025
73bd5a4
🛠️ Create codeBlock UI component + setup shadcn/ui registry
pheralb Aug 31, 2025
d06c870
🛠️ Improve svgCard component to support theme-based image rendering
pheralb Aug 31, 2025
68e399d
🎨 Design improvements
pheralb Aug 31, 2025
411ad69
🛠️ Add nixpacks configuration for PNPM setup and build process
pheralb Aug 31, 2025
a488bd4
🛠️ Update workflows to use Eslint for linting and set ``PUBLIC_SVGL_V…
pheralb Aug 31, 2025
5df7a33
🛠️ Fixed eslint errors
pheralb Aug 31, 2025
d2e4183
🛠️ Refactor ESLint rules for Svelte components to improve linting acc…
pheralb Aug 31, 2025
d947f7f
🛠️ Remove nixpacks config file
pheralb Aug 31, 2025
2927e42
🛠️ Trying nixpacks config for Node & PNPM setup
pheralb Aug 31, 2025
374fb8f
🛠️ Trying nixpacks config for Node & PNPM setup
pheralb Aug 31, 2025
2c3fdf7
🐋 Initial Dockerfile config with .dockerignore
pheralb Aug 31, 2025
733e136
🛠️ Update registry command & logs
pheralb Aug 31, 2025
4cd2c84
🛠️ Refactor parseSvgFilename function for improved component name for…
pheralb Aug 31, 2025
5519976
🛠️ Improve parseSvgFilename to support firstUpperCase option for comp…
pheralb Aug 31, 2025
2692c7d
🛠️ Rename type tCategory to Category for consistency in type definitions
pheralb Sep 1, 2025
bc34bdc
🛠️ Update PageCard component to include container and content card cl…
pheralb Sep 1, 2025
e6d441e
🛠️ Refactor load function in +page.ts to use getSvgsByCategory for im…
pheralb Sep 1, 2025
2a38b83
🛠️ Refactor search handling in search.svelte and +page.svelte; implem…
pheralb Sep 1, 2025
1591ea3
🛠️ Refactor svgCard and index files; streamline image handling and im…
pheralb Sep 1, 2025
77356d3
🛠️ Refactor SVG filtering logic in load function; ensure base data is…
pheralb Sep 1, 2025
803e130
🛠️ Refactor header component; streamline button classes and improve l…
pheralb Sep 1, 2025
ec6db6d
🛠️ Refactor search functions in searchWithFuse.ts; rename searchWithF…
pheralb Sep 4, 2025
1aadeb5
🛠️ Update extensions data; add new extensions for various frameworks …
pheralb Sep 4, 2025
8e27a80
🛠️ Remove unnecessary tracking-tight class from body element for impr…
pheralb Sep 4, 2025
74e42b0
🎨 Refactor grid and header components; improve props handling and lay…
pheralb Sep 4, 2025
26f23f7
✨ Add extension page, create extension component for displaying items…
pheralb Sep 4, 2025
aa87b89
🛠️ Update radial button variant styles for improved dark mode support
pheralb Sep 4, 2025
6ffc890
🛠️ Adjust height in sidebar and pageCard components
pheralb Sep 4, 2025
3255888
🛠️ Delete unused displaySvgs state, simplify updateDisplaySvgs utility
pheralb Sep 4, 2025
1832eac
⚙️ Add getParamValue() function to get searchParam value
pheralb Sep 4, 2025
e465cd7
🛠️ Merge branch 'main' of github.com:pheralb/svgl into dev
pheralb Sep 5, 2025
3a11cd3
⚙️ Update dialog title to reflect multiple SVG download options
pheralb Sep 5, 2025
d3e9260
📦 Add Sheet UI component
pheralb Sep 5, 2025
bc831be
🎨 Initial responsive design + add sidebar menu to header component
pheralb Sep 5, 2025
04ffbe9
✨ Refactor setup registry component and update documentation for shad…
pheralb Sep 5, 2025
9825fc2
📦 Add SVGL for Framer extension with description and creator details
pheralb Sep 5, 2025
fff7624
⚙️ Improve mode toggle functionality with keyboard shortcut support (…
pheralb Sep 5, 2025
ea4b598
✨ Update Shiki configuration to include JSON and HTML languages
pheralb Sep 5, 2025
edb9ece
⚙️ Upgrade to eslint.config.ts + add typescript-eslint for typesafety…
pheralb Sep 6, 2025
074e923
⚙️ Merge branch 'main' of github.com:pheralb/svgl into dev
pheralb Sep 7, 2025
6f7d3c5
⬆️ (API) Upgrade upstash & hono dependencies & types
pheralb Sep 8, 2025
de47f2f
🛠️ (API) format & fixed eslint errors + improve types + improve error…
pheralb Sep 8, 2025
31f2cef
📦 Add rehype-autolink-headings, rehype-slug & unist-util-visit depend…
pheralb Sep 8, 2025
5c88b29
📝 Update readme, add getting-started with API, improve header links &…
pheralb Sep 8, 2025
a05e849
🛠️ Create rehypeCopyBtn & rehypeExternalLinks with custom types
pheralb Sep 8, 2025
70ad2e0
🎨 New svgl brand assets + update manifest & global app metatags
pheralb Sep 14, 2025
e7bbd32
📦 Add github-slugger dependency
pheralb Sep 14, 2025
1c11725
🛠️ Update copyBtn styles for rehypeCopyBtn plugin + create generateTo…
pheralb Sep 14, 2025
f2a6120
🛠️ (api) Rename query parameter from "raw" to "no-optimize" in SVG re…
pheralb Sep 14, 2025
895052f
🎨 Update code styling for line numbers and add markdown styles
pheralb Sep 16, 2025
8e3ea51
🛠️ Remove "All" category from Category type definition
pheralb Sep 16, 2025
3b3d30c
🎨 Add collapsible UI component
pheralb Sep 16, 2025
f411ffe
🛠️ Refactor API documentation for clarity and consistency; update URL…
pheralb Sep 16, 2025
5bc3616
🎨 Add Table of Contents component and type definitions
pheralb Sep 16, 2025
789fc0c
🎨 Design improvements + fixed content page size + improve accessibility
pheralb Sep 16, 2025
0f2f026
🎨 Add SvgNotFound component and integrate it into search results; upd…
pheralb Sep 16, 2025
2198058
🛠️ Merge branch 'main' of github.com:pheralb/svgl into dev
pheralb Sep 16, 2025
1203806
✨ Migrate /utils to Typescript + use tsx to run all scripts + improve…
pheralb Sep 16, 2025
0b93f9b
🔧 Refactor GitHub Actions workflow to streamline SVG size checking pr…
pheralb Sep 16, 2025
56125d2
📦 Fixed SVGs, add viewbox property
pheralb Sep 16, 2025
1da589f
🛠️ Rename ``tCategory`` to ``Category``
pheralb Sep 16, 2025
25ce756
🐋 Add size check before production build
pheralb Sep 16, 2025
9b9124b
✨ Add width and height attributes to SVG images for better layout con…
pheralb Sep 17, 2025
077df6f
🛠️ Remove unused font "OnestMedium" and clean up related styles
pheralb Sep 17, 2025
aeeaacd
🛠️ Add font preloading, improve sveltekit assets URL
pheralb Sep 17, 2025
5d45c72
✨ Improve ``SVG not found`` component with category context and updat…
pheralb Sep 17, 2025
b354a61
✨ Add link to shadcn/ui docs
pheralb Sep 17, 2025
894aca0
🎨 Add dropdown-menu UI component
pheralb Sep 18, 2025
452d121
🛠️ Return ``rawUrl`` & ``documentUrl`` properties in content-collecti…
pheralb Sep 18, 2025
aef80d6
🎨 Add claude, markdown & openai svelte components
pheralb Sep 18, 2025
4bd69b5
✨ Create <DocumentSettings /> component and integrate it into the doc…
pheralb Sep 18, 2025
8a61650
📄 Update shadcn/ui docs + add shadcn MCP server config
pheralb Sep 18, 2025
0c78255
🎨 Update container and grid components for improved responsive design
pheralb Sep 18, 2025
3e507cf
✨ Add settings management with package manager and SVG optimization o…
pheralb Sep 21, 2025
44fd09e
🔧 Refactor import statement for prettier and update formatting method
pheralb Sep 21, 2025
bf90439
🎨 Add switch UI component
pheralb Sep 21, 2025
50677ca
🎨 Update dialog title font size for improved readability
pheralb Sep 21, 2025
7c2ae97
🎨 Remove unused font-face declaration
pheralb Sep 21, 2025
f749358
🛠️ Add warning store & message
pheralb Sep 22, 2025
aae0771
🎨 Remove lazy loading from images and update sidebar badge classes fo…
pheralb Sep 22, 2025
1bf55e6
⚙️ Refactor getInitialSettings(), delete unused functions
pheralb Sep 22, 2025
c306b57
⚡️ Initial favorites page - show, delete & clear all SVGs
pheralb Sep 22, 2025
e5d130b
🛠️ Fixed eslint errors
pheralb Sep 22, 2025
f505eea
⚙️ Refactor GitHub star count feature and update layout components
pheralb Sep 22, 2025
83ec150
🛠️ Update global layout and styling for header, sidebar, and page car…
pheralb Sep 24, 2025
26f6bb9
✨ Add open with v0 support
pheralb Sep 24, 2025
60314a9
🛠️ Update GitHub link title, remove unused SvglVersion component, imp…
pheralb Sep 24, 2025
45de1a6
🛠️ Refactor favorites store, improve add/remove functions
pheralb Sep 24, 2025
559eb67
✨ Add screenshot images
pheralb Sep 24, 2025
c33ef02
🐋 Remove env variable from Dockerfile
pheralb Sep 24, 2025
32a6eb4
✨ New OG images + update static files
pheralb Sep 24, 2025
195fae3
🔎 Add umami analytics script
pheralb Sep 24, 2025
138b529
📦 Update Cursor SVGs
pheralb Sep 24, 2025
b7d05a0
🛠️ Merge branch 'main' of github.com:pheralb/svgl into dev
pheralb Sep 24, 2025
49f860f
🛠️ Fix Intello SVG routes + rename svg files
pheralb Sep 24, 2025
9cf1677
🛠️ Refactor svgr endpoint, disable optimization with ``optimize`` pro…
pheralb Sep 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Dockerfile
.dockerignore
.git
.gitignore
.gitattributes
README.md
.npmrc
.prettierrc
prettier.config.mjs
.eslintrc.cjs
eslint.config.mjs
.graphqlrc
.editorconfig
.svelte-kit
.vscode
node_modules
build
package
**/.env
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

24 changes: 17 additions & 7 deletions .github/workflows/build-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- dev

jobs:
build-app:
Expand All @@ -12,17 +13,26 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup pnpm 9
- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- name: Setup pnpm cache
uses: actions/cache@v4
with:
version: 9
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-

- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build app
run: pnpm vite:build
run: pnpm build
env:
UPSTASH_REDIS_TOKEN: ${{ secrets.UPSTASH_REDIS_TOKEN }}
UPSTASH_REDIS_URL: ${{ secrets.UPSTASH_REDIS_URL }}
SVGL_API_REQUESTS: ${{ secrets.SVGL_API_REQUESTS }}
PUBLIC_SVGL_VERSION: v5
30 changes: 13 additions & 17 deletions .github/workflows/check-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,41 @@ on:
push:
branches:
- main
- next
- dev
pull_request:
branches:
- main
- next
- dev

jobs:
vitest:
lint:
runs-on: ubuntu-latest
name: ⚡ Testing with Vitest
name: ⚙️ Linting
steps:
- uses: actions/checkout@v4

- name: Setup pnpm 9
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Install dependencies
run: pnpm install

- name: Run Vitest
run: pnpm test
- name: Run Eslint
run: pnpm lint
env:
PUBLIC_SVGL_VERSION: v5

svgs-size:
runs-on: ubuntu-latest
name: 📦 SVGs Size
steps:
- uses: actions/checkout@v4

- name: Setup pnpm 9
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Install utility dependencies
- name: Install dependencies
run: pnpm install
working-directory: ./utils/check-size

- name: Check svgs size
run: pnpm start
working-directory: ./utils/check-size
- name: Check SVGs size
run: pnpm check:size
8 changes: 4 additions & 4 deletions .github/workflows/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup pnpm 9
uses: pnpm/action-setup@v2
- name: Setup pnpm 10
uses: pnpm/action-setup@v4
with:
version: 9
version: 10

- name: Install global dependencies
run: pnpm install
Expand All @@ -25,4 +25,4 @@ jobs:
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
packageManager: pnpm
workingDirectory: 'api-routes'
workingDirectory: "api-routes"
33 changes: 13 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
# Dependencies
node_modules
package-lock.json
yarn.lock

# Folders
/.svelte-kit
/build
dist
/package
.idea/

# Hono
.wrangler
.dev.vars
# Content Collections
.content-collections

# Vercel
# Output
.output
.vercel
.netlify
.wrangler
/.svelte-kit
/build

# Logs
# OS
.DS_Store
Thumbs.db

# Environment variables
# Env
.env
.env.*
!.env.example
!.env.test

# Vite files
# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
src/figma/dist

# Lychee files
.lycheecache
18 changes: 7 additions & 11 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock
bun.lock
bun.lockb

# Miscellaneous
/static/
37 changes: 37 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM node:22.17.0-alpine AS base

# Install pnpm
RUN npm install -g pnpm@10.13.1

# Set working directory
WORKDIR /app

# Install dependencies with cache
FROM base AS deps
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

# Build the application
FROM base AS builder
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN pnpm run check:size
RUN pnpm run build:prod

# Production image
FROM node:22.17.0-alpine AS runner
WORKDIR /app

# Copy necessary files from builder
COPY --from=builder /app/build ./build
COPY --from=builder /app/node_modules ./node_modules
COPY package.json ./

# Set production environment
ENV NODE_ENV=production

# Expose port
EXPOSE 3000

# Start the server
CMD ["node", "build"]
Loading