How the hell do you structure your Frontend JavaScript.

This page summarizes the projects mentioned and recommended in the original post on /r/webdev

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • website

    Discontinued Gitpod website and documentation (by gitpod-io)

  • You can learn a lot by viewing other projects. For example, I went to Github and found gitpod.io. Have a look at their src directory. Under that they have functions, lib, and routes. Navigate through those and have a look how things are structured and named.

  • Stimulus

    A modest JavaScript framework for the HTML you already have

  • On the subject of separating js files, I recently learned about stimulus js: https://stimulus.hotwired.dev/ which uses named controller files that hook into elements on the page. It's a nice way to keep distinct js functionality separate and reusable.

  • 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 logo
  • mojl

    A bundler for vanilla websites

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts