prepack VS SvelteKit

Compare prepack vs SvelteKit and see what are their differences.

prepack

A JavaScript bundle optimizer. (by facebookarchive)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
prepack SvelteKit
8 611
14,385 17,685
- 1.0%
0.0 9.8
about 2 years ago 7 days ago
JavaScript JavaScript
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

prepack

Posts with mentions or reviews of prepack. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-24.
  • Ask HN: Interest in a Rust-Inspired Language Compiling to JavaScript?
    5 projects | news.ycombinator.com | 24 Dec 2023
    Hello HN,

    I'm considering the development of a new programming language, drawing inspiration from Rust's strengths, with a focus on compiling to JavaScript. Here what I'm considering are some key features:

    Strict Type System

    Algebraic Data Types

    *Unsafe Mode for JS/TS Interaction*: Facilitate direct interaction with existing JavaScript and TypeScript code.

    No Null Usage: Option/Result patterns to avoid null.

    Trait Implementation

    Backend Development Priority: Initially targeting server-side applications.

    Efficient Compiler Design: Including features like dead-code elimination and partial evaluation, similar to the approach of Prepack[0] (by Facebook).

    I believe this approach could bring significant benefits, especially with recent advancements like Uint8Array and worker threads.

    Would this be of interest to the community? Looking forward to your insights and discussion.

    [0] https://github.com/facebookarchive/prepack

  • Do any engines or optimizers product TS-specific performance gains?
    3 projects | /r/typescript | 24 Mar 2023
    You can still do optimisations based purely on Javascript semantics. This is similar to the first example you give with dead function elimination, and many minifiers do some amount of this already, but you can take it to some extremes. One example of this is the (no longer maintained) Prepack project from Facebook. The core idea is to evaluate as much Javascript as possible at compile time, with the expectation that the result will probably be smaller (albeit less human readable) than the initial code.
  • [AskJS] Are there JS minifiers that can compress the code by storing and reusing repeating property/method names and strings?
    1 project | /r/javascript | 12 Feb 2023
    It's no longer maintained, but I think prepack is roughly what you're looking for.
  • Can something like typescript or elm be AOT-compiled efficiently?
    5 projects | /r/node | 25 Nov 2022
  • React I Love You, But You're Bringing Me Down
    3 projects | /r/reactjs | 20 Sep 2022
    i've had code where it intentionally relied on the wrong behavior (missing hook dependencies) and when I fixed it it caused an unintentional bug (hook fired too often or sometimes infinite rerendering). Yes it is more of a bug in the code rather than React hooks issue but it is also really hard to fix/rewrite. while i'd love to jump on the hype train projects like https://github.com/facebookarchive/prepack and how concurrent mode is still experimental after five+ years doesn't give me a lot of confidence.
  • Memoirs of a lone JavaScript developer PART 2 : Svelte. An awful implementation of an old idea.
    6 projects | /r/u_liaguris | 17 Nov 2021
    Some real examples in JavaScript can be seen on Prepack[2]. Consequently it is natural to wonder whether we can AOT compile components of client side frameworks, to achieve a reduction in the final bundle size, but also to increase application execution speed.
  • React 18 is now in beta
    2 projects | news.ycombinator.com | 16 Nov 2021
    Less or more it’s likely to happen, and could have been expected 2-3 years ago.

    Especially with https://github.com/facebook/prepack. They want to eventually ship pre-compiled components rather than React.createElement() to end user

  • Vercel Welcomes Rich Harris, Creator of Svelte
    16 projects | news.ycombinator.com | 11 Nov 2021
    https://github.com/facebook/react/issues/7324

    I also think this is why facebook had been investing in `prepack` - https://github.com/facebook/prepack

SvelteKit

