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

typescript-playground-presentation-mode

v0.5.1

Published

Present your TypeScript talk directly in the playground, powered by GitHub gists!

Downloads

305

Readme

TypeScript Playground Present

A way to present your TypeScript talk in style!

This plugin adds a copy of Reveal.js above the playground, slides are created using Markdown (via marked) and have the ability to set the text in the playground.

With markdown looking like:

<img src="https://camo.githubusercontent.com/8a8121d9e0fc2678098851e0ef63a36f5c8b199e/68747470733a2f2f7365637572652e6d65657475707374617469632e636f6d2f70686f746f732f6576656e742f612f312f642f612f3630305f3438303532313433342e6a706567">

# TSNYC Jan 2020

---

## What is TypeScript?

TypeScript extends JavaScript by adding types.

TypeScript speeds up your development experience by catching errors and providing fixes before you even run your code.

Any browser, any OS, anywhere JavaScript runs. Entirely Open Source.

---

## Organizers

...

This markdown would turn into three slides.

Examples

Useful info for making slides

  1. Get started by making a gist: https://gist.github.com
  2. Make an index.md and add some example markdown
  3. Split your slides with ---
  4. Save your gist, then tell the playground to load that gist

Playground support

You can change the playground support by adding a playground html element in the slides, this lets you use markdown code blocks to show code in the slides:

# Network Requests

There are a few ways to get info from an API

---

# What is `await`?

'''ts
const response = await fetch("mysite.com/api/dogs")
'''

<playground>
import fetch from "node-fetch"

const start = await () => {
   const response = await fetch("https://mysite.com/api/dogs)
   ...
}
</playground>

---

# How do Promises work?

(I faked the markdown code block, it would normally use backticks, but I can't put markdown blocks in a markdown block...)

Built In Slides

Reveal.js supports building in a slide using fragements

# Anyone can contribute

It takes a village to make a big OSS project
---
# Extra thanks to

- Orta Therox <!-- .element: class="fragment" data-fragment-index="1" -->
- Danger McShane <!-- .element: class="fragment" data-fragment-index="2" -->

---

TODO

  • Make it pretty
  • Add a back to slides button
  • Add a down to code button when playground has changed
  • Are there more things we can hook into than just code?

Contributing

You can use yarn start to set up both a copy of rollup to generate the JS, and serve to host it

yarn start

Then set up the TypeScript playground to get a plugin from from http://localhost:5000/index.js.