Welcome to SVAIO, your go-to toolkit for seamless SvelteKit development. This repository provides a collection of utilities that require no configuration, allowing you to focus on building your application.
SVAIO stands for SvelteKit All in One Utilities. This toolkit simplifies the development process by providing essential features without the need for extensive configuration. Whether you're building a personal project or a large-scale application, SVAIO has you covered.
To get started with SVAIO, you need to clone the repository and install the dependencies. Use the following commands:
git clone https://github.com/vlad1356226/svaio.git
cd svaio
npm install
Once installed, you can start using the utilities in your SvelteKit project. Each utility is designed to integrate smoothly into your workflow. Refer to the specific sections below for detailed usage instructions for each utility.
Internationalization (i18n) support allows you to easily manage multiple languages in your application. With SVAIO, you can set up language files and switch between languages seamlessly.
import { i18n } from 'svaio/i18n';
i18n.setLocale('en'); // Set the current locale
console.log(i18n.translate('welcome')); // Output: "Welcome"
The manifest utility helps you create a web app manifest file. This file is essential for progressive web apps (PWAs) and provides metadata about your application.
import { createManifest } from 'svaio/manifest';
const manifest = createManifest({
name: 'My App',
short_name: 'App',
start_url: '/',
display: 'standalone',
background_color: '#ffffff',
theme_color: '#000000',
});
PigeonPosse is a utility for managing and displaying notifications in your application. It provides a simple API to create, update, and remove notifications.
import { notify } from 'svaio/pigeonposse';
notify('This is a notification!', { type: 'info' });
The PWA utility streamlines the process of turning your SvelteKit app into a progressive web app. It handles service worker registration and caching strategies.
import { registerServiceWorker } from 'svaio/pwa';
registerServiceWorker('/sw.js');
Manage your robots.txt file easily with the robots utility. This file instructs web crawlers on how to interact with your site.
import { createRobots } from 'svaio/robots';
const robots = createRobots({
UserAgent: '*',
Disallow: '/private/',
});
Generate a sitemap.xml file for your application with the sitemap utility. This helps search engines index your site effectively.
import { generateSitemap } from 'svaio/sitemap';
const sitemap = generateSitemap([
{ url: '/', changefreq: 'daily', priority: 1.0 },
{ url: '/about', changefreq: 'monthly', priority: 0.8 },
]);
UnoCSS is a utility-first CSS framework that helps you write styles directly in your HTML. SVAIO integrates UnoCSS for rapid styling.
<div class="bg-blue-500 text-white p-4">Hello, World!</div>
SVAIO is built on top of Vite, a fast build tool that provides a smooth development experience. Use Vite's features to enhance your workflow.
import { defineConfig } from 'vite';
export default defineConfig({
plugins: [/* your plugins here */],
});
We welcome contributions from the community. If you want to contribute to SVAIO, please follow these steps:
Please ensure your code follows the project's coding standards and includes appropriate tests.
SVAIO is licensed under the MIT License. See the LICENSE file for more information.
For questions or feedback, please reach out via the Issues section of the repository.
Explore the full capabilities of SVAIO and streamline your SvelteKit development today! Check the "Releases" section for the latest updates and features.