Skip to content
@emmyjs

Emmy.js

Emmy.js

npm NPM tests
A tiny simple front-end library for building web applications using functional web components.

Why Emmy.js?

Emmy.js is a tiny simple front-end library for building web applications using functional web components. It is based on the Web Components standard. It is specially designed for building web applications with server-side frameworks like Ruby on Rails, Django, Laravel, etc.


Experimental npx create-emmy

create-emmy is a command line tool that allows you to create a new emmy.js project. It is still in an experimental phase, so it is not recommended to use it in production, but you can try it out and give us your feedback. More info

Example: Counter

import { load, html } from 'emmy-dom'

const counter = ({ el }) => {
  const [count, setCount] = el.useState(0)

  el.useEffect(() => {
    el.querySelector('#increment').addEventListener('click', () => {
      setCount(count() + 1)
    })
  }, [])

  return () => html`
    <div>
      <h1>Count: ${count()}</h1>
      <button id='increment'>+</button>
    </div>
  `
}

load(counter, 'Counter')

Pinned Loading

  1. emmy-dom emmy-dom Public

    A tiny simple way for building web user interfaces

    TypeScript 4

  2. create-emmy create-emmy Public

    An Emmy.js applications generator

    JavaScript

Repositories

Showing 4 of 4 repositories
  • emmy-dom Public

    A tiny simple way for building web user interfaces

    emmyjs/emmy-dom’s past year of commit activity
    TypeScript 4 MIT 0 0 5 Updated Oct 14, 2024
  • .github Public

    Emmy.js public organization profile repository

    emmyjs/.github’s past year of commit activity
    0 MIT 0 0 0 Updated Oct 10, 2024
  • create-emmy Public

    An Emmy.js applications generator

    emmyjs/create-emmy’s past year of commit activity
    JavaScript 0 MIT 0 0 0 Updated Oct 10, 2024
  • emmyjs.pages.dev Public template

    Emmy.js webpage

    emmyjs/emmyjs.pages.dev’s past year of commit activity
    HTML 0 0 0 0 Updated Aug 4, 2024

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…