# What's the best way to create a pxt target

**URL:** https://forum.makecode.com/t/whats-the-best-way-to-create-a-pxt-target/7983
**Category:** PXT
**Created:** [May 10, 2021, 3:50pm UTC](https://forum.makecode.com/t/whats-the-best-way-to-create-a-pxt-target/7983 "2021-05-10T15:50:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![FBplus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fbplus/32/3899_2.png) [@FBplus](https://forum.makecode.com/u/FBplus)
#### Post date: [May 10, 2021, 3:50pm UTC](https://forum.makecode.com/t/whats-the-best-way-to-create-a-pxt-target/7983/1 "2021-05-10T15:50:14Z")

</div>

I found the docs here: `https://makecode.com/target-creation`,but it’s not very helpful to be honest.  
The pxt-sample is out dated and I am facing many errors when I lunch that project 😞  
I wonder if there is any api of the pxt framework?should I look into the source code to get what I want?  
can anyone give me some advice on where to start?

---

<div class="post-metadata">

### Author: ![Pinoo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pinoo/32/4648_2.png) [@Pinoo](https://forum.makecode.com/u/Pinoo)
#### Post date: [July 29, 2021, 9:55pm UTC](https://forum.makecode.com/t/whats-the-best-way-to-create-a-pxt-target/7983/2 "2021-07-29T21:55:40Z")

</div>

Hi @FBplus,  
I have read your posts on the forum. I wanted to write to you through this post because I was looking for solutions to the same problems.  
I want to create my own pxt editor. I want to show code blocks that I will create myself. May you help with this problem? (I use pxt-sample and pxt-microbit pxt repos)
