striff
typeit
Our great sponsors
striff | typeit | |
---|---|---|
9 | 18 | |
201 | 3,011 | |
- | - | |
0.0 | 4.3 | |
over 1 year ago | 25 days ago | |
TypeScript | JavaScript | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
striff
-
Show HN: A stab at building my own string diffing library
Having looked at the code a bit I stumbled onto this:
https://github.com/alexmacarthur/striff/blob/master/src/util...
This... can't be right.
Can you explain how your algorithm differs from, in particular, this one: https://en.wikipedia.org/wiki/Longest_common_subsequence_pro...
Also, why does it differ from that?
- Here’s my ~600 byte (minified, gzipped) package for diffing two strings.
- I built a ~600 byte string diffing library.
- GitHub - alexmacarthur/striff: Real simple string diffing.
- Striff: A < 600 byte string diffing package.
typeit
-
Impressive performance gains in moving TypeIt from Gatsby to Astro
- the overall performance score jumped by 12 points.
All of this was achieved by sticking with the same overall design and layout. It was really due to getting away from a heavy, React-based static site generator.
If you’re working with a similar type of site and looking to upgrade, rebuild, or migrate, I highly recommend Astro and its Starlight theme. I’ll be using it probably exclusively moving forward.
See the TypeIt site here:
https://typeitjs.com
-
Making my Library Open Source but paid for corporates
I don’t know if you can restrict its usage in that way (wouldn’t that no longer make it open source), but you can charge for commercial usage while keeping the source open. I do this with TypeIt under a GPLv3 license: https://github.com/alexmacarthur/typeit/blob/master/LICENSE
-
Tools for simulating Code Typing?
Something like TypeIt would work but I need Code Highlighting too.
-
Ask HN: Tools for Code Typing Simulation?
I'm looking for a tool that could mimic Code Typing but do it smoothly. I need it for recording tutorials but I don't want to record myself typing the code as that is not always smooth and is time consuming.
Something like TypeIt[0] but with Code Highlighting.
This is what I'm talking about: https://youtu.be/U4ogK0MIzqk?t=9
[0] https://github.com/alexmacarthur/typeit
-
Striff: A < 600 byte string diffing package.
I'll try to remember to post what I do with it. I'm planning on using it to build out a more interactive tool for generating TypeIt code on typeitjs.com.
-
Best practice: typing effect on mobile screen
TypeIt.js exists.
-
Just found out about the native TreeWalker object, useful for crawling through lots of nodes.
For a long time, my library TypeIt (https://typeitjs.com) crawled through a bunch of HTML nodes by recursively looping over them, and flattening them out at the end. It's always felt like an arduous, inefficient process. You can peruse through it here (spare me the code review, lol):
-
Lighthouse score jumped 8 points just by moving from Google Analytics to Plausible.
A friend brought up Plausible in a conversation a few days ago. I've been looking for an alternative to Google Analytics for quite some time (main concerns are performance, avoiding ad blockers & browsers that block client-side analytics, and UX of the admin). There's a self-hosted option, so I spun it up on a Digital Ocean server (found some great documentation; took maybe ~20 minutes), and wired up one of my sites with it -- typeitjs.com.
-
Portfolio Critique — October 2021
Using typeit.js is a really easy way to get the control you need for the typing effect to work well.
-
How much money do you make from your website a month?
I don't make money on my personal blog (macarthur.me), but I have used it as a means of driving traffic to one that does. I've been selling TypeIt licenses (https://typeitjs.com) for a few years. Nothing significant in terms of revenue, but ranges from $200-$400 a month -- far more than I initially expected when I created the project as a means of learning JavaScript better.
What are some alternatives?
diff-match-patch - Diff Match Patch is a high-performance library in multiple languages that manipulates plain text.
GreenSock-JS - GSAP (GreenSock Animation Platform), a JavaScript animation library for the modern web
react-text-scramble - React & TypeScript text scramble effect
Masonry - :love_hotel: Cascading grid layout plugin
react-text-transition - Animate your text changes
scroll-out - ScrollOut detects changes in scroll for reveal, parallax, and CSS Variable effects!
react-contenteditable - React component for a div with editable contents
vivid_vector_alphabet - Beautiful Hand Drawn Letters ⭐ A meticulous merger of form and function. Typography Animation Microinteraction -Star it!
Table - Formats data into a string table.
anime.js - JavaScript animation engine
d3 - Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:
hn-search - Hacker News Search