npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

preleganto

v0.2.0

Published

Easy-to-use markup based HTML presentation tool with built-in source highlighting and math rendering

Downloads

12

Readme

Preleganto

Yet another in-browser presentation tool which transforms source content written in AsciiDoc-like syntax (kind of similar to Markdown) into HTML. It offers convenient command line interface and some advanced features.

List of features

  • Transforming markup to HTML
  • Text formatting, links, images, ...
  • Built-in and custom themes and layouts
  • Source code highlighting
  • Touch devices support
  • Smart typographic substitution
  • Inline and block LaTeX typesetting
  • Local server with multiple devices synchronization and live reloading
  • Export to full-featured HTML file with all assets embedded (even from network)
  • Watch mode and automatic rebuild
  • Changing aspect ratio on demand

Screenshot

Notable Features

Usage

  1. npm install -g preleganto
  2. Write some markup into a file (see examples for inspiration)
  3. preleganto build --input examples/preleganto.adoc

Notes

Preleganto is in early stages of development. Many features are missing, no tests are written, a lot of refactoring is needed and documentation is lacking. But I hope it will get better over time. Also the parser is expected to be quite buggy.

Browser support

I don't aim to support every browser out there. I want to use new features present in web development today. In modern browser Preleganto should work well.

AsciiDoc compatibility

Since there is no AsciiDoc parser written in JavaScript, which would emit an AST, available (to my knowledge), I had to write my own. It supports really small subset of AsciiDoc syntax and probably doesn't follow AsciiDoc specification in all possible edge cases. Surely there are also parsing errors where they shouldn't be.

I hope that it will be replaced eventually by a parser from anyone who will want to focus on full AsciiDoc support maintaing compatibility with specification, because I am not that person.

Documenation

See docs.

Contributing

I'd love to see anyone who wants to help, be it a pull request or just a comment. The source code is written in modern JavaScript with Flow type annotations. For more information, see Contributing guide.

Roadmap

See feature requests.

Alternatives

  • remark - I have used this one. It's relatively convenient tool generating nice presentations. I had to figured out how to support LaTeX and the solution wasn't so nice. Also it requires internet connection when you have some external resources (Google fonts, ...).
  • reveal.js - I would say famous HTML presentation tool. It allows you to create nested slides (vertical direction) which is impressive. It seems that it supports LaTeX but it's not out of the box and dynamic transformation via MathJax is slow. I personally don't like the design. Probably the same problem with external resources as remark. But it has web GUI editor.
  • impress.js - I have no experience with this but I feel it's worth to note it here. This tool is for people who are willing to spend some extra time to create impressive presentations.
  • And many others.

License

Preleganto is licensed under MIT license. Feel free to use it, contribute or spread the word.