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

blocksmd

v1.0.3

Published

Markdown to amazing forms and web pages

Downloads

224

Readme

blocks.md - Markdown to amazing forms and web pages

blocks.md is a tool that takes your Markdown files and turns them into amazing forms and web pages. Here are some key features:

  • Easy to write and undestand, especially if you know Markdown
  • Support for form fields: text, email, choice, select, etc.
  • Create form-slides and slides using ---, or create single pages instead
  • Logic jumps and page progress
  • Save form responses, with support for partial or slide-level submissions
  • Google Sheets integration
  • Add class names and attributes
  • Data-binding
  • Highly customizable, including branding
  • Set and read data, create reactive blog posts and articles
  • Localizable to any language
  • Accessibility out of the box

It's quite a lot to take in, but blocks.md is remarkably simple to use and understand in practice. Please check out our website and see the examples there.

How to use

Full documentation: How to use

Install via npm

npm install blocksmd

Convert Markdown files to forms and pages

Once you've installed blocks.md, put all of your Markdown files in a src directory. You can also have your images and media files in src/static (that is, within the input directory), and this directory will be copied for you. Once you're ready, run the following command in your CLI:

blocksmd

By default, this command will look for a directory called src and place the resulting output in a new site directory. It will also create the necessary CSS and JS files in a new site/blocksmd directory (that is, within the output directory) and copy the static files. However, you can specify the input and output directories, and also set the name of the static directory using the following options:

Options:
      --help             Show help                                     [boolean]
      --version          Show version number                           [boolean]
  -i, --input            Input directory    [string] [required] [default: "src"]
  -o, --output           Output directory  [string] [required] [default: "site"]
  -s, --static-dir-name  Static directory name (for images, media files, etc.)
                                         [string] [required] [default: "static"]

So for example, if you wanted to convert the Markdown files in the cms/pages directory and place the output in website, you would run the following:

blocksmd -i cms/pages -o website

The output folder is a static site with regular HTML files, and you can host them on Github Pages, Netlify, Vercel, etc. For example, you can literally drag and drop an output folder created using blocks.md to Netlify Drop, and your forms and pages will all work properly.

Roadmap

The following list contains upcoming features that have been planned for blocks.md:

  1. Date time input
  2. Multi-choice input with dynamic filtering and results
  3. Rating input ✅
  4. Opinion scale and Net Promoter Score®
  5. File/image upload
  6. Ranking input (maybe)
  7. Honeypot fields for spam prevention
  8. Layout options with images and media (also slide level)
  9. Classic form style
  10. Payments
  11. WordPress plugin
  12. Cloud version
  13. Go open-source

Build

Run the following to build the project:

npm run build

Make sure you have the dev dependencies installed.

Test

Run the following to test the project:

npm run test

Again, make sure you have the dev dependencies installed.

Documentation

https://blocksmd.gitbook.io/docs/