GithubHelp home page GithubHelp logo

simhaonline / jmap-demo-webmail Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmapio/jmap-demo-webmail

0.0 0.0 0.0 1.37 MB

Demo JMAP Webmail Client

License: MIT License

JavaScript 99.27% HTML 0.08% CSS 0.65%

jmap-demo-webmail's Introduction

JMAP Demo Webmail

This is a simple, but in many ways surprisingly sophisticated demo webmail client, making use of the JMAP JS library, and built on top of the Overture library. Hopefully this will make it easier for people to start hacking on JMAP immediately and get a feel for it. There's less than 2000 lines of non-library code - and that includes generous spacing and a few comments.

You can try it at https://jmap.io/jmap-demo-webmail/ – it will prompt you for a JMAP Session URL to connect to. The Fastmail one is prefilled, but you can change this to any other JMAP-supporting email server. If you want to run your own server, Cyrus has a complete JMAP Mail implementation.

If you're connecting to Fastmail, you'll need a JMAP-specific app password; learn more at https://jmap.topicbox.com/groups/fastmail-dev-beta/T83594f41ca76f56c/jmap-crash-course

To host your own copy of the webmail, just clone the git repo.

License

All code and design is made available under the liberal MIT license. Please see the LICENSE file in the repo for full details.

About the app

The app showcases a number of features from the JMAP JS library:

  1. It's fast. Because JMAP can load pretty much any view in one round trip.

  2. You have full access to a complete mailbox, with no paging. Jump to any point and the data loads in quickly. The library is actually automatically prefetching a little bit either side of the section you currently need, so scrolling through it gives the illusion of a fully loaded mailbox.

  3. All changes update the local UI instantly, then sync to the server in the background. If the server rejects the changes, the library will automatically revert the local cache so it stays in sync.

  4. There's full, multi-level undo (and redo – Cmd-Shift-Z!) support. Again, the changes occur instantly in the client and are synced back to the server later. It can even handle undo when it's in the middle of syncing the original change to the server.

  5. There's full push support. The EventSource connection to the server receives a new state token whenever something changes, which triggers the library to make a request to the server and get back the changes. Very fast, very efficient. Please note: the public Fastmail JMAP server does not currently support push connections.

jmap-demo-webmail's People

Contributors

neilj 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.