Posts with mentions or reviews of SvelteKit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-12.
  • ChatCrafters - Chat with AI powered personas
    3 projects | dev.to | 12 Apr 2024
    Svelte Kit for the fullstack framework It has first class support for Cloudflare Pages Svelte is a very elegant framework, and Svelte Kit is a very good meta-framework for Svelte. Svelte was probably the reason that…
  • Fun, Beautiful, Printable 'Story Cards' for Kids with Cloudflare AI
    3 projects | dev.to | 12 Apr 2024
    This AI-powered Story Card Maker is built as a SvelteKit application with Typescript. Using Flowbite Svelte component library, the whole application was laid out. The layout for the Story Card (emulating the size of a postcard - 4" x 3") is created as an HTML Canvas using Fabric.js.
  • Image Generator with Cloudflare
    2 projects | dev.to | 11 Apr 2024
    Svelte kit
  • Cannot CRUD cookies in SvelteKit from another port
    2 projects | news.ycombinator.com | 3 Mar 2024
  • The State of Angular SSR Deployment in 2024
    11 projects | dev.to | 2 Mar 2024
    These adapters, for example, were built by the community: https://github.com/sveltejs/kit/tree/master/packages/adapter-vercel https://github.com/nuxt/vercel-builder If somebody builds a working one for Angular Universal, we will gladly add it to our Framework Presets → https://vercel.com/docs/concepts/deployments/build-step#framework-preset.
  • AI for Web Devs: Deploying Your AI App to Production
    6 projects | dev.to | 7 Feb 2024
    UPDATE: If you liked this project and are curious to see what it might look like as a SvelteKit app, check out this blog post by Tim Smith where he converts this existing app over.
  • Ask HN: Looking for lightweight personal blogging platform
    35 projects | news.ycombinator.com | 6 Feb 2024
    I've played around with several platforms in the last year or so. I've landed on the following setup that works very well for me and ticks all your boxes:

    A SvelteKit[0] app hosted on Cloudflare pages. The repo is hosted on GitHub and hooked up to the Cloudflare Pages app [1]. On PRs, I get preview environments. On merge, the changes get deployed to my "production" website. I write blog posts and other content in markdown, which is then processed by mdsvex[2] with very minimal setup.

    Mostly, my requirements were more focused around getting the actual framework, hosting, etc. out of my way so that I could focus on writing. Gatsby and Next.js were too configuration heavy and turned me off once I scratched beyond the surface.

    [0] https://kit.svelte.dev/

  • Mini site for recommending songs using Svelte & Deno
    2 projects | dev.to | 3 Feb 2024
    Behind the scenes is a simple Sveltekit-powered server function to fetch a Spotify client token then find a user's recommendation playlist and its track information. A Deno edge function to performs this data fetch and renders server-side Svelte.
  • Removing React is just weakness leaving your codebase
    6 projects | dev.to | 31 Jan 2024
    It’s 2024, and you are about to start a new project. Do you reach for React, a framework you know and love or do you look at one of the other hot new frameworks like Astro, Enhance, 11ty, SvelteKit or gasp, plain vanilla Web Components?
  • CryptoFlow: Building a secure and scalable system with Axum and SvelteKit - Part 5
    3 projects | dev.to | 22 Jan 2024
    From part 0 to part 4, we built out CryptoFlow's backend service. Though we can quickly use Postman, VS Code's ThunderClient or automated tests to see the endpoints working easily, this isn't all we want. We want to actively interact with the backend service via some intuitive user interface. Also, a layman wouldn't be able to "consume" the service we've built in the last parts. This article introduces building out the user interface of the system. We will be using SvelteKit, a framework that streamlines web development, and TailwindCSS, the utility-first CSS framework. Let's dig in!

What are some alternatives?

When comparing prepack and SvelteKit you can also consider the following projects:

react-18 - Workgroup for React 18 release.

Next.js - The React Framework

next-runtime - The Next.js Runtime allows Next.js to run on Netlify with zero configuration

Nuxt.js - Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3. [Moved to: https://github.com/nuxt/nuxt]

denoflare - Develop, test, and deploy Cloudflare Workers with Deno.

Express - Fast, unopinionated, minimalist web framework for node.

jsx - The JSX specification is a XML-like syntax extension to ECMAScript.

astro - The web framework for content-driven websites. ⭐️ Star to support our work!

solid-realworld - A Solid Implementation of the Realworld Example App

vite - Next generation frontend tooling. It's fast!

react-plain - Helper functions for creating DOM elements in React without JSX

Svelte - Cybernetically enhanced web apps