An Electron app using NAPI-RS and a native Rust module to implement a Svelte store.

Overview

Svelte Store Written in Rust

This repo shows a demo of an Electron app running a Svelte UI that reads and writes a Svelte store, but with a twist: the store is implemented in native Rust code 😎

Read the blog post to learn how it came together.

How to Run

Fair warning, it's not the most ergonomic project to develop with!

Stuff You'll Need

Then,

  • Clone this repo
  • Run npm install in 3 separate places:
    • in the root folder, for Electron
    • in the ui folder, for Svelte
    • in the bindings folder, for the Rust module
  • Run npm start from the root folder
You might also like...

A planetary body simulator with a HTML5/CSS3/JS frontend and simulated using Rust WebAssembly.

A planetary body simulator with a HTML5/CSS3/JS frontend and simulated using Rust WebAssembly.

Solar Sim πŸͺ A planetary body simulator with a HTML5/CSS3/JS frontend and simulated using Rust WebAssembly. Try the latest version here! Built with πŸ¦€

Jun 15, 2022

How to implement Step-up Authentication using Amazon Cognito

How to implement Step-up Authentication using Amazon Cognito

How to implement Step-up Authentication using Amazon Cognito This repository contains accompanying source code for the AWS Blog post, How to implement

Dec 15, 2022

A complete application tutorial to show how to implement the Web Socket protocol using only Node.js builtin modules

A complete application tutorial to show how to implement the Web Socket protocol using only Node.js builtin modules

Web Socket application using only Node.js built-in modules About Welcome, this repo is part of my youtube video about Building a complete application

Dec 19, 2022

Interface to implement a video player using the Bootstrap 5 framework.

BOOTSTRAP VIDEO PLAYER INTERFACE This is an experimental interface to implement a video player using the Bootstrap 5 framework. The HTML structure was

Dec 28, 2022

This repository is for a tutorial on how to implement ci-cd in django using AWS

AWS CI/CD DJANGO Overview This repository is for a tutorial on how to implement Django CI/CD Pipeline in AWS. It contains important scripts needed to

Aug 19, 2022

A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express.

Double CSRF A utility package to help implement stateless CSRF protection using the Double Submit Cookie Pattern in express. Dos and Don'ts β€’ Getting

Dec 28, 2022

A low-feature, dependency-free and performant test runner inspired by Rust and Deno

minitest A low-feature, dependency-free and performant test runner inspired by Rust and Deno Simplicity: Use the mt test runner with the test function

Nov 12, 2022

πŸ“— A simple electron app to connect with Platzi and add a discord rich presence

πŸ“— A simple electron app to connect with Platzi and add a discord rich presence

Platzi - Discord Rich Presence RPC Electron Requirements Nodejs you can download the latest version - here clone the repository like this - git clon

Oct 31, 2022

πŸ’…β€A ready-to-go with a well-thought-out structure Electron app boilerplate with ReactJS, TypeScript, CSS / SASS modules, SWC, Eslint, Prettier, GitHub Action releases and more.

πŸ’…β€A ready-to-go with a well-thought-out structure Electron app boilerplate with ReactJS, TypeScript, CSS / SASS modules, SWC, Eslint, Prettier, GitHub Action releases and more.

Electron App πŸ’…  A ready-to-go with a well-thought-out structure Electron app boilerplate with ReactJS, TypeScript, CSS / SASS modules, SWC, Eslint, P

Dec 29, 2022
Owner
Dave Ceddia
Dave Ceddia
A Minecraft launcher written in Rust, with an Electron frontend.

RustMine A Minecraft launcher written in Rust, with an Electron frontend. Why? I thought it would be fun to use two of my most familiar languages, Rus

sussyimpostor 1 Oct 16, 2022
🐈 Tiny svelte implement

?? Why Very interest in svelte, and i want to know how svelte works,i found that svelte is just a compiler, so i write this tiny svelte to learn it. ?

Frozen FIsh 31 Nov 12, 2022
A Svelte parser that compiles to Mitosis JSON, allowing you to write Svelte components once and compile to every framework.

Sveltosis Still in development A Svelte parser that compiles to Mitosis JSON, allowing you to write Svelte components once and compile to every framew

sveltosis 70 Nov 24, 2022
Secure-electron-template - The best way to build Electron apps with security in mind.

secure-electron-template A current electron app template with the most popular frameworks, designed and built with security in mind. (If you are curio

reZach 1.4k Dec 29, 2022
An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

Snyk Labs 57 Dec 28, 2022
Remix sandbox repo for Rust compiled to WASM and to native N-API modules

Rust <-> Remix Sandbox Now with both native Rust and WASM versions! If you want to combine the Web Fundamentals & Modern UX of Remix together with the

Ben Wishovich 26 Dec 30, 2022
Template for generating rust-based native projects

Speedy NAPI-RS template Use this template Click use this template above, then find and replace speedy-sourcemap to your desired naming. Setup Rust too

speedystack 10 Jan 21, 2022
Next-level academia! Repository for the Native Overleaf project, attempting to integrate Overleaf with native OS features for macOS, Linux and Windows.

Native Overleaf Overleaf is a fantastic webtool for writing and cooperating on LaTeX documents. However, would it not be even better if it were to beh

Floris-Jan Willemsen 40 Dec 18, 2022
Drawing Newton's fractal using pure js, rust-wasm, SIMDs, threads and GPU

Newton's fractal Runtime Newton's fractal renderer. >>Click<< to open in your browser Inspired by 3blue1brown's video about Newton's fractal. Drawing

Aleksei 86 Nov 17, 2022