The next-generation file converter. Open source, fully local* and free forever.
feat: initial commit
not-nullptr036e928b8acc
diff --git a/.gitignore b/.gitignorenew file mode 100644index 0000000..79518f7--- /dev/null+++ b/.gitignore@@ -0,0 +1,21 @@+node_modules++# Output+.output+.vercel+/.svelte-kit+/build++# OS+.DS_Store+Thumbs.db++# Env+.env+.env.*+!.env.example+!.env.test++# Vite+vite.config.js.timestamp-*+vite.config.ts.timestamp-*diff --git a/.npmrc b/.npmrcnew file mode 100644index 0000000..b6f27f1--- /dev/null+++ b/.npmrc@@ -0,0 +1 @@+engine-strict=truediff --git a/.prettierignore b/.prettierignorenew file mode 100644index 0000000..ab78a95--- /dev/null+++ b/.prettierignore@@ -0,0 +1,4 @@+# Package Managers+package-lock.json+pnpm-lock.yaml+yarn.lockdiff --git a/.prettierrc b/.prettierrcnew file mode 100644index 0000000..10d31c3--- /dev/null+++ b/.prettierrc@@ -0,0 +1,5 @@+{+ "useTabs": true,+ "tabWidth": 4,+ "singleQuote": false+}diff --git a/README.md b/README.mdnew file mode 100644index 0000000..b5b2950--- /dev/null+++ b/README.md@@ -0,0 +1,38 @@+# sv++Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).++## Creating a project++If you're seeing this, you've probably already done this step. Congrats!++```bash+# create a new project in the current directory+npx sv create++# create a new project in my-app+npx sv create my-app+```++## Developing++Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:++```bash+npm run dev++# or start the server and open the app in a new browser tab+npm run dev -- --open+```++## Building++To create a production version of your app:++```bash+npm run build+```++You can preview the production build with `npm run preview`.++> To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.diff --git a/bun.lockb b/bun.lockbnew file mode 100644index 0000000..1d2ea10Binary files /dev/null and b/bun.lockb differdiff --git a/eslint.config.js b/eslint.config.jsnew file mode 100644index 0000000..a526565--- /dev/null+++ b/eslint.config.js@@ -0,0 +1,33 @@+import prettier from 'eslint-config-prettier';+import js from '@eslint/js';+import svelte from 'eslint-plugin-svelte';+import globals from 'globals';+import ts from 'typescript-eslint';++export default ts.config(+ js.configs.recommended,+ ...ts.configs.recommended,+ ...svelte.configs['flat/recommended'],+ prettier,+ ...svelte.configs['flat/prettier'],+ {+ languageOptions: {+ globals: {+ ...globals.browser,+ ...globals.node+ }+ }+ },+ {+ files: ['**/*.svelte'],++ languageOptions: {+ parserOptions: {+ parser: ts.parser+ }+ }+ },+ {+ ignores: ['build/', '.svelte-kit/', 'dist/']+ }+);diff --git a/package.json b/package.jsonnew file mode 100644index 0000000..0588ad5--- /dev/null+++ b/package.json@@ -0,0 +1,38 @@+{+ "name": "unnamed-file-converter",+ "version": "0.0.1",+ "type": "module",+ "scripts": {+ "dev": "vite dev",+ "build": "vite build",+ "preview": "vite preview",+ "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",+ "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",+ "format": "prettier --write .",+ "lint": "prettier --check . && eslint ."+ },+ "devDependencies": {+ "@sveltejs/adapter-auto": "^3.0.0",+ "@sveltejs/kit": "^2.0.0",+ "@sveltejs/vite-plugin-svelte": "^4.0.0",+ "@types/eslint": "^9.6.0",+ "autoprefixer": "^10.4.20",+ "eslint": "^9.7.0",+ "eslint-config-prettier": "^9.1.0",+ "eslint-plugin-svelte": "^2.36.0",+ "globals": "^15.0.0",+ "prettier": "^3.3.2",+ "prettier-plugin-svelte": "^3.2.6",+ "prettier-plugin-tailwindcss": "^0.6.5",+ "svelte": "^5.0.0",+ "svelte-check": "^4.0.0",+ "tailwindcss": "^3.4.9",+ "typescript": "^5.0.0",+ "typescript-eslint": "^8.0.0",+ "vite": "^5.0.3"+ },+ "dependencies": {+ "@imagemagick/magick-wasm": "^0.0.31",+ "lucide-svelte": "^0.456.0"+ }+}diff --git a/postcss.config.js b/postcss.config.jsnew file mode 100644index 0000000..0f77216--- /dev/null+++ b/postcss.config.js@@ -0,0 +1,6 @@+export default {+ plugins: {+ tailwindcss: {},+ autoprefixer: {}+ }+};diff --git a/src/app.css b/src/app.cssnew file mode 100644index 0000000..a31e444--- /dev/null+++ b/src/app.css@@ -0,0 +1,3 @@+@import 'tailwindcss/base';+@import 'tailwindcss/components';+@import 'tailwindcss/utilities';diff --git a/src/app.d.ts b/src/app.d.tsnew file mode 100644index 0000000..da08e6d--- /dev/null+++ b/src/app.d.ts@@ -0,0 +1,13 @@+// See https://svelte.dev/docs/kit/types#app.d.ts+// for information about these interfaces+declare global {+ namespace App {+ // interface Error {}+ // interface Locals {}+ // interface PageData {}+ // interface PageState {}+ // interface Platform {}+ }+}++export {};diff --git a/src/app.html b/src/app.htmlnew file mode 100644index 0000000..d086c20--- /dev/null+++ b/src/app.html@@ -0,0 +1,13 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="utf-8" />+ <link rel="icon" href="%sveltekit.assets%/favicon.png" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <script src="/a.out.js" defer></script>+ %sveltekit.head%+ </head>+ <body data-sveltekit-preload-data="hover">+ <div style="display: contents">%sveltekit.body%</div>+ </body>+</html>diff --git a/src/lib/index.ts b/src/lib/index.tsnew file mode 100644index 0000000..856f2b6--- /dev/null+++ b/src/lib/index.ts@@ -0,0 +1 @@+// place files you want to import through the `$lib` alias in this folder.diff --git a/src/routes/+layout.svelte b/src/routes/+layout.sveltenew file mode 100644index 0000000..7be3ce4--- /dev/null+++ b/src/routes/+layout.svelte@@ -0,0 +1,6 @@+<script lang="ts">+ import "../app.css";+ let { children } = $props();+</script>++{@render children()}diff --git a/src/routes/+layout.ts b/src/routes/+layout.tsnew file mode 100644index 0000000..25a8fed--- /dev/null+++ b/src/routes/+layout.ts@@ -0,0 +1,5 @@+import { init } from "./util/magick";++export async function load({ fetch }) {+ await init(fetch);+}diff --git a/src/routes/+page.svelte b/src/routes/+page.sveltenew file mode 100644index 0000000..e69de29diff --git a/src/routes/util/magick.ts b/src/routes/util/magick.tsnew file mode 100644index 0000000..c2a4b39--- /dev/null+++ b/src/routes/util/magick.ts@@ -0,0 +1,14 @@+import { initializeImageMagick } from "@imagemagick/magick-wasm";++export let initialized = false;++export const init = async (+ fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>,+) => {+ if (initialized) return;+ const wasmBytes = await fetch("/magick.wasm").then((res) =>+ res.arrayBuffer(),+ );+ await initializeImageMagick(wasmBytes);+ initialized = true;+};diff --git a/static/favicon.png b/static/favicon.pngnew file mode 100644index 0000000..825b9e6Binary files /dev/null and b/static/favicon.png differdiff --git a/static/magick.wasm b/static/magick.wasmnew file mode 100644index 0000000..81454c2Binary files /dev/null and b/static/magick.wasm differdiff --git a/svelte.config.js b/svelte.config.jsnew file mode 100644index 0000000..1295460--- /dev/null+++ b/svelte.config.js@@ -0,0 +1,18 @@+import adapter from '@sveltejs/adapter-auto';+import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';++/** @type {import('@sveltejs/kit').Config} */+const config = {+ // Consult https://svelte.dev/docs/kit/integrations+ // for more information about preprocessors+ preprocess: vitePreprocess(),++ kit: {+ // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list.+ // If your environment is not supported, or you settled on a specific environment, switch out the adapter.+ // See https://svelte.dev/docs/kit/adapters for more information about adapters.+ adapter: adapter()+ }+};++export default config;diff --git a/tailwind.config.ts b/tailwind.config.tsnew file mode 100644index 0000000..aa4bc77--- /dev/null+++ b/tailwind.config.ts@@ -0,0 +1,11 @@+import type { Config } from 'tailwindcss';++export default {+ content: ['./src/**/*.{html,js,svelte,ts}'],++ theme: {+ extend: {}+ },++ plugins: []+} satisfies Config;diff --git a/tsconfig.json b/tsconfig.jsonnew file mode 100644index 0000000..0b2d886--- /dev/null+++ b/tsconfig.json@@ -0,0 +1,19 @@+{+ "extends": "./.svelte-kit/tsconfig.json",+ "compilerOptions": {+ "allowJs": true,+ "checkJs": true,+ "esModuleInterop": true,+ "forceConsistentCasingInFileNames": true,+ "resolveJsonModule": true,+ "skipLibCheck": true,+ "sourceMap": true,+ "strict": true,+ "moduleResolution": "bundler"+ }+ // Path aliases are handled by https://svelte.dev/docs/kit/configuration#alias+ // except $lib which is handled by https://svelte.dev/docs/kit/configuration#files+ //+ // If you want to overwrite includes/excludes, make sure to copy over the relevant includes/excludes+ // from the referenced tsconfig.json - TypeScript does not merge them in+}diff --git a/vite.config.ts b/vite.config.tsnew file mode 100644index 0000000..bbf8c7d--- /dev/null+++ b/vite.config.ts@@ -0,0 +1,6 @@+import { sveltekit } from '@sveltejs/kit/vite';+import { defineConfig } from 'vite';++export default defineConfig({+ plugins: [sveltekit()]+});