Code Monkey home page Code Monkey logo

svelteaction-docs's Introduction

Svelte Action

FastAPI

Write less, Do more


Svelte Action is a collection of utility functions, which help you build powerful app.

The key features are:

  • Type Strong ๐Ÿ’ช: Written in TypeScript, with full TS docs.
  • Fast to code ๐Ÿš€: Increase the speed to develop features by about 200% to 300%.
  • Fewer bugs ๐Ÿž: Reduce about 40% of human (developer) induced errors.
  • SSR Friendly ๐Ÿ•บ: Works perfectly with server-side.
  • Easy ๐Ÿ’ซ: Designed to be easy to use and learn. Less time reading docs.
  • Interactive demos ๐ŸŽ‰ : Documentation of functions also come with interactive demos!.
  • Feature Rich ๐ŸŒˆ: 100+ functions for you to choose from.
  • Fully ๐ŸŒณ shakeable: Only take what you want.
  • โš™๏ธ Flexible: Fully customizable, configurable event filters and targets.

Installation

Core

pnpm add -D sveltecore

Shared

pnpm add -D svelteshareds

Integrations

pnpm add -D svelteintegrations

๐Ÿงช Example

Core

<script>
import {permission} from "sveltecore"

const { state, is_supported } = permission("geolocation", {controls: true})

</script>

<h1>Is supported is: {$is_supported}</h1>
<h1>state is: {$state}</h1>

Shared

<script>
import {toggleable} from "svelteshareds"

const [value, toggle] = toggleable()

</script>

<h1>value is: {$value}</h1>

<button on:click="{() => toggle()}">Toggle</button>

Integrations

<script>
import {jwt} from "svelteintegrations/jwt"

const token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"

const { header, payload } = jwt(token)

</script>

<h1>Header:</h1>
<h2>{JSON.stringify(header)}</h2>

<hr/>

<h1>Payload:</h1>
<h2>{JSON.stringify(payload)}</h2>

๐Ÿ™ Thanks

This project is heavily inspired by the following awesome projects.

๐Ÿ“œ License

MIT License ยฉ 2022-PRESENT Mohamed Nesredin

svelteaction-docs's People

Contributors

mohamed-kaizen avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.