Syntax Video
Deno 2 Deep Dive | Exploring the Deno Ecosystem
- 0:00 intro
- 1:48 what is deno?
- 4:40 creating new projects with deno
- 4:55 what am i building
- 5:33 deno init
- 5:57 vs code extension setup
- 7:14 formatting with deno
- 8:32 linting with deno
- 9:18 read in csv file with deno
- 10:08 deno.json tasks
- 10:25 deno permissions
- 11:21 using npm with deno
- 12:04 working with npm:csv-parse
- 13:52 the deno standard library
- 15:13 using jsr / @std/csv
- 16:21 benefits of the standard library
- 17:07 finishing up csv parsing
- 18:32 new deno project summary
- 18:58 use deno with your favorite framework
- 20:06 gradual adoption of deno
- 20:20 deno install for node.js existing projects
- 21:19 deno install - postinstall script support
- 22:54 deno task for existing node.js projects
- 23:44 running commands from node_modules with deno
- 24:08 seed database - tsx issue
- 25:21 starting / testing app
- 26:14 gradual adoption summary
- 26:43 converting projects fully to deno
- 26:52 the project we will convert
- 28:05 project setup / init
- 29:36 remove config files
- 29:49 converting package.json dependencies to deno.json
- 31:07 starting the app
- 31:14 updating server entrypoint
- 31:58 import aliases with deno
- 32:24 adding import extensions
- 33:22 deno.json version property
- 33:41 updating deno.json compiler options
- 33:57 specify permissions in deno task
- 34:40 updating environment variable access
- 36:57 drizzle-kit push with deno
- 37:22 libsql / turso dev setup with deno
- 38:55 update dev task to use deno serve
- 40:20 testing with deno
- 40:27 test database task
- 41:15 converting vite tests to deno
- 42:58 jest / vite style expectations with @std/expect
- 44:31 updating test task permissions
- 44:52 npm module type error fix
- 45:42 100% passing tests
- 46:06 combined test tasks
- 46:28 running tasks with Deno.Command
- 48:38 add lint, format and typecheck task
- 49:35 where to find the converted code
- 49:55 convert project conclusions / summary
- 50:47 deploying with deno deploy
- 53:14 jsr.io and other parts of the deno ecosystem
- 54:38 my thoughts: room for improvement
- 54:49 permissions model
- 56:01 more searchable examples
- 58:00 deno ecosystem summary: my final thoughts
- 1:00:27 thanks!
intro
Dino is a modern all-in-one zeroc config tool chain for JavaScript and typescript and in simple terms they are an alternative to node.js but they promise to be much more now the release of dinov V2 was announced about a month ago and you might have seen the announcement video and maybe you saw some videos or blog posts by various creators around the web talking about some of these new features in Dino V2 well I actually spent the last month using Dino exclusively for all of my projects any new project that I needed to spin up I would use Dino for if I was working on an existing project I try my best to maybe convert it or try to use Doo features in it and in this video I'm going to talk about my findings I'll talk about pain points that I come across and also other various musings on the future of JavaScript and what I really think Dino brings to the table now like I said the dino V2 announcement promises a lot of things they talk about wider support of Legacy projects with built-in node and npm support and they also promise a zero config allin1 tool chain for building applications with typescript and JavaScript and in this video we are going to answer the
question does Dino V2 deliver on its promises now as you can probably tell from the length of this video we're going to cover a lot so be sure to check the time stamps in the description so you can skip ahead to a part that interests you the most but we're going to talk about what Doo is what it's like to work in a new dino project what it's like to gradually adopt Dino into your existing projects what it's like to convert an existing codebase fully to using Dino in the dino ecosystem how to deploy your applications using Dino deploy I'll also talk about some of of the areas of the dino ecosystem that I think could use some improvement and I'll also give my thoughts on the future of the JavaScript ecosystem and what I really think Dino brings to the table so if that sounds good let's dive in my name is CJ welcome to [Music] syntax now a great way to think about Dino is actually it's five different things all kind of combined into one under the name Dino and first and
what is deno?
foremost it is a secure javasript runtime so this is comparable to something like node.js in that you can write JavaScript and typescript programs that run on the back end you could build apis you could build full stack applications you could build CLI tools those different kinds of things and Dino is built on top of V8 just like no. JS is but it's actually built using rust instead of C++ and Dino also has backwards compatibility with core node modules so if you have a program that uses like the fs module or uses path or various things like that you can actually still run that program inside of Dino now dino is called a secure runtime because they actually have a permission model now when you run programs with no. JS they have full access to your computer they can read and write files they can access the network they can do anything but Dino has a permissions model so any code that you run through Dino you have to explicitly allow these kinds of permissions like file system reads file system writs access to environment variables access to the network those different kinds of things and so that's why it's called a secure JavaScript runtime now dino is also a CLI tool and provides lots of zeroc config tooling so Dino has a built-in formatter a built-in linter a built-in test Runner built-in
code coverage it runs typescript by default with zero config and a whole lot more and so essentially once you start using Dino there's a lot of various packages and projects that you won't really have to install or reach for anymore because Dino has it built in Dino also provides a standard Library so these are packages that can be installed separately but they provide a lot of the things that we typically want to do when we're working in JavaScript applications like parsing CSV files or working with HTML entities or expectations and mocks and testing or displaying colors from the command line and lots of other things like that and so essentially all these things that we typically reach for when we're building back in JavaScript applications a lot of that is just built into the standard library and maintained by the dino core team and so this is another area where if you start to adopt Doo and the standard Library into your projects you'll spend less time searching for libraries on npm or arguing over what to use because a lot of this is just built into the standard library and you can just use that and Dino also provides a package registry it's called jsr it's very similar to mpm and that you can host packages there and then install them into your applications but one of the main things is they allow you just to directly publish your
typescript code you don't have to worry about any sort of build settings or build process you can publish your typescript code there and they handle it for you it's not the same story with mpm typically if you're publishing an mpm package you have to worry about build settings and supporting commonjs and also supporting ecmascript modules and and everything in between a lot of times it's a lot of work just to make sure that your package Works in a lot of different places but jsr makes it so that it's a whole lot easier to publish packages and then lastly Dino offers Dino deploy so this is zero config serverless deployment very similar to versell you can hook up your git repos you can do auto deploys but essentially any of the backend Dino programs that you write you can very easily deploy them to dino deploy and so this is how you can kind of think about Dino it's really a unified ecosystem of all the things that we typically need to do when we're working in typescript and JavaScript [Music] applications so first let's take a look at what it's like to create a brand new dino project let's say you need to write a one-off script or you're working on a new API or backend or something like that let's see what the experience is like and for this I am going to build a
creating new projects with deno
what am i building
simple CLI tool that converts a CSV file so I work with a lot of video files and I use dingi resolve and for every video I make I add markers inside of my video editor and then those markers get turned into chapters for the YouTube description so this CSV file right here is an example of what's exported from Da Vinci resolve that has all the markers but I want to convert this into a plain text format so I can put it in YouTube description so it should have timestamp and then chapter title and so this is something that I have already implemented with no JS before but I thought it'd be a good example to show what it's like to work within the dino ecosystem so the first thing we need is to install Doo if you go to their docs they will have the install command for whatever operating system you're on and so once you have Dino installed you can create new projects with it and so if we run Dino init and then give it a project name here I'm going to call this the timeline converter that will create a directory and then we can run Dino in that directory so if we head into that directory here it says if we do dorun main.ts just has a simple program right now and then also we have a test file that we can run that just runs one
deno init
simple test so we get a basic setup but let's go from here so I'm going to open this up with vs code and if we take a look at at that main.ts you can see on my machine I'm actually getting an eslint error uh because for most projects I use eslint and a lot of times I use prer as well and so that's going to be one of the first things that I disable when working inside of a dino project so if I head over to my extensions I'm going to search for eslint and I'm going to disable it and then I'm also going to search for prettier and disable it as well so this is one of the beautiful things about Dino is it includes a formatter it includes a linter so we don't need an extra extension anymore and I do have the dino extension installed just like that so I am going to restart my extensions and now I should be ready to get set up with Dino and I don't have es lter prettier to conflict with the doo plug-in so from here we can run the doo edit command inside of vs code which will give us some basic project settings to make sure that we're using Dino as preferred so if you do command shift p or control shift p and then search for Dino initialize workspace configuration that will create
vs code extension setup
this vs code folder and then we get a settings. Json and the main thing here is you can see that it says Dino enable true now with Dino enabled we are using the typescript language server that comes from Dino so if I do something weird here like have some kind of uh syntax error the error here is coming from do- TS and that's what we want to see so we know that Doo is actually kicked in and running for this file so let's use that built-in formatter of Dino let's just add some weird formatting here let's remove a semicolon maybe we'll put this on the next line obviously I wouldn't write code this way but just as an example so now obviously I have an unformatted document from the command line if I do Dino fmt that runs the formatter there on main.ts and you can see that it instantly applies the formatting uh but I want to use this formatting directly inside of vs code so let's set that up here in my settings.
formatting with deno
Json I can set my default formatter so if I say editor. default formatter we can set this to dino now personally I have editor settings that override the default formatter for a lot of different file types and that actually takes precedence over this setting so for my specific setup I actually do need to open my settings. Json and I have a section here that is explicitly setting prettier for all of these different types and this is actually taking precedence right now so I'm going to go ahead and just remove these settings so that Dino can be the default formatter okay so now if I remove some formatting here and then run my format shortcut which is option shift F if you're on a Mac or you can press command shift F and then go to format document but that automatically uses the doo formatter now now I also like to have format on save so I'm going to enable that for this project so I'll set it to true just like this and now you don't even have to know what the formatting keyboard shortcut is if you just save a file it's going to automatically run the doo formatter now let's just take a look at the built-in linter real quick so in this case I've created a variable called sum to assign
linting with deno
A and B to it you can see that I'm getting a dino lint error that says some is never reassigned use const instead so Dino comes built in with some preconfigured linter rules like prefer const over let so if I change this to con the lter error goes away you can also run this from the command line so if I change it back to let and then do Dino lint you can see all of your linter errors there so this is kind of the experience of working in a dino project once you have it all set up essentially VSS code is working on your behalf it's using the doo extension and everything is kind of built in you'll notice we don't have any other config files here the only config file we have is our doo.
Json which is where we can Define our task and Define all of our Imports but other than that it's all built in now testing is built in as well you can see they have this doo. test function but we'll talk about this later in the video now let's actually work on the task at hand which is to convert this CSV file into plain text that has timestamps followed by chapter titles and the first thing we need to do is actually read this file in and Doo has built-in methods for reading files so if you're used to node.js they have the fs module Dino has similar methods so if I say doo. read file you can see there's a few methods available to us and specifically the one that I want is read text file and so this one's a lot nicer than just read file because I don't have to convert from binary to asky read text file handles all of that and here I can just pass in the path to the file and then we can await it throw it into a variable here and then I'm going to get rid of this extra code and then now here inside of my main I'm going to use this code and then afterwards just log out the text so now when I run my Dino program it should output the contents of
read in csv file with deno
that CSV file so if you take a look at our doo. Json they have a Dev script which right now just runs watch so this is the other cool thing about Dino it just has a watcher built in so if I were working on something and I want to constantly see the output this will do that for us and so if I run dinot task Dev it'll run this and watch the file for changes and then rerun it so from the command line I'll do Dino task Dev and we see another feature of Dino which is file system permissions so by default programs are limited in what they can do unless you explicitly allow them to do things like read from the file system write to the file system access the network and in this case we are trying to read from the file system now you can see here I can just do a onetime bypass with yes and then it reads in the file and then spits it back out but if I head back over to my doo. Json I can actually pass in- dallow read and then we can actually tell it it should be able to read that timeline. CSV file so I'll save this now I'll kill it and if I do doo task Dev it's able to Output it and it doesn't ask for that file permission so now anytime I make a change in my codes I can save it that's going to rerun it over here and I'll see that
deno.json tasks
deno permissions
output okay I've read the file in now I need to parse this as CSV if I were in a node.js project I would very likely just go to mpm and search for CSV parser and find a library to use but Doo actually supports npm modules so let's do just that let's head over to mpm and search for CSV parse and so we can see the top package that shows up is CSV dasar and I've used this library before so let's actually install it so to install an mpm package with Dino just grab the name of the mpm package and then from the command line you can do Dino add and then you specify where the module is coming from and in this case it's npm so if I do npm colon and then the name of the package it'll install that package from mpm so now I should have access to CSV parser if you take a look at our doo. Json you can see that it added it here under Imports it has the version as at least 5.5.6 and it has renamed it to CSV Das par which means in any of our code if we want to import this we can just use use the name CSV parse which is going to map to this specific string here so let's bring it in and you can
using npm with deno
working with npm:csv-parse
see in this example here they create an instance of the parser so let's do that and this is a streaming parser so we need to listen for the readable event I'll throw this code in here so here they were pushing each row into an array for our cases I just want to log it out for now to see if it's actually working so we'll log it out and then we need to write to the parser so we'll say parser do write and we can pass in the text here now does support streams so we probably could have streamed the file in instead of reading the file and pass it in doesn't matter I just want to show you how to use an npm module so right here I can say parser do WR and then pass in that timeline text now this is going to parse it and read in each line and each line it's going to log out here and then I'll just say parser do end and then we won't log that to the console anymore so now if I run my program it should actually parse the CSV and we're going to see each row logged out as a Json object let's give it a try if I do doo task Dev it'll run the program uh but now we have an error specific to this Library um I've come across this before this Library actually needs an
option called uh relax quotes based on the um the data that I'm parsing I'm just going to set this to true and hope for the best yeah it works so it was able to read in the CSV and then it spits out each line you can see right now it's just an array because it's just all the values from each row but we can pass in columns and I know that the first row has all of the headers in it and we can actually pass in another option so here there's a columns option and this can be a function that gives us the first row and in our case we're just going to return that first row so that will be the name of all of the columns and with that now we should see some Json objects so it was able to use that First Column of headers and now each row it's using those headers to create a Json object so we can see that like the start time is here and then notes is going to be like the name of the timestamp awesome so we're working with Doo we're working with mpm modules that's great I don't want to use this Library anymore I I mainly just want want to show you that we can use modules from mpm and most mpm modules that you
the deno standard library
come across you're going to be able to use in this exact way so Doo add add the package and then just follow that packages docks to get it working in the way that you want but one of the beautiful things about the dino ecosystem is they actually have the standard library and so instead of reaching for this third party CSV parser library and figuring out their docs and then learning that one specific Library we can actually use the CSV module from the standard library now there are a bunch of things built into the standard Library so this is a screen grab from their doo2 announcement and you can see all of these things that we typically use when we're working in back-end JavaScript codes so utilities for testing like vit or jest and then utilities for working with objects and arrays like low Dash or utilities for working with CSV or escaping HTML or colors on the command line there's all these things that we very often do when we're working in backend JavaScript and we typically have to reach for all these various modules on npm but with Dino all of this stuff is built into the standard Library so the standard library is actually installed separately you basically pick and choose which of these you need in your project but it's
maintained by the dino core team and we specifically want the standard CSV package and so if we head over to jsr doio that's where all of these packages are hosted and where we can install them from so if we take a look there is this CSV package and so let's actually use this module instead of CSV pars and you can see here on jsr they actually give us a command that we can run so we do doo add and then specify jsr so just like before when we wanted to install from npm we did npm colon now if we're working with jsr we could do jsr colon and then the name of the package that we want so first let's remove this CSV D parse package if I just do Dino remove npm colon CSV DP parse that'll remove it from my doo. Json and now we can run the command to add standard CSV great so we have standard CSV let's start using it instead so I'm going to pull in parse here you can see we pass in the string and then we have some options let's look at their docs here cuz I'm curious about the parse options and this is actually awesome so I I was curious about Skip first row but it says here if you set skip first row to true and don't provide
using jsr / @std/csv
columns it's going to use that first row as the header definition so that's what I want okay so we can get rid of all this codes here we can then do something like rows is parse and then pass in the text and then the options that we want is Skip first row and set that to true and then now let's log out the rows okay so if I do doot Tas Dev look at that he was able to read in the file and the code is much simpler now this might not be the case for every Library that's in the standard Library uh but this is one of the beautiful things about a adopting the standard library and using that in your projects now it's a lot easier to find modules that you can use in your project because of course you can go to npm and search like we did but because I have experience I know that this is the package that's going to work for me but there's a ton of other options right you can see here that there's all these like I've used Popa parse before as well there's a lot of options and you can get lost in those options or you can find a library that maybe doesn't work the way that you intended and then you just wasted a bunch of time so as things start to move into the standard Library it's going to save us time because if everyone starts using that same library
benefits of the standard library
from the standard library then we don't have to have the mental load of choosing a library we know that it exists in the standard names space and and we can just bring it in okay at this point I can do the actual work and turn this thing into plain text so mainly what I need to do is just iterate over each row log out Source in and then log out the notes right after and that'll be like in the YouTube description format so let me write that code real quick and a quick tip I actually want to work with this data in a typesafe way so if I grab the output here as Json so I formatted it using Json stringify I have this an extension called paste Json as types so I'll do that and then I'll just call each of the rows a marker and look at that we got a nice little typescript interface that describes each row and now that I have this nice type we can actually use it to assert the type that we get back from parse um so the types don't align directly so I'm actually going to say that this is unknown and then tell it that it is an array of markers like that and so now we should get some nice type completion so if I do a four each on here I get each individual row and then I can grab the specific properties that I need okay
finishing up csv parsing
okay so I'm logging out the Tim stamp and then the chapter name and I'm logging each one out cuz basically the way that I'm going to use this is when I'm done editing a video I'll export that CSV run this from the command line and boom I've got some nice copy pastable text that I can put into the YouTube description but I do need to do a little bit more parsing I need to remove the milliseconds and then remove the leading zeros if the video is not at least an hour long so let me write that code too got my little parser function there and now there we go it's nice and copy pastable so any time I publish a YouTube video I'll be able to export that and then just copy paste this text now the main reason I wanted to show you this is to kind of just show you what it's like to work in Dino and to kind of like navigate around the ecosystem so we can use mpm modules we can use things from jsr we can use the standard Library we can use Dino built-ins and then one thing that I glossed over is we're actually just using typescript here right we're we don't even need a TS config Dino is able to transpile this stuff as it runs it and uh we don't even have to worry about uh building or transpiling ourselves and so this is
new deno project summary
this is a great experience now another thing I'll note for when you're working in brand new projects is you can use all of the JavaScript Frameworks that you know and love you don't necessarily have to just be in Doos specific code so in their announcement they talked about how you can actually use Doo to spin up a new nextjs application a new astro app remix spell kit angular all of those things and they're running inside of Dino now I'm not going to show those examples here because they have plenty of examples in their docs they have some tutorials on how to spin up a react app a next app an Express app all these projects you can use their existing generators and then run them with doo Direct and so this is like a gradual adoption path in that you don't necessarily have to start doing all of the dino specific things like using Dino to manage the file system or using actual ecmascript modules and Export extensions because a lot of these other Frameworks are using some kind of bundler but Dino supports running all of these tasks so this is another thing if you want to give Dino a try is try spinning up an xjs app just head to their docs and you can follow these tutorials but not everyone is working in a brand new project and this is what
use deno with your favorite framework
most people really want to know about is what is it like to use Dino in existing projects or in the existing ecosystem and that's what we're going to talk about [Music] next now next I want to talk about gradual adoption of Dino so let's say you don't want to go in remove all your config files convert all your linting and your formatting and and your testing and everything to dino all at once there is a gradual adoption path and the first thing is to just use Dino as your package manager instead of npm or pnpm or yarn or different things like that so to show you this I want to spin up a project called listed so this is a full stack app built with spel kit that I worked on over on the coding Garden Channel but it's built with node and mpm and you can see we have lots of config files in here and it's a spel kit app and I haven't touched it in 9 months but let's see if it is possible to install dependencies and just run this thing using Dino so first I'll clone this repo down and now I'll go into that directory and then we can run Dino install and it's essentially going to see that we
gradual adoption of deno
deno install for node.js existing projects
have that package.json there and know that it needs to install the modules into this specific directory because Dino install actually works in the same way as pnpm and that it actually caches installs in one place on your machine and then just links to the cache so that subsequent installs are very fast and so essentially in your projects you can use Dino now so let's just run a dino install it's going to reach out to mpm grab all those modules and it will create that node modules folder now the one caveat of using Doo install is if any of your dependencies have a post install script it's not going to run that automatically because post install scripts could potentially do something malicious they essentially have full access to your computer so they could access files or do various things you can see here these are the packages that needed to run a post install so it's just things like Prisma and spelt kit and then also an image processing Library called sharp so I'm actually going to rerun the install and pass in allow scripts so that it does run the post install for these but ultimately this is a good security measure because you might be installing a package from mpm and not even realize that it has a post install script so if you use Dino
deno install - postinstall script support
install it's going to let you know about that so here I'm going to do a doo install again but now just do allow scripts because of the cache it should be pretty quick because it's already installed everything now it just needs to run those post install scripts and it looks like there was an error running the post install script for Sharp but I looked into this and the dino team is on it literally four hours ago one of the team members commented about it and there's a few other packages where you might run into this issue I know for my specific code base sharp is only used by one of my dependencies that generates an image of the database diagram and so to actually run the app I actually don't need this sharp dependency but this is potentially something that you'll run into because it is early days and there are various packages in the mpm ecosystem that are doing things that maybe Dino didn't intend or didn't know about but ultimately they are working on having full compatibility but like I said this doesn't matter to me so I should still be able to start up the app there's a few other things I need to do before I can start the app like create a EnV file uh spin up my postgress database and Rus database so I'm going to do all of that and once I have that done I'll show you how we can run it
with Dino okay I have mymv set up now I want to start up my Docker containers and we have a bunch of different Docker files so we actually have a script that makes it easier to run so we don't have to remember the whole command here so if I want to run this specific task that I have in my package.json I can use doot task for that so if I say Dino task and then specify that specific task name it's going to see that inside of the package.json and then run the task and so this is another way to gradually adopt Dino into your workflow is to use it as a task Runner instead of node now in most scenarios where you haven't fully converted your codebase to dino it still might actually spin up a node.js process behind the scenes but but this is one way to kind of start getting used to using Dino as your Runner all right Docker is spun up Moment of Truth we're going to do Dino task Dev and this is going to spin up the V Dev server and we'll see if the app works okay we got a 500 error let's see if we can debug it oh that makes perfect sense I didn't actually uh push the schema to my database so let's do that uh I probably should have followed my own readme so to
deno task for existing node.js projects
running commands from node_modules with deno
push the schema to my database I just need to do a DB push from Prisma and to run an executable that lives in the node modules you can do Doo run and then specify the name of the node module so this guide here tells us how to do it we can do doo run specify Prisma and then do a DB push so we'll run that and there we go and now that I've pushed the schema I need to seed the database so I can do a doo task of DB seed that now we actually get an error when trying to run our seed which works with TSX so it's just calling that typescript file directly uh and there is an issue open on the dino repo right now that has to do with TSX specifically um that isn't resolved and it looks like it has something to do with the way that TSX is doing things now in the world of Dino because we're just running a typescript file technically we could just run that file directly with Dino however we're doing some non-standard things in our seed file so if we take a look in here we do not have import extensions and import extensions are required when you're when you're using real ecmascript modules you're not using a bundler uh
seed database - tsx issue
and so in order to run these specific files with Dino we would need to do that we also need to update all of our Imports to be from mpm there's a few other changes that would need to be made yeah a lot of the stuff that we're doing isn't necessarily compatible with like real pure typescript running inside of Dino we we forget about all the the things that we do when when we're involving some sort of like bundler um in the process okay so Dino has failed on this specific task I'm just going to run this directly with npx and then see if Dino can actually run the app okay let's make sure that I can log in now that everything is seated yeah awesome and now let's create a list so the way this app works is you can create lists of YouTube channels so let's just call this the syntax crew so we're going to create a list of all the syntax YouTube channels so first of all we want syntax FM which is the main one and then we also want West boss and then I don't know does Scott have his own YouTube channel he's there well ad him I don't know if he has any videos on it uh and then of course coding Garden because that's that's my YouTube channel all right so this is the whole syntax crew
starting / testing app
so this is going to create a feed of all the YouTube videos of all of these channels let's see if it works and so this has to go off it's reaching out to the YouTube API it's cashing all of the data that he gets back and ideally if all of that works we should see a feed of all of our YouTube videos and we do awesome okay so yeah and there's no errors in the console and this is fun yeah so we get we get to see syntax videos we we see West videos we see CJ coding Garden videos awesome all right the app works it wasn't ideal we ran into an issue with a post install we also ran into an issue with running TSX but eventually we got there um and I have a feeling for older projects this is kind of going to be the experience if you try to use Dino gradually um at least Dino install is going to do what you expect except if there are certain scenarios where maybe post install isn't supported in the packages that you're using just yet so I'd give this probably a seven out of 10 in terms of being purely Dino [Music] ready now next I want to see what it's
gradual adoption summary
converting projects fully to deno
like to convert a project fully to using Dino so here I have an API that I built it is a tasks API and that API is documented with open API and we're using scaler so that we can get some interactive documentation so for every inpoint we've documented the possible success responses and you can see also like error responses and then you can actually test out the API here using scaler so this is an endpoint to get all of our tasks and that returns those from the database if we want to create a new task we can use this inpoint let's just say learn Dino V2 and right now it is false uh you can send this to the API it'll put that into the database and then we can get things by ID so I could test this one out let's get the task with id5 and if you're interested in how I built it you can check out the video that I did here on the channel uh called the best way to build apis I show this whole stack and how to build apis with it but whenever I built this I built it with no JS in mind so if you look at the
the project we will convert
code base there's a lot of config files right we have our eslint config and our TS config and then also we did testing with vest so we have our test config there and what I want to do is convert this full to dino so I want to remove as many config files as possible and then update all of the code so that it works directly with Dino so let's do it so I've cloned the repo down here and then here inside of vs code we can take a look at the package.json so we're going to want to gradually convert this to a dino project so we're going to need ao.
project setup / init
Json you can see here we have this Dev script which is using TSX to watch that entrypoint typescript file there and as we've seen before we can actually use Dino with the watch command to run a typescript file so basically I need a doo. Json and I'm going to gradually convert all of these scripts to run with Dino instead so here I'm going to run a dino init and you can see because I already had that TS config in the directory BS code is actually prompting me hey do you want to add those specific typescript settings into ardino dojason and sure why not so I'll go ahead and add that and if we look in the directory we have a few different things I'm going to go ahead and remove the main.ts and Main test because we don't need those but we really just need our doo. Json if you take a look it's copied over the compile option and then we have the dev script but instead of pointing at main.ts I wanted to point at my source index.ts just like we had in our package.json so I'll go ahead and update that now in my workspace settings I want to enable Dino there so we can head into
our settings. Json we can say Dino do enable and set that to true so now Doo should be enabled in all of my typescript files now my current project was set up for eslint so you can see I have a lot of these es lint settings down here I'm just going to straight up remove these from my settings file and we don't have any fix on save going to remove these settings and I'm going to set format on save to True okay so already our workspace settings are a lot simpler than they were before while I'm thinking about it let's go ahead and just remove that eslint config file and then also we'll remove that TS config file because those settings got copied over into our doo. Json we'll worry about any of these warnings once we start to run the code but now I need my dependencies and all those dependencies are listed in this package.json but I want to install them with doo instead now technically I could just do a Dino install Dino will see this package.json and then create the node modules directory but if we truly want to do it the dino way we have to remove this package.json so I'll quickly create a little script that installs all of these dependencies but using Dino install
remove config files
converting package.json dependencies to deno.json
instead and then remove the package.json okay so I went through I figured out what dependencies I needed I made sure that I didn't include any of the eslint dependencies or testing dependencies or typescript dependencies because that's all going to be handled by Dino and then I renamed this file to package Das old so that way Dino doesn't think that we're in a node project and later on we can add these scripts to our doo. Json but I created this install command so I'm going to pull in all of these packages from mpm now if I'm truly converting to a dino project I probably would want to pull most of these from jsr if I could but to keep things simple from now we're going to keep installing them from npm so let's run this install command which will pull all of those dependencies and then add them to our doo. Json great that worked first try uh and so now if we take a look at our doo.
Json it has all of these dependencies listed and now inside of our code we should be able to import directly from these libraries without having to do anything special while I'm thinking about it we can go ahead and delete that pnpm lock because now we have our Dino lock and now that we have our dependencies let's just try starting up our app and so we have this Dev script let's just try running it so we'll do a dino task Dev and we run into our first issue which is I was using hono node server so now that we're using Dino we don't need to use hono node server anymore and I actually didn't include that as a dependency so let's take a look at our entry point there in index.ts and and you can see I'm pulling in this serve command we don't need that anymore and then instead of calling serve we can actually call doo. serve which is just built-in then we'll pass in app. Fetch but now that I'm thinking about it Dino can actually run our hono app directly because it exposes fetch so what we might do is just point Dino at our app. TS instead so let me actually just delete our index.ts because our
starting the app
updating server entrypoint
app. TS exports a hono app which Dino should be able to run directly so here let's actually point it at app. TS in instead okay we run into our first import issue and so when I set up this app before I actually had import aliases so that way I could just use at slash and then not have to have like relative file paths and we should be able to set that up here in our import map inside of our doo. Json so I should be able to say at slash maps to Source slash so anytime Dino comes across at slash it should know to import it from The Source directory let's see if that works for us now we come across our next issue we do not have import extensions on any of our relative Imports so if we take a look at app. TS we can see all of these actually need an extension on them to be able to import them and this is just part of the equiscript module specification so whenever you're working in like a typescript app or like a a webpack app or app running with vit they don't require you to specify the extensions because they figure it out during the build process but according to the
import aliases with deno
adding import extensions
proper specification you should have import extensions and and Dino follows that convention and so if I add a TS extension then it's able to find the file now I've played around with the formatter settings I can't find a way to automatically ex add extensions across my whole code base so I'm going to go through and do this manually so anywhere that I have an at@ slimport I'm just going to add a TS on the end of it now when you're making this change one thing you'll have to note is if you're importing a file that is called index.ts Doo won't automatically resolve so I can't just do a TS on here I actually have to point directly at the index.ts file so that's something important to note now another spot I need to fix is I was actually importing in my package.json so that I could use use the version number of my project in my open API doc but we don't have a package.json so I went ahead and added my version in my doo. Json right here so I'll import my doo. Json instead and that should allow us to pull in the version okay I've converted all the Imports let's try running the app first of all we still have this warning about module and
deno.json version property
updating deno.json compiler options
Target let me go ahead and remove those from our doo. Json just so we're not seeing that anymore so if we look in doo. Json and our typescript settings we can get rid of module and Target okay so now let's try to run it and it's asking for permissions so uh our app is trying to access the environment variables for like connecting to the database which I forgot we need to set up our EnV uh but let's just go through and click yes on this to see what else it needs and in this case it needs system access because it's beinging doing doo. hostname and then more EnV access yeah and then more environment variable access you can see it's trying to read from the current directory so it is interesting to note that when you're running this directly with nodejs you actually don't see all of the potential permissions that it's using in in Reading across your codebase so we're reading the file system more environment variables and then our app crashes because we're actually validating the EnV so this is a good sign Dino can run our codes awesome there's a couple more things I need to update especially environment variable access so there's a couple of different places where I'm accessing process. EnV
specify permissions in deno task
updating environment variable access
which is a node.js convention and I should be using Doo EnV instead so let's update that so in my codebase I have this env. TS file and this essentially validates the environment to make sure that all of the required environment variables are set and you can see here I'm actually using EnV andv expand which are from npm but Doo supports reading in EnV files automatically so I can just remove these and then use Doo to read in thatv file so I'm going to remove these and then you can see I have this bit of codes right here that says if we're in the test environment then it should load the env. test file otherwise the EnV file we can actually just handle that in our doo. Json so I don't even need this code at all and then I don't need to bring in path and then the other spot where we're reading in the EnV is right here where essentially we pass in all of our environment variables and then use Zod to validate that all of these exist but instead of using process. EnV I can use the dino built-in doo. env. two objects so it's going to take every environment variable that Dino has
access to and then turn that into an object which we can then parse with Zod to make sure that all of our expected environment variables exist so with that change I do want to remove the EnV package and the EnV expand package so we don't need those anymore and then whenever we run our script we should say allow EnV so it can read from our environment variables but then the other thing is it supports a flag called --v file and so by default it's just going to look for thatv file and read it in so I'll pass that in as well and now let's try running and we do get a warning because we haven't created that EnV file yet but that's good uh but we also need to pass in allow CIS because it's getting access to the host name and then we go the app spins app so we're getting closer so we allow access to environment allow access to the EnV file and then allow CIS so now when I run it fails because that EnV file isn't specified
and we need to create it so let's go ahead and do that okay so I have mymv file but in order to get this initial database file so a SQL light file I need to run drizzle kit push to take our database schema that we have defined over here and then push it to the database now in order to push the scheme up with Drizzle we do have a pretty long command that we need to run so I found this in the drizzle issues where we can pass in all of these permissions that we need and then run the task that we need in our case we want to do a push but because I'll do this pretty often I'm going to add it here in my tasks let's just call this DB push and so it'll be all of that push and then let's give it a try DB push okay we run into our next issue so because we're using Dino Dino uses web standards and we're using specifically lib SQL to talk to our sqlite database um we can't talk to a file scheme we have to specify a URL and I had to solve a similar issue when I
drizzle-kit push with deno
libsql / turso dev setup with deno
was running this app with cloudflare so let me set that up now so to spin up a DB server locally with turo we need the turo CLI so I have the turo CLI installed on my machine but I am going to add a task here called dbd that runs the turo command so I can say turo Dev and then if we look in there docs we can pass in the DB file name so I'll do this DB file is uh dev. DB all right so now if I do doo task DB Dev it uses terso to spin up a database and so now terso is running locally and we can connect to it over this URL and so this is how we'll have to connect to it when we're running locally but I can grab this URL and then throw that into myv and so now the database URL is that and then if I open another Tab and keep that running we can run the DB push command so if I do doot task DB push it should connect to that and in this case it needs fetch access so I I'm going to add one more
permission uh to our doo. Json specifically for the DB push so that way it can access that database over the network all right moment of truth there we go so that was able to push the schema to the database that's running with the turo CI and now let's try starting the app up so if I do doot Tas Dev um I actually need to use the serve command so because our hono app is an object that has a fetch property on it we need to say Dino serve instead of Dino Run so let's do a dino serve and then try again there we go we've got an app listening on Port 8000 and it doesn't load over 0.0 but does it load over Local Host it does that's that's a good sign uh we can also see our logs running here and then can I access the reference page I can all right right and can we make requests it's trying ah we need to give it network access as well so now our Dino app is trying to make Network calls to the turo CLI so it
update dev task to use deno serve
needs network access as well so let me just kill this I'll add that permission to our Dino Dev task and now give it a try so head back over here and refresh can we get all of the tasks we can and it's an empty array so let's try creating a few in the database here so let's say learn learn Dino which is currently false that sends it to the API awesome we'll say learn the standard library that creates it that's great uh and let's also say learn Dino test and that creates it as well and now if we do a g on all tasks we should see all three of those and we do awesome so we have the app running with Dino uh We've removed most of our configs the last thing is we want to make sure that our tests can run with Dino as well so we'll remove our vest config cuz we don't need that anymore more okay so the first thing I've done is created a task which will start up the test database and there's a couple of things we need to do
testing with deno
test database task
so first of all I remove a test. DB file if it already exists and then I start up turo on a separate port 8181 and then tell it to use the file test. DB so this way every time I start up this test turo server it's always going to have a fresh database and then I sleep for one second and then run a DB push to that test database so I have this second task here called DB push test and the one major difference is I'm telling it to use this env. test file and in the env. test file I point the database to 8181 so this one command will start up turo Dev and then push the schema to it with Drizzle kit now I want to get the test file working so I have a separate test script and for now I'm going to run these two things in separate terminals so I'll start up the test database and then I'll run the tests once the tests are fully working we should be able to have a single task that spins up the test database and then runs the test but for right now I just
converting vite tests to deno
want to get things working so in this tab I have the test database running and over here I'm going to run my tests and right now there's a bunch of Errors cuz it's trying to use describe expect it all of these things from vest and I need to convert all of that over to dino so let's do that and so in the doo docs they show us that they have test steps so we can do doo. test and then within that we can have various steps for our test so that's what I want to do and we'll change that right here so instead of describe I'm going to say doo. test and then before we were running drizzle kit push to push the schema to the test database and then removing the test database when the tests were done we don't need to do that anymore because it's being handled in that Dino task now this gets access to T and then every test we have here I'm just going to change it from it to use await T so I'll do that do step okay and then I need to make sure that this is an async function that okay so that looks good uh now I'm just going to clean things up so I don't
need this exec sync or FS anymore because we're not doing that inside of here and then I'm going to go ahead and just remove all those imports from vest cuz we're slowly converting everything over and then everywhere I have TS expect error I need a reason to uh so that the linter is happy and essentially anytime I have a TS expect error in here it's because I'm explicitly testing what happens when we pass in data that's in the wrong format so I'm just going to replace all of these that with a message that just says test data like that now we need to update these calls to expect now when you look at their example they're using assert equals which comes from the standard Library assert package but the testing experience isn't amazing because it's really just testing do these two things equal versus is this thing that thing and the error messages aren't as great however if you look in the standard Library they have a package called expect and these are just compatible expectations and so vit was actually inspired by just and all of the expectations inside of vit are just compatible as well well so once we install this Library we should be pretty
jest / vite style expectations with @std/expect
close to having our working test so I'm going to go ahead and add standard expect and then now we'll pull it in at the top of the file just like that and so that looks good so far but we have one last thing we need to change we have this expect type of to be array I'm going to see if they export an expect type of they don't let me let me Google around a little bit see if I can figure this out I couldn't find anything under GitHub issues or in their docs so we're just going to do this we're going to that array. isarray to be true like so okay this looks good to me let's try it Moment of Truth we're going to run our test so we have our test DB running in one tab over here we're going to run doot Tas test give it a try ah so this is one more thing I didn't catch earlier is we were actually calling process.
exit inside of our EnV file so let me take a look at that yeah we don't want to do this and essentially what we were doing is validating the EnV file and then if it was invalid exiting the process I think we can actually just do a doo. exit like this yeah so that's what we want instead that actually means we didn't have the correct environment variables so we should update that and essentially in our doo. Json we need to tell it that it should read from that env. test file so when we're running our tester it should allow network access and then use that env. test file like so all right now we are using that Pino library for logging and we're getting a type ER here but I think we could potentially just do a TS expect error and gloss over it let's let's give it a try um so this is right here yeah expression is not callable we're going to do a TS expect error say Pino is a node Library types not compatible all
updating test task permissions
npm module type error fix
right let's give this a try okay this is a good sign so it was attempting to read in the EnV but we didn't pass in allow EnV we said you could use that env. test file but we didn't actually allow access to environment variables so back to our doo. Json here we need to allow EnV as well okay and we need allow sis so yeah pretty much everything we needed access to when we're running our Dev script we need when we're testing as well so I'm going to pass this in here okay and everything's passing that was crazy I did not I after fixing all those random errors uh all of our tests passed that's great love to see it okay so now I actually want to be able to spin up the test database and run the tests Allin one let's see if I can do that so I'm going to kill our test DB here and doing that should actually make the test fail because yeah they have no database to to connect to okay that took me way longer than I would have liked it's two and a half hours later but uh I figured out what I needed to do so we had this
100% passing tests
combined test tasks
script here that starts up the Torso Dev server to spin up that test database and then also pushes the schema and then I had the separate task here that actually runs the test well I couldn't figure out how to run both of these and then exit this one whenever the tests exit so I programmatically spun up these processes so I wrote some Doo code that actually spins up the turo server pushes the schema and then when the tests are done running it actually shuts it all down so I don't actually need this separate task anymore because all of that is handled whenever we're running the tests let me show you how I set all of that up so over here in lib I have some test helpers and first of all I just have a command to remove the test DB file so whenever you spin up the dev server it actually creates a few different files and so this function removes those files just to make sure we're starting in a complete complely clean state so this removes the files if they exist I then have this function here that starts the test database so I'm using doo. command to actually spin up turo pass in all of those same arguments wait one second for it to spin up and then run our DB push test command which will actually push
running tasks with Deno.Command
the test schema to turo that's running on Port 8181 I wait for that to finish and then once that is finished I just have a health check function here that's actually calling our turo inpoint and it's just passing a select statement and so it's going to run this every 1 second to make sure that that task table actually exists and if it doesn't it'll wait and then call it again but then once the task table exists we know that everything's good to go our test DB is up and running it has the schema and we're ready to start running test against it so I can use these three functions inside of my test file so in my tests up at the top I await removing of any of the existing files just in case there was anything left over we then start up the database and wait for it to start and then after it's started we run all of our tests and then after all of the tests have run we then stop the database here this took me a really long time to figure out there's some Oddities in here you can see that whenever we're stopping the database I do actually need this set timeout here
otherwise there was like a zombie process this seems to work consistently so now that I have that if I do doot task test spins up the database runs all my tests and then closes the database and this works consistently I can run this over and over again and it's actually doing what it needs to do so if you're a dino expert out there and you've made it this far into the video I I would love some feedback on maybe if you could think of a better way to do this um but this is what I came up with so at this point we're fully converted our tests are running we can actually remove this old package.json I do want to add a lint and a type check script because that's built into Dino so let's go ahead and do that so in our doo. Json we're going to add a lint script which just does Dino lint and then we'll also add a a format which just does Doo format and then lastly I'll add a type check command which does Doo check and then I'll do starstarstar dots so it's going to look at every single typescript file and then check it for type error so now that I
add lint, format and typecheck task
have those tasks we can finally remove that package.json there and then let's run the lint script cool so no linter errors and then we'll run the format script okay so it updated the format good to go and last but not least I had to update the readme file as well because because uh this had instructions for using pnpm but now we need to tell people that they can use Dino and we have all of the specific tasks they need to run to get this repo set up so if you want to take a look at this code it is on a branch called Dino here on the hono open API starter repo and if you take a look at the commits specifically the convert to dino commit you can actually go through here and see all of the changes that I had to make in order to upgrade this to use Dino instead of node and pnpm now you're probably wondering was this worth it and do I think it was worth it to convert this to dino um there's some pros there's some cons I think like we have a whole lot less config files now that's great I think one of the major cons is there's a lot that I had to learn here right we had to learn how to use Doo tasks with all of
where to find the converted code
convert project conclusions / summary
these command line flags and then there was a lot to figure out in terms of getting the test database running and then also using that turo Dev server instead of being able to talk to a file directly uh we had to update a lot of our code to use import extensions But ultimately I think for any codebase that that will live for a long time it's probably worth the effort now this is a a small project so it took me like roughly 3 hours or so to convert especially if you consider how long it took me to figure out the database stuff but I probably wouldn't recommend going and upgrading every single project to dino I think for smaller projects it's probably worth [Music] it now another aspect of the dino ecosystem is Dino deploy and so we can actually take this API and deploy it here to Doo deploy and so I'm going to do just that I'll go ahead and log in and then in order to deploy we'll need to use their command line tool so you can install it with this command and then in order to deploy we can use this command here so I'm just going to copy
deploying with deno deploy
this and I'm actually going to add a deploy script in my doo. Json so I'll add command called deploy throw this in we'll give it a project name I'm going to call this the dino hono open API example and then our entry point is source slapps so now that I have that I should be able to run Dino task deploy it's going to open up the browser I'm already logged in so here I'm going to do authorize and now it is attempting to deploy the project and of course it failed because I haven't set up any environment variables and so there's that bit of code that exits if my environment variables aren't set so I'm going to go ahead and set that up so they give me this link here where I can actually specify the settings and I'm going to go in and add all of my environment variables right here now for the database we do need a database hosted in the cloud in order for that instance to connect to it so I created a database on turo and then I specified my connection information to point to turo so now that I've done that let's try to deploy again all right we're deployed let's give it a try Okay so the index
loads let's try our API docs cool and then let's try getting all tasks so there should be some example data in the database already there is so it works we are deployed to dnote now my experience with using Doo deploy is it's very similar to ver versel like zero config um you can also connect it up to to get repos um they have another cool idea here though called playgrounds so inside of a playground instead of deploying a full project you can just write some dino code here that maybe starts an API or does something like that and then you can instantly deploy it and be able to like modify the code here so I've used this pretty often for some just one-off servers that I want to spin up like a proxy server or a Coors uh proxy or something like that so the playground is pretty cool as well and in their announcement of doov 2 they talked about how they support nextjs and Astro and remix and all of these others from what I've seen you can deploy these to Doo deploy as well so you can just spin up the project locally using their tutorials and then do a deploy CTL and you're able to run nextjs on Doo deploy you can also run even like Express apps
on Dino deploy it has the full support of npm modules and all of those other various things so Doo deploy is pretty [Music] awesome now one thing I didn't get to spend a lot of time on is jsr now jsr is a way of Hosting packages and you've seen we installed some various packages from J jsr but one of the very promising things about jsr as opposed to npm is you can actually publish typescript files directly to jsr and so personally I've had some issues attempting to publish my own projects to mpm and then making sure that all of my build settings are correct so that it'll work across all various kinds of projects and that was quite the headache to set up that whole build process but the promise of jsr is you can actually publish typescript directly to it and they handle all of the build and everything else for you so this is another cool thing in another way that the dino team is trying to push the JavaScript ecosystem forward is make it so that it's a whole lot easier to publish packages as well and I definitely want to dive deeper into jsr I'll probably in a future video I'll talk about how to
jsr.io and other parts of the deno ecosystem
publish packages to jsr and and a bit more how it works now there's quite a few things I didn't explore in this video and potentially that'll be for a future video but things like using Doo's built-in documentation and also Dino's built-in compile and then also Dino actually supports Jupiter notebooks there's actually a really cool demo of it if you watch the the V2 announcement video and then also test coverage so there's more of the ecosystem that I haven't explored yet but ultimately these various aspects will replace other parts of the JavaScript ecosystem that you might be using some third party library for right [Music] now now let's talk about some of the things that I think definitely need Improvement for me to really adopt Dino in all of my projects and one of them is the permission system right so here in my doo. Json you can see all of these tasks and this is really cumbersome right we need a better way to specify permissions when running projects and potentially more fine grained permissions right because whenever you
my thoughts: room for improvement
permissions model
allow permissions for a specific task those permissions are allowed for the running program and all of its dependencies but sometimes maybe you'd like to lock down your permissions at a dependency level so this specific dependency can't access the network but this other dependency can that that kind of thing and there's some ideas going around so there's actually an open issue right now and there's a big long discussion about how this can be cleaned up like potentially there could be an object inside of ard. Json where you specify all the permissions but this wouldn't give us uh dependency level permissions and if you look through this issue there's a few different suggestions and people just talking about different ways that we could potentially do this and this actually has been added as a dino Milestone so they they want to figure this out before they release version 2.1 and version 2.1 is going to be the first long-term support version so they are going to figure this out they're working on it but in my opinion this is definitely something that needs to be worked out before I really would want to adopt this in every single project now another aspect of the ecosystem that's going to
more searchable examples
need some work is the amount of examples that are out there existing for node.js so something that happened recently is I had this 4 gab gzipped file of Json lines and I wanted to write a dino program that could read in the gzipped file as a stream and then process it as it was unzipping the file and to figure this out I searched the web for node.js unzip gz file um and I came across this stack Overflow uh question that has basically exactly what I wanted to do um and technically you can run this code inside of Dino right you could pull these in from node colon fs and node zib and the code would work but I also just thought well I kind of want to do it the dino way and so then that sent me down a rabbit hole and so if you search for Dino unzipped gzipped file instead there's some various articles there's also this compress module but I can't actually tell if the compress module is from the dino core team or it's just some third party Library cuz it's actually called Dino Library um and there aren't any examples as straightforward as this at least that I
could find um and of course it would take some work for me to figure out how to do this directly with Dino but the path of least resistance is to just do it the with the node.js modules and do it the node.js way because I can see an exact example of it right here and so this is one area of the ecosystem that's going to need some work as more people start to use Dino and more examples get created um there'll be more and more examples to to pop up in search results when you're trying to do various one-off tasks s and Dino actually does have this examples page with lots of practical examples of things that you might want to do with Dino and as more and more people start using Dino you're going to see more examples added here and actually if you commit an example you do get to some free stickers so that's an incentive for for people to add examples as well but this is one of the the main things that is just only going to get better with time the more people that are using Dino the more examples that people are writing for Dino the better it's going to get in terms of finding the answers that you need when searching the web or when using an AI tool to generate your your codes for
[Music] you all right we explored a lot of Dino let's move on to some final thoughts and conclusions and then uh I'll let you get out of here so first of all the introduction of node support and npm support inside of Dino is huge the the barrier to entry is so much lower now and for all of these little one-off projects so if you need to spin up a simple nextjs app you can use Dino if you want to use Dino to install your dependenc you can do that if you are writing a oneoff dinos script and you need an mpm module you can do that and so this Milestone was huge this was kind of the first really big thing that was needed to make it so that Dino could be the future of JavaScript and I think it is the future of JavaScript and one of the things I really like about this whole idea is the standard library because all across my career of using backend JavaScript it's never been easy to pick libraries you're always bouncing between libraries you're potentially spending a lot of time finding various libraries to do these things and so if
deno ecosystem summary: my final thoughts
we actually did have a standard library that most people knew about and most people contributed to and most people used there would be much less segmentation of the JavaScript Community now the njs ecosystem is actually a good example of that already happening organically and not happening from Dino and I don't think that Dino has to be the only standard library but having at least one or two of them is much better than having a really really fragmented ecosystem and so this idea that if people start using more of the same project instead of being segmented that means you have more people opening issues more people contributing and all of that work that right now is separated across the ecosystem can be Consolidated into a single spot and the whole ecosystem of JavaScript can move forward a whole lot faster and on that point I kind of see it as being the unifier of the JavaScript ecosystem you have all these great minds that are working on various projects all over the place but if everyone can kind of get together and consolidate on the standard library or using these various tools it's going to push the e EOS system a lot further and
a lot faster and on that point Dino is already pushing node.js right so nodejs has introduced incremental typescript support with an experimental flag and it's introduced EnV loading and watching and and all of these things that Dino has had for a while now node is realizing that if it wants to compete it's going to have to add those features as well so I think just in general having that competition makes it so that even if Doo doesn't become the only JavaScript backend framework and the thing that everyone uses it's still pushing nodejs further so that we can get a lot of these features inside of it [Music] JS thank you so much for watching if you found this useful be sure to leave a like on the video also subscribe to the channel if you'd like more content like this and also let me know what other parts of the dino ecosystem would you like to see me explore all right that's it for this one I'll see you in the next one
thanks!
Quote it with credit and a link. Quoting Syntax